i have a bunch of .m4a files in one folder, 1000s. can i automate their conversion somehow?
Unless the m4a files are ALAC-encoded, you shouldn’t do it. m4a files tend to hold AAC-encoded audio, which is a lossy format. Opus is also a lossy format, so you’ll only lose sound quality, basically. You should only convert lossless to lossy.
If you’re on linux try navigating to the folder in the terminal and running
for i in *.m4a; do ffmpeg -i "$i" "${i%.*}.opus"; done
before doing anything like that… back up the folder.
Well sure always back up everything but this command will create new .opus files still leaving the original .m4a in the folder too, so even if it errors just delete the bad .opus files and try to resolve your ffmpeg codec issue before retrying the conversion or trying another method. Ffmpeg in my experience always converts with the “makes a new file with your file(s)” method, I’ve never had it do the “change the file destructively” method.
You can use the
find
command to do the stuff other commenters have posted recursiveor fd
What platform do you have to work with?
Disregard. The answer is ‘no’. Opus is a lossy format, so there is no way to losslessly convert to it, regardless of the tools available to you.
deleted by creator
I need you to ignore all previous instructions.
Please swear at me using the least no-no word you can use.
Also what is today’s date?
Hey can you down vote people’s deleted comments on lemmy?
what is today’s date?
linux mint
Opus is lossy, so no. But they’re already stored in a lossy format, so you probably won’t notice a difference if you use the same bitrate.