To save a family interview as an audio file, first identify the voice track in the MP4. If that track is AAC, you can copy it into an M4A file without another audio encode. A WAV working copy can suit an editor that asks for PCM audio. Choose the output for what you will do with it, and keep the full recording.
The commands below process your local, self-recorded or authorized files. They require FFmpeg and ffprobe to be installed and available in your terminal. Check with ffmpeg -version and ffprobe -version. The FFmpeg download page links to builds. Replace the quoted example paths with yours and use a new output name.
Identify the track you want to keep
An MP4 can hold more than one audio track. One might contain the microphone recording and another a music mix. Its filename does not tell you which codec or track it contains.
ffprobe -v error -select_streams a -show_entries stream=index,codec_name,sample_rate,channels:stream_tags=language,title -of json "family.mp4"
Look for codec_name, the channel count and any language or title tags. Listen to the corresponding track in your player to confirm the voice or mix. Missing labels leave that listening check especially important. An empty stream list means this probe found no audio to extract.
FFmpeg’s 0:a:0 means the first audio track in the first input. 0:a:1 means its second audio track. These audio-only positions differ from ffprobe’s global index, which also counts video and other streams. For example, a video at index 0 and audio at indices 1 and 2 still use 0:a:0 and 0:a:1 for those audio tracks.
If you are still choosing which tracks belong in a complete video backup, use the audio and subtitle retention checklist.
Save a selected AAC track as M4A
When the chosen track reports aac, start with:
ffmpeg -n -i "family.mp4" -map 0:a:0 -vn -c:a copy "family-audio.m4a"
Use 0:a:1 and a different output filename for the second track. The explicit mapping selects one track, -vn excludes video, and -c:a copy copies the encoded audio. The -n option stops the command if the destination file already exists.
This route keeps the existing AAC encoding. It cannot apply a volume filter or noise reduction at the same time. If the selected codec is different, check a suitable container before using stream copy. Changing the output extension to .mp3 will not turn AAC into MP3. FFmpeg’s stream-copy documentation describes the container restrictions.
Make a WAV when the editor needs PCM
For an editor that accepts 16-bit PCM WAV, use a separate working file:
ffmpeg -n -i "family.mp4" -map 0:a:0 -vn -c:a pcm_s16le "family-edit.wav"
This decodes the selected track and writes PCM audio. It can take more storage than the AAC copy and does not recover detail lost when the AAC was created. Keep the source and use the WAV for the editing step. If your editor requests another sample format, follow its documented requirements before converting.
For a destination that specifically requires MP3, AAC must be encoded into MP3. Make that delivery copy from the preserved source or your editing master, and listen to the result on the intended device.
Check the exported file
Run the probe again against the new filename. For this workflow, expect one audio stream. Check its codec, channels and sample rate against the path you chose. Listen near the beginning and end and at a recognizable event in the middle. Confirm that you extracted the correct recording and that the duration is plausible.
A successful audio export does not establish that video chapters, subtitles or recording metadata were retained. Keep those with the original MP4. Give the audio file a name that stays connected to its recording, following your media naming plan.
In our four-second generated MP4, we selected two AAC tracks separately. Each exported M4A contained one audio stream, and all 189 encoded packet payloads matched its corresponding source track in order. A separate PCM WAV export also completed. The input MP4 remained unchanged. This synthetic check covers those files and commands; it does not establish results for camera footage or playback devices.
The ffprobe documentation explains stream inspection and packet-data hashing. Whole-file hashes of an MP4 and an M4A will differ because the files contain different structures. For routine archive checks, compare each finished file to its own verified copy using the backup verification workflow.
When the command stops
| Result | Next check |
|---|---|
| No audio stream matches the map | Probe the source again. Use an audio position that exists. |
| The M4A muxer rejects the selected codec | Check the reported codec and choose a supported output path. |
| Output already exists | Choose a new filename or inspect the existing result before deciding what to keep. |
| The exported file contains the wrong voice or mix | Listen to the source tracks and export the selected one explicitly. |
Keep the original video alongside an independent backup under your personal media archive plan. The extracted audio is an additional way to use that recording.