Convert audio files FLAC to MP3

Most of my audio files are FLAC files which is fine on my hard drive. Lately I have had to copy and convert many songs from FLAC to MP3 so that I can use them on my tablet mini drive. I have been using a program called Goldwave and it works well.

What I was wondering is would it be possible to create a Opus button command that would use a plugin to achieve the same goal while staying in two listers?

I usually use dbPowerAmp to convert audio files. It adds context menu actions which work in Opus (and everything else). There are probably other similar tools.

If you want more control (e.g. to convert files from the source folder to the destination folder, where the destination varies), making an Opus button which runs a conversion tool that accepts command line arguments is the way to go. I'm not sure which tool to recommend for that these days but there are a few out there.

GoldWave supports the command line, so you could keep using this tool with your presets. Another option is FFmpeg, the Swiss army knife of media tools.

I went right to the manual to read up on command line in order to fulfill my Opus button goal, but unfortunately my 63 year old soft parietal and frontal areas of my brain are unable to comprehend how to convert FLAC files from a source folder to a destination folder as an MP3 using Goldwave or any other program. I can send the files to Goldwave from Opus with the simple command:
cd @filesonly
cd D:\Program Files\GoldWave
@async:"D:\Program Files\GoldWave\GoldWave.exe" {filepath}

I would like to stay in Opus and keep it simple. Goldwave can run batch processing and if I could make a large selection and send copies to the destination lister running the conversion process that would be great. I get that you have other things to do so if you could just steer me towards some similar button so I could figure it out that would be mighty nice.

Maybe something a little easier to use that is free and can convert audio, images, videos and documents (to pdf).

File-Converter

Works in Dopus's right-click context menu. Easy as highlight your .flac files > File Convert > To MP3. You can also edit or make your own conversion settings.

I believe it uses ffmpeg for most of the conversions.

Here's a button using FFmpeg with 128kbit bitrate.

@filesonly
@nofilenamequoting
ffmpeg.exe -i "{filepath$}" -c:a libmp3lame -b:a 128k "{destpath}{file|ext=mp3}"
  • You might need to add the full path to ffmpeg.exe depending on your system
  • You can change 128k if you want a different bitrate
  • Fun fact: button will work on any media file, including videos.
1 Like

That is mighty nice. Thank you very much. I'm going to download FFmpg right away.


So cool. :sunglasses:

Here is what the command line flashing up for a few moments showed. When I used it again with a different file.

If you want to avoid the command line console flashing up briefly, you can put a @runmode:min (as a first line in your button) to make the console run minimized, or even @runmode:hide to hide it altogether.

Also, slightly offtopic, I see you have an "Exit" button in the top right corner (by the Recycle Bin), I was wondering why would you ever want to exit, I think the exit button might be redundant :smile:

Well actually it's a three button for: 1) exit Opus, 2) shut down my computer and 3) restart my computer. Thanks for the tip for hiding the console. I will use it.

Thank you very much, this is what I was looking for. Is there a solution to process the files one by one when selecting several of them?

It should already do that automatically, at least from a quick look. Did you try it?

1 Like

Yes! I'm sorry, I don't know why but my first tests this morning opened a parallel window for each selected file.
Thanks, it's perfect !

1 Like

If you set the Function drop-down to MS-DOS Batch Function, that will probably make everything run in a single window. (Although it is also down to what ffmpeg.exe does, I think it should work as desired.)

1 Like

Oh nice, it's better than "Standard Function (Opus or External)". Thanks