Youtube-dl

Last updated
youtube-dl
Original author(s) Ricardo García Gonzalez
Initial releaseAugust 8, 2006;18 years ago (2006-08-08)
Stable release
2021.12.17 [1]   OOjs UI icon edit-ltr-progressive.svg / 17 December 2021;3 years ago (17 December 2021)
Preview release
2024.08.07 [2] / 7 August 2024
Repository github.com/ytdl-org/youtube-dl
Written in Python
Operating system Windows, macOS, Linux
Platform
Type Stream recorder
License Unlicense
Website ytdl-org.github.io/youtube-dl/

youtube-dl is a free and open source software tool for downloading video and audio from YouTube [3] and over 1,000 other video hosting websites. [4] It is released under the Unlicense software license. [5]

Contents

As of September 2021, youtube-dl is one of the most starred projects on GitHub, with over 100,000 stars. [6] According to libraries.io, 308 other packages and 1.43k repositories depend on it. [7] Numerous forks exist of the project.

History

youtube-dl was created in 2006 by Ricardo Garcia. [8] Initially, only YouTube was supported, but as the project grew, it began supporting other video sharing websites. [9]

Ricardo Garcia stepped down as maintainer in 2011 and was replaced by Philipp Hagemeister, [10] who later stepped down and was replaced by dstftw. [11] In 2021, dstftw stepped down and was replaced by dirkf. [12]

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. [13] yt-dlp was included in Ubuntu as of the 22.04 release. [14] 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. [15] [16]

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." [17] 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"), [18] [19] [20] 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. [21] [6] [22]

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. [23] [6] [24] 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. [25] GitHub users also filed pull requests to GitHub's own repository of DMCA takedown notices that included youtube-dl source code. [25] [26]

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. [27] 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. [27] 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. [28] [29]

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. [30] [31] [32] When it failed to respond, the Hamburg Regional Court ruled out that the access to the website will be blocked. [33]

Example code

For downloading the video or playlist:

youtube-dl <url>

The path of the output can be specified as: (file name to be included in the path)

youtube-dl -o <path> <url>

To see the list of all of the available file formats and sizes:

youtube-dl -F <url>
Youtube-dl downloading Big Buck Bunny.jpg

The video can be downloaded by selecting the format code from the list or typing the format manually:

youtube-dl -f <format/code> <url>

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. [34]

A portion of the video can be downloaded with the help of ffmpeg. [35]

See also

Related Research Articles

bnetd is a communication app that enables users of the online game StarCraft released on March 31, 1998 to connect and chat together. A bnetd clone was released on April 28, 1998 under the name StarHack and provided near-complete emulation of the original online multiplayer gaming service network. This was accomplished through reverse engineering of the corporate Blizzard Entertainment's Battle.net.

phpLDAPadmin is a web app for administering Lightweight Directory Access Protocol (LDAP) servers. It's written in the PHP programming language, and is licensed under the GNU General Public License. The application is available in 14 languages and supports UTF-8 encoded directory strings.

<span class="mw-page-title-main">Public-domain software</span> Software in the public domain

Public-domain software is software that has been placed in the public domain, in other words, software for which there is absolutely no ownership such as copyright, trademark, or patent. Software in the public domain can be modified, distributed, or sold even without any attribution by anyone; this is unlike the common case of software under exclusive copyright, where licenses grant limited usage rights.

<span class="mw-page-title-main">Public-domain-equivalent license</span> License that waives all copyright

Public-domain-equivalent license are licenses that grant public-domain-like rights and/or act as waivers. They are used to make copyrighted works usable by anyone without conditions, while avoiding the complexities of attribution or license compatibility that occur with other licenses.

Stream ripping is the process of saving data streams to a file. The process is sometimes referred to as destreaming.

<span class="mw-page-title-main">Invidious</span> Alternative YouTube frontend

Invidious is a free and open-source alternative frontend to YouTube. It is available as a Docker container, or from the GitHub master branch. It is intended to be used as a lightweight and "privacy-respecting" alternative to the official YouTube website. Many privacy preserving redirecting software as well as YouTube clients use Invidious instances.

<span class="mw-page-title-main">Recording Industry Association of America</span> Trade organization in the U.S.

