Created
December 28, 2012 16:33
-
-
Save altmas5/4399407 to your computer and use it in GitHub Desktop.
download all videos of a playlist on youtube and convert from flv to mp4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# descargar playlist de youtube | |
# y convertir de flv a mp4 para ver | |
# offline en dispositivos como PDAs | |
# uso youtube-dl y ffmpeg | |
#agrega o linkea youtube-dl a tu PATH | |
DIR='$HOME/Videos/'; | |
cd $DIR; | |
youtube-dl -t -v --restrict-filenames http://www.youtube.com/playlist?list=PL3590F9DC671098EA | |
for i in *.flv; | |
do | |
append="mp4"; | |
name="`echo $i|rev|cut -c4-|rev`"; | |
output=$name$append; | |
ffmpeg -i "$i" -acodec copy -vcodec copy $output; | |
done | |
#ahora a disfrutar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment