Youtube-dl Download Youtube Videos

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/youtube-dl-download-youtube-videos/
PINTEREST
PINTEREST
INSTAGRAM

youtube-dl is a small application written with python to download youtube provided media content like video and audio. What makes youtube-dl so popular are simple, works and rich feature set. youtube-dl currently supports YouTube.com, Dailymotion, Google Video, Photobucket, Facebook, Yahoo, Metacafe, Depositfiles, brightcove.com, auengine.com, RingTV, instagram.com, Jukebox, 3sat, CSpan, Statigr.am, traileraddict.com, hotnewhiphop.com, wat.tv, tu.tv, gamespot.com, tudou.com, Wimp.com, archive.org, break.com as media provider.

We will look in detail how to use youtube-dl provided features. youtube-dl can run Windows, Linux like Ubuntu,Fedora,Debian, Mac OS X operating systems.

Download and Install youtube-dl

youtube-dl can be get different ways like pip, package manager, manual download etc. We will look most easy and recent one ways.

Windows

Windows binary can be downloaded from link below. And installed with Next-Next

http://youtube-dl.org/downloads/latest/youtube-dl.exe

Linux (Ubuntu, Debian)

Ubuntu and Debian packages can be installed with apt command like below.

Ubuntu, Debian

Linux (Fedora)

Pip

Pip provides operating system independent python package and library management. By using pip youtube-dl can be downloaded like below.

Pip

Pip

Help

Youtube-dl has a long help page which contains all details of its features. Help page can be listed like below.

Help

Help

Man

Man page provides more detailed information about youtube-dl usage.

Man

Man

Update

Update scenario can change according to our installation method. IF we have installed with package manager like apt, yum or pip we should use these tools to update. If we have installed manually following command can be used to update.

LEARN MORE  Compare Lubuntu vs Xubuntu

Download Video With Url

The most popular usage of youtube-dl is downloading videos  by providing their urls. While providing urls to prevent bash related errors use double quote.This will download the video and save most appropriate format to our local computer.

Download Video With Url

Download Video With Url

Download Audio

If we are only interested with audio part and not video part -x parameter will extract audio from video. The format will be mp3 in this situation.

Download Audio

Download Audio

Download Playlist

YouTube provides videos as playlist too where these videos are related. Youtube-dl can download playlist videos one by one like following command.

Download Playlist

Download Playlist

List Supported Video Formats

Youtube provides videos on different formats and resolution. To get all formats and resolutions about a video -F option can be provided with url like below.

List Supported Video Formats

List Supported Video Formats

Download Video As Mp4

From supported formats list select mp4 extension and intended resolutions format code.

Download Video As Mp4

Download Video As Mp4

Download Video As Webm

Similar to the mp4 example webm format code should be provided from supported video formats.

Download Video As Webm

Download Video As Webm

Download With All Subtitles

Some video service providers also provides subtitles about videos in different languages. These sub titles are low in size and can be downloaded like below.

LEARN MORE  What is File System Block And Super Block?

Download Batch File

Download file urls can be provided from interactive command line what we have done up to now or from a file. This file should contains links line by line like example below.

and downloads can be started like below.

Download Batch File

Download Batch File

Bandwidth Limit

Downloading video files will consume a lot of bandwidth because of the video nature. To prevent network congestion bandwidth usage limit can be set for youtube-dl like below. -r 1000 sets bandwidth as 1000 byte/second.

Bandwidth Limit

Bandwidth Limit

Resume Even Errors

Sometimes errors occur in different ways like video not available for your country or video is deleted. By default this type of errors will stop download especially in playlist download. To prevent download stopping from errors -i option is provided to ignore errors.

RSS
EMAIL
FACEBOOK
FACEBOOK
GOOGLE
GOOGLE
https://www.poftut.com/youtube-dl-download-youtube-videos/
PINTEREST
PINTEREST
INSTAGRAM

You may also like...

Leave a Reply

Your email address will not be published.

Enjoy this blog? Please spread the word :)