Skip to content

Instantly share code, notes, and snippets.

@altmas5
Created December 28, 2012 16:33
Show Gist options
  • Save altmas5/4399407 to your computer and use it in GitHub Desktop.
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
#!/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