this post was submitted on 04 Nov 2023
30 points (81.2% liked)

Piracy: ꜱᴀɪʟ ᴛʜᴇ ʜɪɢʜ ꜱᴇᴀꜱ

53843 readers
565 users here now

⚓ Dedicated to the discussion of digital piracy, including ethical problems and legal advancements.

Rules • Full Version

1. Posts must be related to the discussion of digital piracy

2. Don't request invites, trade, sell, or self-promote

3. Don't request or link to specific pirated titles, including DMs

4. Don't submit low-quality posts, be entitled, or harass others



Loot, Pillage, & Plunder


💰 Please help cover server costs.

Ko-FiLiberapay


founded 1 year ago
MODERATORS
30
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/[email protected]
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 12 points 10 months ago* (last edited 10 months ago) (1 children)

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).

[–] [email protected] 4 points 10 months ago* (last edited 10 months ago) (1 children)

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

[–] [email protected] 3 points 10 months ago* (last edited 10 months ago)

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.