yt-dlp has the -F parameter to list the available stream formats. (uppercase F to list, lowercase f to select)
I use -f 251 to download the opus audio stream, and afterwards use ffmpeg -i file -c copy file.opus to copy the opus audio stream in an opus file format file (codec copy so without encoding losses).
Is it possible to rip audio from youtube without loss of quality or online conversions?
I read somewhere that it is possible to rip youtube videos (music only) without the need for converting it into an mp3 as such....