Converting opus files to mp3

chagall@lemmy.world to Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ@lemmy.dbzer0.com – 31 points –

I downloaded a "Linux ISO" which came as a series of *.opus files. My iPhone doesn't recognize them, so I was wondering if you guys might recommend a program to convert them to *.mp3 files.

Ideally a mac or linux based program with a gui. Any suggestions?

23

I downloaded a "Linux ISO" which came as a series of *.opus files. My iPhone

Trololol

Yeah, not sure how they even managed to open an ISO image on iOS.

Ignore that, I didn't see the quotes.

Installing VLC on your iPhone is probably the easiest solution. It should play the Opus files without any transcoding needed.

If you really need to convert the files to something like AAC for native iPhone playback, I would suggest either fre:ac (audio only) or MKVToolnix (video and audio).

FYI MKVtoolNix doesn't do transcoding, it simply allows you inspect/modify metadata and demux/remux data streams into an MKV container.it's indeed useful and I use it often, but it wouldn't be for OP's use-case.

Oh dang, you’re right. I used to use StaxRip back when I was doing more encoding and then finish with MKVToolNix, but I think the gui is Windows only.

Probably should have recommended Handbrake.

I'll look at both of those suggestions but mp3 should be sufficient, no?

AAC is higher quality for the same compression level and generally preferred by Apple. MP3 should be fine too though.

EDIT: To be clear though, the programs I listed can handle all kinds of codecs including AAC and MP3. fre:ac is also good for ripping CDs if you’re into that sort of thing.

I generally stream via audiobookshelf. They even have an iPhone app in TestFlight now.

I’ll have to check it out. If you want to listen to Audiobooks specifically, I will say that the Open Source app BookPlayer has been fantastic for me.

If I'm not wrong, the best way to have best possible quality would be:

ffmpeg -i file.opus -c:a libmp3lame -q:a 0 -map_metadata 0 file.mp3

I know you asked for GUI, but CLI tools are better at this job since it's very easy to batch process the files using a combination of find and parallel.

Also, it's probably a better idea to keep the files as they are and use a different audio player on your device. I don't use iOS, so can't suggest an app. VLC or mpv should work, but I personally prefer music apps with album, artist etc. support. For android, the app Gramophone is great. Another way would be to serve your files via a music server like navidrome and using a client like Tempo (again, it's the android client I like, but surely there will be iOS alternatives).

Here's a version that will do a batch (in the current folder/directory)

for i in *.opus; do ffmpeg -i "$i" -c:a libmp3lame -q:a 0 -map_metadata 0 "${i%.*}.mp3"; done

Tip: You can add an & just before the last ; to run these conversions concurrently. For more sophisticated control on the concurrency, I'd use parallel.

Install Audacity, and follow the instruction to add ffmpeg.

From there you'll be able to open most audio files out there and then export it to another format like mp3.

Can probably use Audacity. May need to install a ffmpeg plugin first to read the opus files, then:

goto Tools > Apply Macro > Palette…

select “MP3 Conversion”

then click “Files…” to choose your files and it should start a batch process.

Before that, probably go to Edit > Preferences > Directories and change the entry for “Macro output” to a custom folder so it’s easy to find. (note: the instructions on that settings page says to leave a field blank to use the last directory, but that’s not the case for macro output, definitely set a custom location for that.)

edit: also a good method for converting FLAC if there’s a need for it