Sunday, 1 June 2014

Download YouTube Videos From Ubuntu / Fedora using Youtube-DL [1080p]

We all like YouTube , no doubt the best and most loved video sharing website in the world.
Even though Google owned video sharing website don't allow us to download videos officially we all youtube-lovers like to download videos.There are many apps ,tools,extensions addons etc to download youtube videos.But if you are on Linux youtube-dl  is the best utility for you.
This command-line utility is best youtube downloader which is still maintained and developed.

To install youtube-dl in Ubuntu /Linux Mint
sudo apt-get install youtube-dl
To install youtube-dl in Fedora 

yum install youtube-dl 
In Centos 64Bit


In Centos 32Bit


rpm -Uvh epel-release-*.rpm

yum install youtube-dl

To download videos using youtube-dl enter following in terminal

youtube-dl -F <video-URL>

Now From list pick the number for Appropriate video quality and enter

youtube-dl -f <number> <video-url>

As Google Policy lately doesn't allow to download videos in 1080p directly.
1080p Dash video (137) is without audio.
If you still want to Download 1080p video enter following.

youtube-dl -f 137+140 <video-url>

But if in case above doesn't work for 1080p video .
Try First downloading 1080p DASH 137 video in mp4

youtube-dl -f 137 <video-url>

Then download the audio mostly its number is 140 of 128K m4a format

youtube-dl -f 140 <video-url>

Now we mux the audio and video to produce our Full-HD video using FFmpeg

To install FFmpeg on Fedora Centos

yum install ffmpeg

To install in Ubuntu 14.04 /Linux Mint 17

 sudo apt-add-repository ppa:mc3man/trusty-media
 sudo apt-get update

 sudo apt-get install ffmpeg gstreamer0.10-ffmpeg

For older versions of Ubuntu / Linux Mint just type

 sudo apt-get install ffmpeg

To mux video.f137.mp4 and audio.f140.m4a enter following command

ffmpeg -i  video.f137.mp4 -i audio.f140.m4a -qscale 0 video1080p.mp4

Note: -qscale 0 is for maintaining Dash Video quality during muxing.

Once Finished enjoy your Full-HD 1080p video!!!.

No comments:

Post a Comment