Youtube-dl explained
youtube-dl is a free and open source software tool for downloading video and audio from YouTube[1] and over 1,000 other video hosting websites.[2] It is released under the Unlicense software license.[3]
As of September 2021, youtube-dl is one of the most starred projects on GitHub, with over 100,000 stars.[4] According to libraries.io, 308 other packages and 1.43k repositories depend on it.[5] Numerous forks exist of the project.
History
youtube-dl was created in 2006 by Ricardo Garcia.[6] Initially, only YouTube was supported, but as the project grew, it began supporting other video sharing websites.[7]
Ricardo Garcia stepped down as maintainer in 2011 and was replaced by Philipp Hagemeister,[8] who later stepped down and was replaced by dstftw.[9] In 2021, dstftw stepped down and was replaced by dirkf.[10]
In 2021, some community members released a fork of youtube-dl, named youtube-dlc (for "community"). By January 2021, the effort was continuing as yt-dlp. yt-dlp was included in Ubuntu as of the 22.04 release.[11] youtube-dl was removed from Debian 12.0 and Ubuntu 23.10 due to stagnant development and replaced with an empty package depending on yt-dlp.[12] [13]
In August 2023, German company Uberspace took down a web domain which they hosted at their premises for the original youtube-dl project, citing a regional German court order issued from Landgericht, Hamburg which appeared to ban the mere hosting of information and GitHub developer links related to the cracking of (non-cryptographic) "rolling ciphers."[14] The GitHub subdomain webpage remains in place.
RIAA takedown request
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"),[15] [16] [17] 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.[18] [4] [19]
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, or other uses such as journalism, archival and law enforcement.[20] [4] [21] 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.[22] GitHub users also filed pull requests to GitHub's own repository of DMCA takedown notices that included youtube-dl source code.[23]
On November 16, 2020, the repository was reinstated, after the Electronic Frontier Foundation sent GitHub a letter cautioning that its removal might set a precedent for other copyright holders to misuse the notice-and-takedown process to remove software tools from the Internet-based only on the argument that those tools could be used for copyright infringement
.[24] Furthermore, the EFF letter asserted that the software was not operating as a "circumvention device", breaching DRM on the video stream, as the stream itself was not encrypted.[24] 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.[25] [26]
Related takedowns
On September 22, 2020, parallel to the RIAA takedown request, the German webhoster Uberspace was warned by Sony Entertainment, Warner Music Group and Universal Music, for hosting the service on their website.[27] [28] [29] When it failed to respond, the Hamburg Regional Court ruled out that the access to the website will be blocked.[30]
Example code
For downloading the video or playlist: youtube-dl The path of the output can be specified as: (file name to be included in the path) youtube-dl -o To see the list of all of the available file formats and sizes: youtube-dl -F The video can be downloaded by selecting the format code from the list or typing the format manually: youtube-dl -f
The best quality video can be downloaded with the -f best
option. Also, the quality of the audio and video streams can be specified separately and merged with the +
operator.[31]
A portion of the video can be downloaded with the help of ffmpeg.[32]
See also
Notes and References
- Web site: Debian -- Details of package youtube-dl in sid. 2020-10-24. packages.debian.org. 2020-10-27. https://web.archive.org/web/20201027015452/https://packages.debian.org/sid/youtube-dl. live.
- Web site: Supported sites. youtube-dl's GitHub Pages site. 30 December 2020.
- Web site: Unlicense. 2020-11-17. Unlicense.org.
- Web site: Cimpanu. Catalin. RIAA blitz takes down 18 GitHub projects used for downloading YouTube videos. 2020-10-24. ZDNet. en. 2020-10-24. https://web.archive.org/web/20201024000819/https://www.zdnet.com/article/riaa-blitz-takes-down-18-github-projects-used-for-downloading-youtube-videos/. live.
- News: youtube_dl on Pypi. 2020-10-24. Libraries.io. en. 2020-10-23. https://web.archive.org/web/20201023195052/https://libraries.io/pypi/youtube_dl. live.
- Web site: Garcia . Ricardo . Release 2006.08.08 . August 8, 2006. Internet Archive Wayback Machine . https://web.archive.org/web/20060812055952/http://www.arrakis.es/~rggi3/youtube-dl/ . 14 November 2020. 2006-08-12 .
- Web site: Supported sites . . youtube-dl . 2019 . April 20, 2019 . May 9, 2019 . https://web.archive.org/web/20190509171531/https://github.com/ytdl-org/youtube-dl/blob/master/docs/supportedsites.md . live .
- Web site: Garcia . Ricardo . It's very nice to see a project I started reach the front page of HN. . Hacker News . 25 October 2020 . 29 October 2020 . https://web.archive.org/web/20201029002625/https://news.ycombinator.com/item?id=8648436 . live .
- Web site: Move myself to inactive . . 20 November 2022.
- Web site: Under new management · Issue #30568 · ytdl-org/youtube-dl. 2022-02-08. GitHub. en.
- Web site: UbuntuUpdates - Package Search (all versions of yt-dlp) . 2023-04-06 . www.ubuntuupdates.org.
- Web site: Debian -- Details of package youtube-dl in bookworm . 2024-05-14 . packages.debian.org.
- Web site: Ubuntu – Details of package youtube-dl in mantic . 2024-05-14 . packages.ubuntu.com.
- Web site: Youtube-dl Site Goes Offline as Hosting Provider Enforces Court-Ordered Ban . 2023-08-09 . torrentfreak.com.
- Web site: Plaugic. Lizzie. 2016-09-27. Record labels sue popular YouTube audio-ripping site. 2020-02-25. The Verge. en. 2020-02-25. https://web.archive.org/web/20200225160217/https://www.theverge.com/2016/9/27/13076534/youtube-ripping-lawsuit-mp3-sony-universal. live.
- Web site: Masnick. Mike. Can Someone Explain To The RIAA That SOPA Didn't Actually Pass?. 2020-02-25. Techdirt.. 28 September 2016 . 2020-02-25. https://web.archive.org/web/20200225160217/https://www.techdirt.com/articles/20160927/17062135646/can-someone-explain-to-riaa-that-sopa-didnt-actually-pass-it-doesnt-seem-to-know-that.shtml. live.
- Web site: 2019-11-09. RIAA Delists YouTube Rippers From Google Using Rare Anti-Circumvention Notices. 2020-02-25. TorrentFreak. en. 2020-03-29. https://web.archive.org/web/20200329202929/https://torrentfreak.com/riaa-delists-youtube-rippers-from-google-using-rare-anti-circumvention-notices-191108/. live.
- Web site: 2020-10-23. dmca/2020-10-23-RIAA.md at master · github/dmca. live. https://web.archive.org/web/20201024035235/https://github.com/github/dmca/blob/master/2020/10/2020-10-23-RIAA.md. 2020-10-24. 2020-10-23. GitHub.
- Web site: Cushing. Tim. 2020-10-26. RIAA Tosses Bogus Claim At Github To Get Video Downloading Software Removed. live. https://web.archive.org/web/20201027021959/https://www.techdirt.com/articles/20201023/19035045569/riaa-tosses-bogus-claim-github-to-get-video-downloading-software-removed.shtml. 2020-10-27. 2020-10-27. Techdirt..
- Web site: Cox. Kate. 2020-10-26. GitHub boots popular YouTube download tool after RIAA claim. 2020-10-27. Ars Technica. en-us. 2020-10-26. https://web.archive.org/web/20201026235745/https://arstechnica.com/tech-policy/2020/10/github-boots-popular-youtube-download-tool-after-riaa-claim/. live.
- Web site: Higgins. Parker. 2020-10-26. Music industry forces widely used journalist tool offline. 2020-11-08. Freedom of the Press Foundation.
- Web site: RIAA's YouTube-DL Takedown Ticks Off Developers and GitHub's CEO . Torrentfreak . 28 October 2020 . 28 October 2020 . https://web.archive.org/web/20201028020632/https://torrentfreak.com/riaas-youtube-dl-takedown-ticks-of-developers-and-githubs-ceo-201027/ . live .
- Web site: Mehta. Ivan. 2020-10-27. GitHub took down popular YouTube downloader — so devs made more copies. 2020-11-08. The Next Web. en-us.
- Web site: Harmon . Elliot . Stoltz . Mitch . GitHub Reinstates youtube-dl After RIAA's Abuse of the DMCA . Electronic Frontier Foundation . 9 August 2023 . en . 17 November 2020.
- Web site: Vollmer . Abby . Standing up for developers: youtube-dl is back . The GitHub Blog . GitHub, Inc. . November 16, 2020 . https://web.archive.org/web/20201116164117/https://github.blog/2020-11-16-standing-up-for-developers-youtube-dl-is-back/ . November 16, 2020 . November 16, 2020 . live.
- Web site: GitHub revamps copyright takedown policy after restoring YouTube-dl. 2020-11-21. Engadget. 16 November 2020 . en.
- Web site: Youtube-dl Site Goes Offline as Hosting Provider Enforces Court-Ordered Ban . TorrentFreak.
- Web site: Musikindustrie verklagt Hoster von youtube-dl . netzpolitik.org.
- Web site: Umgehung technischer Schutzmaßnahmen unter Verwendung der Software YouTube-DL . netzpolitik.org.
- Web site: LG Hamburg, Urteil vom 31.03.2023 - 310 O 316/21 . openjur.de.
- Web site: README.md . GitHub . June 1, 2022.
- Web site: linux - How to download a portion of video with youtube-dl command? . Unix & Linux Stack Exchange . en.