Batch Convert All Flac Audio Files In Folder to mp3
Use if you have one or a few flac type files
Select your operating system:
Win 64 bit
Win 32 bit
Mac
Follow these steps if you are on Windows 64 bit:
- Click the following button to download a
.zip
file, named speechnotes_ffmpeg.zip
- Copy
speechnotes_ffmpeg.zip
to your C hard drive
- Extract the zip file.
- Verify that you now have a folder named
speechnotes_ffmpeg
directly within your C hard drive
. If you do - continue.
- Click the following button to download a
.bat
file, named speechnotes_flac_to_mp3.bat
- Copy
speechnotes_flac_to_mp3.bat
to any directory that has the *.flac audio files you want to extract the audio from.
- Double click the copied
speechnotes_flac_to_mp3.bat
file in order to run it. It should automatically open a command line window and run there.
- Once finished, it creates a folder named
speechnotes-output-mp3
where in it are all the new mp3 files
- Have more *.flac audio files in a different directory? Simply repeat 'Copy
speechnotes_flac_to_mp3.bat
to any directory...' and on with the other directory.
Don't have a C hard drive?
You may use a different drive, but, you will have to edit the .bat file, and replace every 'C://' with your drive of choice.
Follow these steps if you are on Windows 32 bit:
- Click the following button to download a
.zip
file, named speechnotes_ffmpeg.zip
- Copy
speechnotes_ffmpeg.zip
to your C hard drive
- Extract the zip file.
- Verify that you now have a folder named
speechnotes_ffmpeg
directly within your C hard drive
. If you do - continue.
- Click the following button to download a
.bat
file, named speechnotes_flac_to_mp3.bat
- Copy
speechnotes_flac_to_mp3.bat
to any directory that has the *.flac audio files you want to extract the audio from.
- Double click the copied
speechnotes_flac_to_mp3.bat
file in order to run it. It should automatically open a command line window and run there.
- Once finished, it creates a folder named
speechnotes-output-mp3
where in it are all the new mp3 files
- Have more *.flac audio files in a different directory? Simply repeat 'Copy
speechnotes_flac_to_mp3.bat
to any directory...' and on with the other directory.
Don't have a C hard drive?
You may use a different drive, but, you will have to edit the .bat file, and replace every 'C://' with your drive of choice.
Follow these steps if you are on Mac
* Please note, these instructions will require you to work with the command-line terminal. It's very simple - we'll walk you through each step - so please bare with us. *
Open Terminal
On your Mac, do one of the following:
- Click the Launchpad icon in the Dock / or launch 'Spotlight Search', type 'Terminal' in the search field, then click Terminal.
- In the Finder, open the /Applications/Utilities folder, then double-click Terminal.
Check if you have ffmpeg installed on your mac:
In the opened Terminal type
ffmpeg -version
and click 'Enter'.
If you received a response of: -bash: ffmpeg: command not found
it means you do NOT have it. Otherwise - you have it. If you have it already - continue straight to Got ffmpeg - lets convert some audio section.
- I do not have ffmpeg. Let's install it.
One more check first - let's check if you have Homebrew installed on your mac:
In the opened Terminal type
brew -v
and click 'Enter'.
If you received a response of: -bash: brew: command not found
it means you do NOT have it. Otherwise - you have it.
In case you do not have it, simply install it by copying the following into your Terminal (click 'Enter' after pasting to terminal):
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Once 'brew' is installed - type enter the following in your Terminal:
brew install ffmpeg
Once installed - continue:
Got ffmpeg - lets convert some audio
- Open the terminal in the specific folder where your wav files are located. One simple way to do that is:
- Type (without Enter)
cd 
(note the 'space' after 'cd') and then
- Drag from Finder the folder which contains the wav files into the Terminal
- Click 'Enter'
- You should now see the name of that directory in the new line that the Terminal's caret is on.
- In the terminal, copy the following and click 'Enter':
echo "Making speechnotes-output-mp3s directory"
mkdir -p speechnotes-output-mp3s
echo "Success making speechnotes-output-mp3s directory"
COUNTER=0;
echo "Searching for wav files in directory"
for input in *.flac; do
# ffmpeg -i "$input" "speechnotes-output-mp3s/$(basename -s .flac "$input").mp3"
if [ -f "$input" ]; then
COUNTER=$((COUNTER + 1))
echo "Found and converting $input"
ffmpeg -i "$input" "speechnotes-output-mp3s/$(basename -s .flac "$input").mp3" -nostdin -loglevel panic
fi
done
echo "Done. Found total $COUNTER wav files in directory"
- Now you should have created a folder named 'speechnotes-output-mp3s' where in it are converted mp3 files. Congrats.
- Got more wav files to convert in a different directory? Simply repeat Got ffmpeg - lets convert some audio for any directory you need. No need to install brew nor ffmpeg again.
Contact Us
Please contact us for any further inquiries at admin@speechlogger.com