jfreak53

Youtube Download and Convert to MP3 Linux

Sep 7th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.54 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. ME=$(echo "Please replace this text with your links to download" 2>&1 | zenity --text-info --editable --width 650 --height 400);
  4.  
  5. if [ -n "$ME" ]
  6. then
  7.     youtube-dl $ME | zenity --progress --width 350 --pulsate --text "Currently Downloading Videos" --title "Download"
  8.     find . -maxdepth 1 -type f \( -iname '*.webm' -o -iname '*.flv' -o -iname '*.mp4' \) -exec ffmpeg -i {} -vn -ac 2 -ar 44100 -ab 128k -f mp3 {}.mp3 \; | zenity --progress --width 350 --pulsate --text "Converting to MP3" --title "Conversion"
  9.     rm -f *.flv *.webm *.mp4
  10. fi
Add Comment
Please, Sign In to add comment