To keep the picture and drop the sound (for example, background chatter in a screen recording, or a clip you will add music to later), FFmpeg can remove the audio track and copy the video bit for bit. Nothing is re-encoded, so it finishes in seconds.
1. Drop the Audio with -an
This command keeps the video stream as it is and drops every audio track:
ffmpeg -i input.mp4 -c:v copy -an output.mp4
-c:v copy… copy the video stream as it is (no re-encoding, no quality loss)-an… “audio none”: no audio in the output
Nothing is re-encoded, so even a one-hour video takes only a few seconds, and the picture is identical to the source.
| Option | Meaning | Effect |
|---|---|---|
-c:v copy |
Copy video codec | No re-encode, no quality change |
-an |
Disable audio | All audio tracks dropped |
(omit -an) |
Default | One audio track is kept and re-encoded |
2. Keep Only the Video with -map
-map lets you choose exactly which streams go into the output. This keeps only the video:
ffmpeg -i input.mp4 -map 0:v -c:v copy output.mp4
-map 0:v… take only the video stream(s) from input 0- Audio is not selected, so it is left out
-an means “no audio at all”; -map 0:v means “only the video”. Both give you a silent video. -map is easier to extend when the file also has subtitles or data streams you want to handle. The stream mapping guide explains -map in full.
3. “Remove Audio” Is Not “Extract Audio”
The two tasks sound alike, but they are opposites:
| Task | What you keep | Output | Command idea |
|---|---|---|---|
| Remove audio | Video only | Silent .mp4 |
-c:v copy -an |
| Extract audio | Audio only | .m4a / .mp3 |
-vn -c:a copy / -vn -c:a libmp3lame |
To save the soundtrack as a separate audio file instead of throwing it away, use the opposite flag, -vn, which drops the video. See the extract audio guide.
4. Silence the Audio Instead of Removing It
Some players and editors work better with a silent audio track than with no audio track at all. To keep a silent AAC track:
ffmpeg -i input.mp4 -af volume=0 -c:v copy -c:a aac output.mp4
-af volume=0… set the audio volume to zero (full silence)-c:a aac… the audio must be re-encoded because the filter changes the samples
The video is still copied without loss; only the audio is re-encoded, as silence. If you want no audio track at all, use -an from section 1.
5. Remove Only One of Several Audio Tracks
If a file has two audio tracks (for example, commentary and the original sound) and you want to drop only the first, select the video and the track you want to keep:
ffmpeg -i input.mp4 -map 0:v -map 0:a:1 -c copy output.mp4
-map 0:a:1… keep the second audio track (indices start at 0)- The first audio track (
0:a:0) is left out
Run ffprobe input.mp4 first to see how many audio streams there are and in what order. For more on files with several audio tracks, see working with multiple audio tracks.
6. Batch-Remove Audio from Many Files
This makes a silent copy of every MP4 in the current folder, with _mute added to the name:
for f in *.mp4; do
ffmpeg -i "$f" -c:v copy -an "${f%.mp4}_mute.mp4"
done
-c:v copy -an does not re-encode, so even a folder of long videos finishes quickly.
7. Troubleshooting
Issue 1: The output still has sound
Cause: -an is missing, or it comes after the output file name, at the very end of the command.
Fix: Put -an before the output file name (output.mp4). An -an at the very end is ignored: FFmpeg prints Trailing option(s) found in the command: may be ignored. and keeps the audio. The command in section 1 has the right order.
Issue 2: “Could not find tag for codec … in stream”
Cause: The output format cannot hold the video codec.
Fix: Pick a format that accepts the codec, or re-encode the video with -c:v libx264:
ffmpeg -i input.mp4 -c:v libx264 -crf 18 -an output.mp4
Issue 3: File plays but seeks oddly on the web
Cause: The moov atom (the file’s index) is at the end of the file.
Fix: Add -movflags +faststart:
ffmpeg -i input.mp4 -c:v copy -an -movflags +faststart output.mp4
FAQ
Q1. Does removing audio reduce video quality?
A. No. With -c:v copy the video data is copied unchanged, bit for bit.
Q2. Can I add new audio after removing the old one? A. Yes. Remove the original, then add the new track. Both steps are in the guide on replacing a video’s audio.
Q3. What’s the difference between -an and -vn?
A. -an removes the audio and keeps the video. -vn removes the video and keeps the audio.
Q4. My player shows a silent track even after -an. Why?
A. Some players show a placeholder track. Check with ffprobe output.mp4: if no audio stream is listed, the audio is gone, and the track you see is only part of the player’s display.
Q5. Can I remove audio from a MKV or MOV file the same way?
A. Yes. -c:v copy -an works with any container. Give the output the matching extension (output.mkv, output.mov).