125 points · by packjc · 2y ago · 81 comments
https://github.com/yt-dlp/yt-dlp is a well-maintained public domain alternative.
> Q: If I make a derivative work based on your project (e.g. use your library), would I need to also include your terms of use in my own project?
> A: No, you don't have to do that. But I won't stop you if you want to.
https://github.com/minanagehsalalma/Youtube-Downloader-Bookm... (https://raw.githubusercontent.com/minanagehsalalma/Youtube-D...)
document.documentElement.innerHTML.match(/https?:\/\/[^\s/$.?#].[^\s]*videoplayback(?:\?|%3F)[^'"]+/g)
Tried this on two videos and it returned null both times.On Windows in Chrome, it indeed works.
DASH is the correct way to do this. The combined formats are legacy.
Non destructive editing is more important with the new formats, because they compress to smaller files and cause greater problems when you unpack and recompress them.
This is why mp3 still is a good format for 2024.
yt-dlp -x [YouTube or other url] yt-dlp -i --format "bestaudio" -x --convert-thumbnail jpg --add-metadata --embed-metadata --embed-thumbnail --audio-format "best" -o "%(autonumber)02d %(title)s (%(upload_date>%Y-%m-%d)s) [%(id)s].%(ext)s" "https:// ... youtube URL ..."
This adds some tags and the thumbnail as cover file. It will save to whatever format the video itself has, usually .opus.https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites....
I was hoping for a working download for NPR Music, but it failed me last week for Kiefer’s set on Tiny Desk. Couldn’t airplay or chromecast it (without doing the whole screen, with all the trade offs that entails), and HDMI did a weird thing on macOS where the playback was sped up in every major browser.
Had a resort to a Firefox extension to download the video and Plex it in order to use the TV. Of course, I didn’t see if they had a Roku or similar app, and was just impatient to wait for the YouTube upload. Sigh.
My usual is:
yt-dlp -f 140 [url]
The -f 140 maps to the m4a format.yt-dlp -f bestaudio <url>
it directly downloads the audio from youtube and does not require ffmpeg unlike the -x option. moreover, you can specify format (m4a or default webm) like so - replace "bestaudio" with "bestaudio[ext=<format>]"
this only falls short unless you explicitly need it in mp3 container.
This is what I prefer: Downloading original OPUS audio, demuxing to .opus, without reconversions using a bash oneliner. Highest Quality you can get from YouTube.
Appreciate the minimalistic UI, no frills. 170 MB for a YouTube MP3 Downloader seems a bit steep though.
Opus has an advantage over AAC-LC (not HE variants) at lower bitrates, but by 128 kbps Opus loses any efficiency advantage. AAC-LC is going to give you slightly better quality and far broader device compatibility.
https://hydrogenaud.io/index.php/topic,120166.0.html?PHPSESS...
Youtube has been pretty good at fighting the online tools, meanwhile, spammers have been pretty good at filling search results with non-tools full of ads.
I've found it difficult to do the occasional drive-by download, because none of the old tools (kickyouotube, etc) that I remember the name of work or exists, and googling for online services returns junk.
a) highlighting that this extracts the audio track only (not everyone is 100% firm with their audio and video formats)
b) investigating whether one could, instead of downloading the highest video quality and then discarding it, download only the highest quality audio? (yt-dlp and cousins allow that.)
I think it's pretty clear from the title that this is audio-only.
2) Any lossy re-encoding step degrades quality. You'll get the highest quality by saving the stream direct from the server and skipping the re-encode step. Just pass --extract-audio and skip all those other arguments.
1: https://gist.github.com/entropie/d265e94136b9777cc6b3190189b...