Live data from Hacker News

Open Source YouTube to MP3 Downloader

github.com

41–50 of 92 posts

Re: Open Source YouTube to MP3 Downloader

#41
post #31

Earlier quoted context omitted.

Why not Opus.

There are many reasons, and as a user of Opus you are probably aware of the trade offs?

Haven't tracked trade offs recently, but I always use Opus when I save audio from Youtube since it's the best codec option there.

Re: Open Source YouTube to MP3 Downloader

#43
post #7

for those of us comfy with the console: yt-dlp -x [YouTube or other url]

I think the "or other url" is important here. I didn't realise for a long time that I could put a reddit, Twitter or other URLs in there to download videos. You can find a complete list of supported sites here: https://github.com/yt-dlp/yt-dlp/blob/master/supportedsites....

Oh yes. I know 'the others'. Works well.

Re: Open Source YouTube to MP3 Downloader

#45
post #35
post #19

Earlier quoted context omitted.

MP3 (audio-only) and MP4 (video) is a one-character difference. It's clear to the people that browse HackerNews, it is seldom clear to the layperson.

Laypeople have known what MP3s are since Napster was making headlines. Laypeople have mostly never heard of MP4.

Fewer remember modified mp4 with patched atom location to help play media while downloading off a CDN.

For most mobile users, using the more modern VP9 and HEVC essentially just burns battery life, and even modern GPU based desktop users usually see their card warm up on YT.

MP4 is far from perfect, but play/resume/skip-to location media mods for a web-server are common (js or html5 support is stable.) This saves a lot of grief setting up media servers, but most people now just use an online platform... rather than figure this stuff out.

I kind of miss the days a lazy layman coudn't post lame garbage video content.

Have a wonderful day =3

Re: Open Source YouTube to MP3 Downloader

#46

Who needs MP3 in 2024? Retrocomputing does! So a really lightweight YouTube client capable of running on Windows 95 and/or 486-class machines producing MP3 output would make a really great sense. Can this? For everyone else there are AAC and OPUS.

I still use an iPod with Rockbox firmware as my everyday music player so I also still need mp3s :3

Re: Open Source YouTube to MP3 Downloader

#47

YouTube presents audio in 2 forms under various bitrates and formats. AAC and OPUS. The Opus track @128kbps (even better than the sometimes available AAC @160kbps) is the highest quality and can be downloaded and played back by demuxing its WebM container to .opus or using a player which understands the WebM container. This is what I prefer: Downloading original OPUS audio, demuxing to .opus, without reconversions us…

I remux into ogg which still supports Opus but seemed to have wider player support. Great way to get tracks that don't seem to be available anywhere other than streaming.

.opus _is_ an Ogg container, just with another filename.

Re: Open Source YouTube to MP3 Downloader

#48
post #31

Earlier quoted context omitted.

Why not Opus.

There are many reasons, and as a user of Opus you are probably aware of the trade offs?

Wait what, what situation is opus worse than m4a? In my ABXing it's never lost to another lossy format.

Re: Open Source YouTube to MP3 Downloader

#49
post #11

Personally I just use a bookmarklet. Nothing to install, no website to visit. Just a local bookmark that shows the list of the video/audio file direct links. https://github.com/minanagehsalalma/Youtube-Downloader-Bookm... ( https://raw.githubusercontent.com/minanagehsalalma/Youtube-D... )

Does it work? Looking at the code, the regex it uses to find the urls seems to be:

    document.documentElement.innerHTML.match(/https?:\/\/[^\s/$.?#].[^\s]*videoplayback(?:\?|%3F)[^'"]+/g)
Tried this on two videos and it returned null both times.

Re: Open Source YouTube to MP3 Downloader

#50
post #9

yt-dlp_linux -f bestaudio --audio-quality 2 --embed-thumbnail --add-metadata --extract-audio --audio-format mp3 --no-mtime -o "%(title)s.%(ext)s" http://

Yeah except do yourself a favor and don't use mp3

Unless you're getting them for older hardware that only plays mp3 like my car stereo...
Post reply on HN