When I use yt-dlp -x
to grab audio only, the resulting opus files are often troublesome to play back in strawberry, stopping unexpectedly. They also sometimes don’t index at all, and metadata including embedded cover art don’t seem to stick.
So, since most of my library is already vorbis in OGG files, I have been converting the files, but my inexperience with audio codecs and YouTube audio formats in general is shining through. I use 320kbps, but the resulting files are typically about twice the size afterward. I’m thinking I’m probably wasting space for no reason.
What is a comparable bitrate for the OGG files for a given bitrate opus source file?
EDIT: Here is my conversion script find ./ -iname "*.opus" | parallel --load 0.9 ffmpeg -i {} -c:a libvorbis -b:a 320k "{.}.ogg"
EDIT2: Here is the updated version with a suggestion from @[email protected] find ./ -iname "*.opus" | parallel --load 0.9 ffmpeg -i {} -c:a libvorbis -q:a 6 "{.}.ogg"
which results in only slightly larger files (5.4MB > 7.2MB).
Maybe use a little higher because of conversion losses but archive the opus files so you can always convert again. Sometimes you can get vorbis directly with ytdl.
Now that you mention it, I think I can tell yt-dlp to give me vorbis, but it might still entail a conversion.