Advertisement
metalx1000

Decode Information Society - 300BPS N, 8, I

Dec 9th, 2022
1,505
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.32 KB | None | 0 0
  1. #!/bin/bash
  2. ######################################################################
  3. #Copyright (C) 2022  Kris Occhipinti
  4. #https://filmsbykris.com
  5.  
  6. #This program is free software: you can redistribute it and/or modify
  7. #it under the terms of the GNU General Public License as published by
  8. #the Free Software Foundation version 3 of the License.
  9.  
  10. #This program is distributed in the hope that it will be useful,
  11. #but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. #GNU General Public License for more details.
  14.  
  15. #You should have received a copy of the GNU General Public License
  16. #along with this program.  If not, see <http://www.gnu.org/licenses/>.
  17. ######################################################################
  18.  
  19. #this scre will download and decode message from
  20. #Information Society - 300BPS N, 8, I
  21.  
  22. if [[ ! `which yt-dlp` ]]
  23. then
  24.   echo "yt-dlp is needed"
  25.   echo "https://github.com/yt-dlp/yt-dlp/releases/tag/2022.11.11"
  26.   exit 1
  27. fi
  28.  
  29. #check other dependence
  30. [[ `which minimodem` ]] || sudo apt install minimodem ffmpeg
  31.  
  32. #download song from youtube
  33. yt-dlp "https://www.youtube.com/watch?v=siZlN_VCI_0" -o audio.webm
  34.  
  35. #convert to mono wav file
  36. ffmpeg -i audio.webm -ac 1 audio.wav
  37.  
  38. #decode message
  39. minimodem -a -f audio.wav 300
  40.  
Tags: InfoSoc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement