youtube-dl is a free and open source download manager for video and audio from YouTube and over 1,000 other video hosting websites. It is released under the Unlicense software license.
|Original author(s)||Ricardo García Gonzalez|
|Initial release||August 8, 2006|
2021.12.17 / 17 December 2021
|Operating system||Windows, macOS, Linux|
As of September 2021, youtube-dl is one of the most starred projects on GitHub, with over 100,000 stars. According to libraries.io, 308 other packages and 1.43k repositories depend on it. Numerous forks exist of the project.
youtube-dl was created in 2006 by Ricardo Garcia. Initially, only YouTube was supported, but as the project grew, it began supporting other video sharing websites.
Ricardo Garcia stepped down as maintainer in 2011 and was replaced by Philipp Hagemeister, who later stepped down and was replaced by dstftw. In 2021, dstftw stepped down and was replaced by dirkf.
RIAA takedown requestEdit
On October 23, 2020, the Recording Industry Association of America (RIAA) issued a takedown notice to GitHub under the Digital Millennium Copyright Act (DMCA), requesting the removal of youtube-dl and 17 public forks of the project. The RIAA request argued that youtube-dl violates the Section 1201 anti-circumvention provisions of the DMCA, and provisions of German copyright law, since it circumvents a "rolling cipher" used by YouTube to generate the URL for the video file itself (which the RIAA has considered to be an effective technical protection measure, since it is "intended to inhibit direct access to the underlying YouTube video files, thereby preventing or inhibiting the downloading, copying, or distribution of the video files"), and that its documentation expressly encouraged its use with copyrighted media by listing music videos by RIAA-represented artists as examples. GitHub initially complied with the request.
Users criticized the takedown, noting the legitimate uses for the application, including downloading video content released under open licensing schemes or to create derivative works falling under fair use (such as for archival and news reporting purposes). Public attention to the takedown resulted in a Streisand effect reminiscent to that of the DeCSS takedown. Users reposted the software's source code across the internet in multiple formats. For example, users posted images on Twitter containing the whole youtube-dl source code encoded in different colors on each pixel. GitHub users also filed pull requests to GitHub's own repository of DMCA takedown notices that included youtube-dl source code.
On November 16, 2020, GitHub publicly reinstated the repository, after the Electronic Frontier Foundation sent GitHub a document contesting that the software was not capable of breaching commercial DRM systems. GitHub also announced that future takedown claims under Section 1201 would be manually scrutinized on a case-by-case basis by legal and technical experts.
For downloading video or playlist:
Path of the output can be specified as: (file name to be included in the path)
youtube-dl -o <path> <url>
To see list of all available file formats and sizes:
youtube-dl -F <url>
The video can be downloaded by selecting the format code from the list or typing the format manually:
youtube-dl -f <format/code> <url>
Best quality video can be downloaded with
-f best option. Also, the quality of audio and video streams can be specified separately and merged with the
+ operator. 
A portion of the video can be downloaded with the help of ffmpeg.
- ^ "Release youtube-dl 2021.12.17".
- ^ "Debian -- Details of package youtube-dl in sid". packages.debian.org. Archived from the original on 2020-10-27. Retrieved 2020-10-24.
- ^ "Supported sites". youtube-dl's GitHub Pages site. Retrieved 30 December 2020.
- ^ "Unlicense". Unlicense.org. Retrieved 2020-11-17.
- ^ a b Cimpanu, Catalin. "RIAA blitz takes down 18 GitHub projects used for downloading YouTube videos". ZDNet. Archived from the original on 2020-10-24. Retrieved 2020-10-24.
- ^ "youtube_dl on Pypi". Libraries.io. Archived from the original on 2020-10-23. Retrieved 2020-10-24.
- ^ Garcia, Ricardo (August 8, 2006). "Release 2006.08.08". Internet Archive Wayback Machine. Archived from the original on 2006-08-12. Retrieved 14 November 2020.
- ^ "Supported sites". youtube-dl. GitHub. 2019. Archived from the original on May 9, 2019. Retrieved April 20, 2019.
- ^ Garcia, Ricardo. "It's very nice to see a project I started reach the front page of HN". Hacker News. Archived from the original on 29 October 2020. Retrieved 25 October 2020.
- ^ "Move myself to inactive". Retrieved 20 November 2022.
- ^ "Under new management · Issue #30568 · ytdl-org/youtube-dl". GitHub. Retrieved 2022-02-08.
- ^ Plaugic, Lizzie (2016-09-27). "Record labels sue popular YouTube audio-ripping site". The Verge. Archived from the original on 2020-02-25. Retrieved 2020-02-25.
- ^ Masnick, Mike (28 September 2016). "Can Someone Explain To The RIAA That SOPA Didn't Actually Pass?". Techdirt. Archived from the original on 2020-02-25. Retrieved 2020-02-25.
- ^ "RIAA Delists YouTube Rippers From Google Using Rare Anti-Circumvention Notices". TorrentFreak. 2019-11-09. Archived from the original on 2020-03-29. Retrieved 2020-02-25.
- ^ "dmca/2020-10-23-RIAA.md at master · github/dmca". GitHub. 2020-10-23. Archived from the original on 2020-10-23. Retrieved 2020-10-23.
- ^ Cimpanu, Catalin. "RIAA blitz takes down 18 GitHub projects used for downloading YouTube videos". ZDNet. Archived from the original on 2020-10-24. Retrieved 2020-10-24.
- ^ Cushing, Tim (2020-10-26). "RIAA Tosses Bogus Claim At Github To Get Video Downloading Software Removed". Techdirt. Archived from the original on 2020-10-27. Retrieved 2020-10-27.
- ^ Cox, Kate (2020-10-26). "GitHub boots popular YouTube download tool after RIAA claim". Ars Technica. Archived from the original on 2020-10-26. Retrieved 2020-10-27.
- ^ Higgins, Parker (2020-10-26). "Music industry forces widely used journalist tool offline". Freedom of the Press Foundation. Retrieved 2020-11-08.
- ^ a b "RIAA's YouTube-DL Takedown Ticks Off Developers and GitHub's CEO". Torrentfreak. Archived from the original on 28 October 2020. Retrieved 28 October 2020.
- ^ Mehta, Ivan (2020-10-27). "GitHub took down popular YouTube downloader — so devs made more copies". The Next Web. Retrieved 2020-11-08.
- ^ Vollmer, Abby (November 16, 2020). "Standing up for developers: youtube-dl is back". The GitHub Blog. GitHub, Inc. Archived from the original on November 16, 2020. Retrieved November 16, 2020.
- ^ "GitHub revamps copyright takedown policy after restoring YouTube-dl". Engadget. Retrieved 2020-11-21.
- ^ "README.md". GitHub. Retrieved June 1, 2022.
- ^ "linux - How to download portion of video with youtube-dl command?". Unix & Linux Stack Exchange.