The Recording Industry Association of America (RIAA) is a trade organization that represents the music recording industry in the United States. Its members consist of record labels and distributors that the RIAA says "create, manufacture, and/or distribute approximately 85% of all legally sold recorded music in the United States". RIAA is headquartered in Washington, D.C.

The Electronic Frontier Foundation (EFF) is an international non-profit advocacy and legal organization based in the United States and serves its operations worldwide.

<span class="mw-page-title-main">Digital Millennium Copyright Act</span> United States copyright law

The Digital Millennium Copyright Act (DMCA) is a 1998 United States copyright law that implements two 1996 treaties of the World Intellectual Property Organization (WIPO). It criminalizes production and dissemination of technology, devices, or services intended to circumvent measures that control access to copyrighted works. It also criminalizes the act of circumventing an access control, whether or not there is actual infringement of copyright itself. In addition, the DMCA heightens the penalties for copyright infringement on the Internet. Passed on October 12, 1998, by a unanimous vote in the United States Senate and signed into law by President Bill Clinton on October 28, 1998, the DMCA amended Title 17 of the United States Code to extend the reach of copyright, while limiting the liability of the providers of online services for copyright infringement by their users.

iOS jailbreaking is the use of a privilege escalation exploit to remove software restrictions imposed by Apple on devices running iOS and iOS-based operating systems. It is typically done through a series of kernel patches. A jailbroken device typically permits root access within the operating system and provides the right to install software unavailable through the App Store. Different devices and versions are exploited with a variety of tools. Apple views jailbreaking as a violation of the end-user license agreement and strongly cautions device owners not to try to achieve root access through the exploitation of vulnerabilities.

<span class="mw-page-title-main">TurnKey Linux Virtual Appliance Library</span> Open-Source virtual appliance library

The TurnKey Linux Virtual Appliance Library is a free open-source software project which develops a range of Debian-based pre-packaged server software appliances. Turnkey appliances can be deployed as a virtual machine, in cloud computing services such as Amazon Web Services or installed in physical computers.

<span class="mw-page-title-main">Kiwix</span> Open-source offline browser for public domain projects

Kiwix is a free and open-source offline web browser created by Emmanuel Engelhart and Renaud Gaudin in 2007. It was first launched to allow offline access to Wikipedia, but has since expanded to include other projects from the Wikimedia Foundation, public domain texts from Project Gutenberg, many of the Stack Exchange sites, and many other resources. Available in more than 100 languages, Kiwix has been included in several high-profile projects, from smuggling operations in North Korea to Google Impact Challenge's recipient Bibliothèques Sans Frontières.

This is a comparison of notable YouTube download and conversion software. YouTube conversion software is used to download and convert YouTube videos to popular formats or portable devices.

mpv (media player) Free and open-source media player software

mpv is free and open-source media player software based on MPlayer, mplayer2 and FFmpeg. It runs on several operating systems, including Unix-like operating systems and Microsoft Windows, along with having an Android port called mpv-android. It is cross-platform, running on ARM, MIPS, PowerPC, RISC-V, s390x, x86/IA-32, x86-64, and some other by 3rd party.

Zstandard is a lossless data compression algorithm developed by Yann Collet at Facebook. Zstd is the corresponding reference implementation in C, released as open-source software on 31 August 2016.

<span class="mw-page-title-main">Unlicense</span> Anti-copyright license

The Unlicense is a public domain equivalent license for software which provides a public domain waiver with a fall-back public-domain-like license, similar to the CC Zero for cultural works. It includes language used in earlier software projects and has a focus on an anti-copyright message.

<span class="mw-page-title-main">Yuzu (emulator)</span> Discontinued Nintendo Switch emulator

Yuzu is a discontinued free and open-source emulator of the Nintendo Switch, developed in C++. Yuzu was announced to be in development on January 14, 2018, 10 months after the release of the Nintendo Switch.

freeShop Defunct piracy software for the Nintendo 3DS

freeShop was a homebrew application for the Nintendo 3DS that allowed games to be downloaded from the Nintendo eShop's servers without being previously purchased. freeShop was first released in April 2016, before being removed from GitHub following a DMCA takedown notice sent in late December 2016.

