The easy way to download movies from youtube on Linux is: youtube-dl
1 | # yum install youtube-dl.noarch |
Use this command to show help options of this script.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | $ youtube-dl --help Usage: youtube-dl [options] video_url Options: -h, --help print this help text and exit -v, --version print program version and exit -u USERNAME, --username=USERNAME account username -p PASSWORD, --password=PASSWORD account password -o FILE, --output=FILE output video file name -q, --quiet activates quiet mode -s, --simulate do not download video -t, --title use title in file name -l, --literal use literal title in file name -n, --netrc use .netrc authentication data -g, --get-url print final video URL only -2, --title-too used with -g, print title too |
To download a movie from youtube, just write command:
1 2 3 4 5 6 7 8 9 10 11 | $ youtube-dl http://www.youtube.com/watch?v=NNFYOX3oNvw Retrieving video webpage... done. Extracting URL "t" parameter... done. Requesting video file... done. Video data found at http://v9.lscache6.c.youtube.com/videoplayback?ip=0.0.0.0&sparams =id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dWSlJPVF9FSkN NNl9KSVhB&fexp=900808%2C904000&algorithm=throttle-factor&itag=5&ipbits=0&burst=40&sver =3&expire=1275246000&key=yt1&signature=D54C2822EABFE0A6633436510740C66DBB213329.3F4B6F 7093E92C20FF9E708B4181F04A913B0A16&factor=1.25&id=34d158397de836fc Retrieving video data: 100.0% ( 97.93k of 97.93k) at 3.37M/s ETA 00:00 done. Video data saved to NNFYOX3oNvw.flv |
Try it’s a good script.