Tuesday, January 27, 2009

Download videos from Youtube

There is this very nifty thing that comes along with fedora, they are:
youtube-dl and ffmpeg. If you don't already have them on your system then you can install it through yum.

yum install youtube-dl ffmpeg

You can download any video from youtube by youtube-dl and convert them to your desired format using ffmpeg.

To download the video from youtube:

$ youtube-dl <url> -o <filename>

eg. $ youtube-dl http://in.youtube.com/watch?v=mCMuDP0Qhq0 -o AmericanPie.flv

And to convert them to avi format

$ ffmpeg -i AmericanPie.flv americanPie.avi

or

$ ffmpeg -i AmericanPie.flv americanPie.mpg

to convert them to mpg.

you can convert the videos to any format that you want. Just go through the man page of youtube-dl and ffmpeg to discover all their abilities. :)

No comments:

Post a Comment