I read somewhere that it is possible to rip youtube videos (music only) without the need for converting it into an mp3 as such.
The online conversion process (naturally) results in loss of quality, and (apparently) it is possible to preserve the original video’s audio quality via a direct rip. If so, how would it be done and what format would it be in anyway?
thanks
deleted by creator
The fork yt-dlp already downloads in the highest quality.
The problem is that, that’s (sometimes?) webm format…
deleted by creator
I dunno about the qualilty but I do
yt-dlp -x
and it downloads and extracts just the audio portion.This uses ffmpeg under the hood and muxes the file into a .m4a file without transcoding. Basically keeping whatever compression youtube used for the audio (which is some sort of mpeg4 compatible audio, probably depends a little bit)
This still recompressed, but it’s the best you can do using youtube as the source.
- uploader (almost certainly, but theoretically you could skip this step if you encoded your video well) compresses audio
- uploader uploads to youtube
- youtube re-compresses the audio again (almost certainly transcoding into a different codec)
Get yt-dlp then run: yt-dlp -x ‘video-url’
I believe if you’re willing to check the format codes on the video you can download audio only but both will get you the least compressed audio available.
I use this app for it. Even adds the correct artist, title, album and such to the file aswell. I tried several similar apps but this was by far the best.
Easiest way is to use an Indivious instance, if you are on desktop or use the Newpipe App if on Android.