Rockbox General > Rockbox General Discussion
How do I batch convert mp3 or wav files to OPUS?
IDK5:
--- Quote ---
--- Code: ---for i in *.wav; do opusenc --vbr --bitrate 8 "$i" "$(basename "$i".wav)".opus; done
--- End code ---
--- End quote ---
Thanks, too bad it is only using one thread. Is there anyway to have use more then the one?
bluebrother:
Start it multiple times on different set of files? Just use different wildcards for each invocation (or use different folders, or ...). With a bit of additional things you can make that line also do the mp3 decoding etc.
IDK5:
--- Quote from: bluebrother on October 15, 2012, 03:19:50 PM ---Start it multiple times on different set of files? Just use different wildcards for each invocation (or use different folders, or ...). With a bit of additional things you can make that line also do the mp3 decoding etc.
--- End quote ---
I started multiple ones, i am trying to figure out the mp3 decoding part so i don't have code them over to wav first that wast a lot of time. I am thinking about using ffmpeg.
EDIT: how would i have it go straight to encoding to opus from the mp3 to wav decode? or can i?
i have this right now but i don't know bash really well so it doesn't work but hopefully you know what i am trying to get done by reading it.
--- Code: ---for m in *.mp3;do ffmpeg -i "$m" "$w"; opusenc --vbr --bitrate 15 "$w" "$(basename "$m")".opus;#rm -v *.mp3; done
--- End code ---
soap:
You do realize that by converting from MP3 to OPUS you are decreasing audio quality?
Navigation
[0] Message Index
[*] Previous page
Go to full version