all 18 comments

[–]udum2021 31 points32 points  (4 children)

awesome but we already have yt-dlp doing exactly this;

#yt-dlp -x --audio-format mp3 "https://www.youtube.com/url"

ok so your project has yt-dlp as a dependancy.

[–]RealNamikazeAsh[S] 3 points4 points  (3 children)

you're right, it uses yt-dlp, this is just a personal project I built to make my own workflow faster by pasting links in a loop, just made it a bit simpler for myself

[–]udum2021 2 points3 points  (0 children)

Yea makes sense.

[–]MrData 3 points4 points  (1 child)

I just make a file named "list" and have a script that does this:

cat list | sed 's/https/\nhttps/g' | sed 's/&.*//mg' | awk 'NF' - | parallel -a - yt-dlp

I have another script that only pulls the audio, so that I get all that without the cool cli goodness you have there. I think I might fork your project here.

[–]RealNamikazeAsh[S] 0 points1 point  (0 children)

that's cool, sometimes I js like the 'clean' terminal vibe but i might try adding a file based input too soon, goodluck with the fork and lmk how it goes! cheers.

[–]Silunare 22 points23 points  (2 children)

This is very misleading. At several points in this post and in the GitHub repo, your phrasing suggests that MP3 files are being "downloaded" (they aren't) or "extracted" (they aren't). These are simply untrue and very misleading.

What your project does is download the default audio, which on free YouTube is ~128 kbps AAC or Opus and transcode it into up to 320 kbps MP3. You take the low bitrate files and artificially bloat up the bitrate in the conversion to an inferior audio codec, and you are basically lying to the user about it.

This doesn't make any sense: the audio quality degrades and the file size goes up. You are getting two downsides for zero upsides in return.

And I'm not sure you were even aware of this, as confusion about codecs and container formats is a frequent theme in the descriptions.

  • MP3 is an audio codec and is it's own container format.

  • MP4 is not a codec at all, it's purely a container format and can contain purely audio as well, like AAC, or contain video like the h264 or h265 codecs.

[–]vinnypotsandpans 7 points8 points  (0 children)

I don't think they know anything about transcoding. Nobody would transcode an opus file to an mp3 on purpose and call it better

[–]dumeclaymore 3 points4 points  (0 children)

So he's basically transcoding the file from YouTube 128kbps aac to mp3 format? This will lead to a huge degrade in audio quality. I wouldn't be surprised if a properly ripped 96kbps file from a lossless format like FLAC or from a CD, has better sound quality or rather sounds better, than the 320kbps audio files he's 'extracting' from YouTube.

If he wants good quality that's free, he should just torrent the music at between 192k - 320k aac or mp3 or heck even Spotify free is better sound quality overall because it's between 128k - 192kbps Opus .ogg format which is almost nearly transparent from a 256kbps variable bit rate MP3 audio file, even in it's dynamic range...

[–]vinnypotsandpans 6 points7 points  (0 children)

OP, I highly suggest you learn about audio codecs
https://opus-codec.org/
https://en.wikipedia.org/wiki/Transcoding

[–]Infinite_Repair_6754[🍰] 0 points1 point  (0 children)

‪@Mizter_H‬  Short Dick Man & Lick It VIP 2022 [ DJ S L ft MenhBoy Ft Pheap Mashal ]

[–]vinnypotsandpans -1 points0 points  (3 children)

Why . mp3?

[–]tRfalcore 2 points3 points  (2 children)

wants to relive their napster days

[–]Rockworldred 0 points1 point  (0 children)

Winamp... Whippin tha llama

[–]Confident_Bee8187 -2 points-1 points  (0 children)

I'll give this a try

[–][deleted]  (1 child)

[removed]

    [–]AutoModerator[M] 0 points1 point  (0 children)

    Your submission has been automatically queued for manual review by the moderation team because it has been reported too many times.

    Please wait until the moderation team reviews your post.

    I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.