youtube-dl - multi-site media/video downloader

Submit command line tools that you find here.
Post Reply
Message
Author
Specular
Posts: 418
Joined: Sun Feb 16, 2014 10:54 pm

youtube-dl - multi-site media/video downloader

#1 Post by Specular » Fri Feb 07, 2020 2:41 am

youtube-dl is a well-established and popular program enabling downloading audio/video and related streams (subtitles, thumbnails, metadata) from hundreds of sites (full list here).

Download: (Windows): http://yt-dl.org/downloads/latest/youtube-dl.exe
Dependancies: Microsoft Visual C++ 2010 Redistributable Package (x86), optionally AtomicParsley to embed thumbnails into videos.
Documentation: Github
Stealth: yes but requires setting custom cache directory location (see below).
License:: The Unlicense
Development: mature
Update cycle: frequent (but not necessary to update as frequently unless a site's download function breaks)

Screenshot - alternate.png

Example syntax:

Note that syntax is case-sensitive (eg: -f is not the same as -F). See documentation link for all available options and examples of usage.

Downloading a video

Code: Select all

youtube-dl <URL>
Defaults to best available audio/video streams, automatically remuxing if necessary. Output directory defaults to program directory unless -o <path> is also specified in command (or set up in a config file).

Checking available audio/video streams

Code: Select all

youtube-dl -F <URL>
Download and combine specific audio/video streams

Code: Select all

youtube-dl -f <video stream ID>+<audio stream ID> <URL>
Audio/video stream names will differ from site-to-site. Youtube example:

Code: Select all

youtube-dl -f 247+251 https://www.youtube.com/watch?v=ZRCdORJiUgU
Updating youtube-dl

Code: Select all

youtube-dl -U
Configuring for stealth

By default youtube-dl caches information such as obfuscated signatures for certain sites like Youtube in a user directory (C:\Users\<username>\.cache\youtube-dl). To change this location you need to define a path using the option --cache dir <path>. However this has to be entered every run to maintain stealth.

This location can be set permanently via creating a config file instead of entering it for every command but the catch is youtube-dl checks for the existence of config file in a default location (C:\Users\<user name>\youtube-dl.conf) that can't be changed unless pointing youtube-dl to a different location upon every run (using --config-location <path>).

For standard use where stealth isn't a consideration setting up default one's preferred defaults is recommended via creation of a config file in the default location.
Last edited by Specular on Fri Feb 07, 2020 3:11 am, edited 4 times in total.

User avatar
SYSTEM
Posts: 1934
Joined: Sat Jul 31, 2010 1:19 am
Location: Helsinki, Finland

Re: youtube-dl - multi-site media/video downloader [mature, active updates]

#2 Post by SYSTEM » Fri Feb 07, 2020 2:56 am

Specular wrote:
Fri Feb 07, 2020 2:41 am
Update cycle: daily (but not necessary to update as frequently unless a site's download function breaks)
youtube-dl does not get an update every day. From the changelog we can see that the most recent updates have been on January 1, January 15 and January 24. In other words, about every two weeks.

BTW, Keppi uses youtube-dl to obtain the raw URLs of audio streams to be able to stream music from YouTube and SoundCloud, and it has its own GUI youtube-dl updater that activates if you open the "Open URL" dialog.
My YouTube channel | Release date of my 13th playlist: August 24, 2020

Specular
Posts: 418
Joined: Sun Feb 16, 2014 10:54 pm

Re: youtube-dl - multi-site media/video downloader [mature, active updates]

#3 Post by Specular » Fri Feb 07, 2020 3:01 am

SYSTEM wrote:
Fri Feb 07, 2020 2:56 am
youtube-dl does not get an update every day. From the changelog we can see that the most recent updates have been on January 1, January 15 and January 24. In other words, about every two weeks.
You're correct. Became mixed up with ffmpeg, the Zeranoe builds of which I'd checked a couple days prior and has seen updates frequently every 1-3 days.
SYSTEM wrote:
Fri Feb 07, 2020 2:56 am
BTW, Keppi uses youtube-dl to obtain the raw URLs of audio streams to be able to stream music from YouTube and SoundCloud, and it has its own GUI youtube-dl updater that activates if you open the "Open URL" dialog.
It's utilized as the backend to a variety of programs, yeah. One of the great things about CLI programs with permissive licenses.

User avatar
Midas
Posts: 5467
Joined: Mon Dec 07, 2009 7:09 am
Location: Sol3

Re: youtube-dl - multi-site media/video downloader [mature, active]

#4 Post by Midas » Fri Feb 07, 2020 4:37 am

Thanks for the stealth info, Specular. With so many options, that is a valuable piece of information. 8)

billon
Posts: 801
Joined: Sat Jun 23, 2012 4:28 pm

Re: youtube-dl - multi-site media/video downloader

#5 Post by billon » Fri Sep 25, 2020 2:33 pm

https://github.com/blackjack4494/youtube-dlc
youtube-dlc is a fork of youtube-dl with the intention of getting features tested by the community merged in the tool faster, since youtube-dl's development seems to be slowing down.

billon
Posts: 801
Joined: Sat Jun 23, 2012 4:28 pm

Re: youtube-dl - multi-site media/video downloader

#6 Post by billon » Fri Oct 16, 2020 12:36 am

https://sourceforge.net/projects/advanc ... lient-ayc/
Advanced Youtube Client - AYC is a unique console frontend for the popular program youtube-dl with additional tools like aria2c and ffmpeg added in the package for extra functionality and faster downloads.

TP109
Posts: 547
Joined: Sat Apr 08, 2006 7:12 pm
Location: Midwestern US

Re: youtube-dl - multi-site media/video downloader

#7 Post by TP109 » Fri Oct 16, 2020 5:57 am

billon wrote:
Fri Oct 16, 2020 12:36 am
https://sourceforge.net/projects/advanc ... lient-ayc/
Advanced Youtube Client - AYC is a unique console frontend for the popular program youtube-dl with additional tools like aria2c and ffmpeg added in the package for extra functionality and faster downloads.
Was expecting a snazzy GUI type front-end with bells and whistles - not a batch file. Looks and functions very similar to a batch file I made that does the same, except I use Openwith++ or Open++ to quickly select or change the default download folder. AYC allows the user to change the download folder using the M option. Otherwise, the default location is "C:\Users\user\Videos\Advanced Youtube Client - AYC".

Post Reply