Thanks for the helpful reply. I don't really understand why I can't write an Opus file when the Opus flag is set, though, none of the missing useflags seem to enable these formats, I'll have to play around then.
The songs can be up to... around half an hour in length (though it's over a thousand of them and process them in parallel with eight threads), and the purpose of the calculations is to extract the timestamp of the peak value of the song. Anyway, your PCM16 sample shows I can use that, thanks. I'll see if I fix my sox install.
Code: Select all
> emerge -pv sox
[ebuild R ] media-sound/sox-14.4.4.1-r1:0/3::gentoo USE="alsa encode flac id3tag mad ogg openmp opus png sndfile -amr -ao -ladspa -oss -pulseaudio -sndio -twolame -wavpack"