Software:Youtube-dl

From HandWiki
Short description: Video download software


youtube-dl
Youtube-dl downloading Big Buck Bunny.png
youtube-dl being used to download Big Buck Bunny from YouTube
Original author(s)Ricardo García Gonzalez
Initial releaseAugust 8, 2006; 17 years ago (2006-08-08)
Stable release2019.07.27 (July 27, 2019; 4 years ago (2019-07-27)[1]) [±]
Repositorygithub.com/ytdl-org/youtube-dl
Written inPython
Operating systemWindows, macOS, Linux
Platform
TypeStream recorder
LicenseUnlicense
Websiteytdl-org.github.io/youtube-dl/

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

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

History

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

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

In 2021, some community members released a fork of youtube-dl, named youtube-dlc (for "community"). By the end of 2021, the effort was continuing as yt-dlp.[citation needed] It was included in Ubuntu as of the 22.04 release.[12]

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."[13] 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"),[14][15][16] 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.[17][18][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 (such as for archival and news reporting purposes).[20][5][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.[22][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]

Example code

For downloading video or playlist:

youtube-dl <url>

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>
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>

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

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

See also

References

  1. "Releases - rg3/youtube-dl". https://github.com/rg3/youtube-dl/releases. 
  2. "Debian -- Details of package youtube-dl in sid". https://packages.debian.org/sid/youtube-dl. 
  3. "Supported sites". youtube-dl's GitHub Pages site. http://ytdl-org.github.io/youtube-dl/supportedsites.html. 
  4. "Unlicense". https://unlicense.org/#unlicensed-free-software. 
  5. 5.0 5.1 Cimpanu, Catalin. "RIAA blitz takes down 18 GitHub projects used for downloading YouTube videos" (in en). https://www.zdnet.com/article/riaa-blitz-takes-down-18-github-projects-used-for-downloading-youtube-videos/. 
  6. "youtube_dl on Pypi" (in en). https://libraries.io/pypi/youtube_dl. 
  7. Garcia, Ricardo (August 8, 2006). "Release 2006.08.08". http://www.arrakis.es/~rggi3/youtube-dl/. 
  8. "Supported sites". youtube-dl. GitHub. 2019. https://github.com/ytdl-org/youtube-dl/blob/master/docs/supportedsites.md. 
  9. Garcia, Ricardo. "It's very nice to see a project I started reach the front page of HN.". https://news.ycombinator.com/item?id=8648436. 
  10. "Move myself to inactive". https://github.com/ytdl-org/youtube-dl/commit/21b759057502c6e70d51011cfb3fb86d84055182. 
  11. "Under new management · Issue #30568 · ytdl-org/youtube-dl" (in en). https://github.com/ytdl-org/youtube-dl/issues/30568. 
  12. "UbuntuUpdates - Package Search (all versions of yt-dlp)". https://www.ubuntuupdates.org/pm/yt-dlp. 
  13. "Youtube-dl Site Goes Offline as Hosting Provider Enforces Court-Ordered Ban". https://torrentfreak.com/youtube-dl-site-goes-offline-as-hosting-provider-enforces-court-ordered-ban-230809/. 
  14. Plaugic, Lizzie (2016-09-27). "Record labels sue popular YouTube audio-ripping site" (in en). https://www.theverge.com/2016/9/27/13076534/youtube-ripping-lawsuit-mp3-sony-universal. 
  15. Masnick, Mike (28 September 2016). "Can Someone Explain To The RIAA That SOPA Didn't Actually Pass?". https://www.techdirt.com/articles/20160927/17062135646/can-someone-explain-to-riaa-that-sopa-didnt-actually-pass-it-doesnt-seem-to-know-that.shtml. 
  16. "RIAA Delists YouTube Rippers From Google Using Rare Anti-Circumvention Notices" (in en). 2019-11-09. https://torrentfreak.com/riaa-delists-youtube-rippers-from-google-using-rare-anti-circumvention-notices-191108/. 
  17. "dmca/2020-10-23-RIAA.md at master · github/dmca". 2020-10-23. https://github.com/github/dmca/blob/master/2020/10/2020-10-23-RIAA.md. 
  18. Cimpanu, Catalin. "RIAA blitz takes down 18 GitHub projects used for downloading YouTube videos" (in en). https://www.zdnet.com/article/riaa-blitz-takes-down-18-github-projects-used-for-downloading-youtube-videos/. 
  19. Cushing, Tim (2020-10-26). "RIAA Tosses Bogus Claim At Github To Get Video Downloading Software Removed". https://www.techdirt.com/articles/20201023/19035045569/riaa-tosses-bogus-claim-github-to-get-video-downloading-software-removed.shtml. 
  20. Cox, Kate (2020-10-26). "GitHub boots popular YouTube download tool after RIAA claim" (in en-us). https://arstechnica.com/tech-policy/2020/10/github-boots-popular-youtube-download-tool-after-riaa-claim/. 
  21. Higgins, Parker (2020-10-26). "Music industry forces widely used journalist tool offline". https://freedom.press/news/riaa-github-youtube-dl-journalist-tool/. 
  22. 22.0 22.1 "RIAA's YouTube-DL Takedown Ticks Off Developers and GitHub's CEO". https://torrentfreak.com/riaas-youtube-dl-takedown-ticks-of-developers-and-githubs-ceo-201027/. 
  23. Mehta, Ivan (2020-10-27). "GitHub took down popular YouTube downloader — so devs made more copies" (in en-us). https://thenextweb.com/dd/2020/10/27/github-took-down-youtube-dl-so-devs-made-more-copies/. 
  24. 24.0 24.1 Harmon, Elliot; Stoltz, Mitch (17 November 2020). "GitHub Reinstates youtube-dl After RIAA’s Abuse of the DMCA" (in en). https://www.eff.org/deeplinks/2020/11/github-reinstates-youtube-dl-after-riaas-abuse-dmca. 
  25. Vollmer, Abby (November 16, 2020). "Standing up for developers: youtube-dl is back". GitHub, Inc.. https://github.blog/2020-11-16-standing-up-for-developers-youtube-dl-is-back/. 
  26. "GitHub revamps copyright takedown policy after restoring YouTube-dl" (in en). https://www.engadget.com/github-youtube-dl-aftermath-222301386.html. 
  27. "README.md". https://github.com/yt-dlp/yt-dlp/blob/master/README.md. 
  28. "linux - How to download portion of video with youtube-dl command?" (in en). https://unix.stackexchange.com/questions/230481/how-to-download-portion-of-video-with-youtube-dl-command. 

External links