<span class="mw-page-title-main">YouTube Vanced</span> Modified third-party YouTube application

YouTube Vanced is a discontinued modified third-party YouTube application for Android with a built-in ad blocker. Other features of the app included SponsorBlock, background play, free picture-in-picture (PiP), an AMOLED black theme, swipe control for brightness and volume, and implementation of the Return YouTube Dislike browser extension. Modified versions of YouTube Music and MicroG were also developed.

<span class="mw-page-title-main">Bypass Paywalls Clean</span> Browser extension to circumvent paywalls

Bypass Paywalls Clean (BPC) is a free and open-source web browser extension that circumvents paywalls. Developed by magnolia1234, the extension uses techniques such as clearing cookies and showing content from web archives.

References

  1. "Release youtube-dl 2021.12.17".
  2. "Release youtube-dl 2024.08.07 · ytdl-org/ytdl-nightly". GitHub. Retrieved 11 December 2024.
  3. "Debian -- Details of package youtube-dl in sid". packages.debian.org. Archived from the original on 2020-10-27. Retrieved 2020-10-24.
  4. "Supported sites". youtube-dl's GitHub Pages site. Retrieved 30 December 2020.
  5. "Unlicense". Unlicense.org. Retrieved 2020-11-17.
  6. 1 2 3 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.
  7. "youtube_dl on Pypi". Libraries.io. Archived from the original on 2020-10-23. Retrieved 2020-10-24.
  8. 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.
  9. "Supported sites". youtube-dl. GitHub. 2019. Archived from the original on May 9, 2019. Retrieved April 20, 2019.
  10. 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.
  11. "Move myself to inactive". GitHub . Retrieved 20 November 2022.
  12. "Under new management · Issue #30568 · ytdl-org/youtube-dl". GitHub. Retrieved 2022-02-08.
  13. yt-dlp/yt-dlp, yt-dlp, 2021-01-16, retrieved 2024-03-11, Allow the configuration files to be named yt-dlp instead of youtube-dlc.
  14. "UbuntuUpdates - Package Search (all versions of yt-dlp)". www.ubuntuupdates.org. Retrieved 2023-04-06.
  15. "Debian -- Details of package youtube-dl in bookworm". packages.debian.org. Retrieved 2024-05-14.
  16. "Ubuntu – Details of package youtube-dl in mantic". packages.ubuntu.com. Retrieved 2024-05-14.
  17. "Youtube-dl Site Goes Offline as Hosting Provider Enforces Court-Ordered Ban". torrentfreak.com. Retrieved 2023-08-09.
  18. 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.
  19. 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.
  20. "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.
  21. "dmca/2020-10-23-RIAA.md at master · github/dmca". GitHub . 2020-10-23. Archived from the original on 2020-10-24. Retrieved 2020-10-23.
  22. 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.
  23. 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.
  24. Higgins, Parker (2020-10-26). "Music industry forces widely used journalist tool offline". Freedom of the Press Foundation . Retrieved 2020-11-08.
  25. 1 2 "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.
  26. Mehta, Ivan (2020-10-27). "GitHub took down popular YouTube downloader — so devs made more copies". The Next Web. Retrieved 2020-11-08.
  27. 1 2 Harmon, Elliot; Stoltz, Mitch (17 November 2020). "GitHub Reinstates youtube-dl After RIAA's Abuse of the DMCA". Electronic Frontier Foundation. Retrieved 9 August 2023.
  28. 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.
  29. "GitHub revamps copyright takedown policy after restoring YouTube-dl". Engadget. 16 November 2020. Retrieved 2020-11-21.
  30. "Youtube-dl Site Goes Offline as Hosting Provider Enforces Court-Ordered Ban". TorrentFreak.
  31. "Musikindustrie verklagt Hoster von youtube-dl". netzpolitik.org.
  32. "Umgehung technischer Schutzmaßnahmen unter Verwendung der Software YouTube-DL" (PDF). netzpolitik.org.
  33. "LG Hamburg, Urteil vom 31.03.2023 - 310 O 316/21". openjur.de.
  34. "README.md". GitHub. Retrieved June 1, 2022.
  35. "linux - How to download a portion of video with youtube-dl command?". Unix & Linux Stack Exchange.