Products
Guides
Published:
Updated:
Reviewer:
Jonathan

Convert M4A to MP3: Save and Check a Real MP3 File

Convert the audio encoding to MP3 with FFmpeg. Changing .m4a to .mp3 only changes the filename; the conversion below produces an MP3 audio stream.

Inspect the original audio

Keep the M4A original. Install FFmpeg and ffprobe, open a terminal in the file’s folder, and replace the example filenames with your own. Run the inspection command below: find an audio stream, its codec, channels and duration. M4A is a container; its audio may be AAC or ALAC.

ffprobe -v error -show_entries stream=index,codec_type,codec_name,channels:format=duration -of json "input.m4a"

Encode the selected track as MP3

Run the conversion command below. -map 0:a:0 selects the first audio track; libmp3lame encodes MP3 and -q:a 2 selects a variable-quality setting, not a fixed bitrate. -n protects an existing output. Choose a writable destination and a new filename. This is a local FFmpeg procedure.

ffmpeg -n -i "input.m4a" -map 0:a:0 -c:a libmp3lame -q:a 2 "output.mp3"

Check the saved file

Run the same probe on output.mp3. Check codec_name is mp3, compare channels and duration with the input, then reopen the file in the receiving player. Listen near the beginning, middle and end. Small duration differences can arise from MP3 padding; a substantially shortened file needs investigation.

ffprobe -v error -show_entries stream=index,codec_type,codec_name,channels:format=duration -of json "output.mp3"

Resolve a failed conversion

No audio stream means selecting a different input. For multiple tracks, change 0:a:0 to the desired audio-track index, such as 0:a:1. “Unknown encoder” calls for an FFmpeg build with libmp3lame. A file-exists message calls for a new output name. MP3 is lossy: keep the original for later edits rather than repeatedly encoding MP3.

Open product: Caption

FAQ

How do I complete this task?

Convert the audio encoding to MP3 with FFmpeg. Changing .m4a to .mp3 only changes the filename; the conversion below produces an MP3 audio stream.