How to Convert a WMA Audio File to MP3


Posted on December 23, 2019


These are the steps for converting your music from the WMA format to the MP3 format. These instructions are intended for computers that run the Debian operating system.

1. Install ffmpeg

sudo apt-get update

sudo apt-get install ffmpeg

2. Go to the folder that contains your WMA files

cd ~/music/wma

3. Run this command

for file in *.wma;
do
ffmpeg -i "${file}" "${file/.wma/.mp3}";
done

4. Alternatively you can specify the bitrate using this command

for file in *.wma;
do
ffmpeg -i "${file}" -acodec libmp3lame -ab 192k "${file/.wma/.mp3}";
done