Re: Opus 1.3-rc2
Reply #27 –
You can also use external resampler like SoX (with "Very High Quality" setting). It's still way faster and mathematically more accurate than built-in Speex resampler (q 10)
src.infinitewave.ca
Though being mathematically more accurate doesn't mean audibly superior.
Yep that works pretty well (for the paranoid like me).
For the curious, here's the one-liner script I have on my linux server that does this for me:
sox-opus.sh:
#!/bin/sh
find "$@" -type f -iname '*.flac' -print0 | nice -n 15 xargs -0 -P 4 -I {} sh -c 'sox "{}" -r 48k -b 24 -C 0 -t flac - | opusenc --vbr --bitrate 144 - /mnt/target/folder/"`basename "{}"`"-$(date +%s).opus'
Since sox & opus run mostly in parallel and because of the parallel execution of multiple files through xargs it's not even that slow.