Looks like sndfile opens Ogg files and bails when it finds Opus instead of Vorbis inside.
found plugin input_sndfile
found plugin input_mpg123
found plugin input_musepack
found plugin input_ffmpeg
Error opening file 'track.ogg'
After removing input_sndfile.so from the plugin search path:
found plugin input_mpg123
found plugin input_musepack
found plugin input_ffmpeg
Loudness
-13.3 LUFS, track.ogg
So it might make sense to try multiple plugins.
But then, looks like the tag writing also determines the codec by file extension :(
Many places (e.g. Android) only support the .ogg extension, so that should be supported. File extensions are not supposed to mean anything in unix anyway.
Looks like
sndfile
opens Ogg files and bails when it finds Opus instead of Vorbis inside.After removing
input_sndfile.so
from the plugin search path:So it might make sense to try multiple plugins.
But then, looks like the tag writing also determines the codec by file extension :(
Many places (e.g. Android) only support the
.ogg
extension, so that should be supported. File extensions are not supposed to mean anything in unix anyway.As a workaround, I have this script: