The Wolfe Pack

Want to save a bunch of space on your audio files? Convert them to opus format. This small script will convert most audio files such as mp3, wav, and flac to opus. The example here uses mp3. If you are converting music you may want to increase the –bitrate to 96K. Also, this script removes the original file after conversion.

find . -type f -iname '*.mp3' -exec bash -c 'for f ; do sox -t mp3 "$f" -t flac - | opusenc - --bitrate 40K "${f%.*}.opus" && rm "$f";done' _ {} \;

replies
0
announces
3
likes
4