How to Remove Audio From a Video With FFmpeg
Stripping the audio track entirely, without re-encoding the video — useful before adding a new voiceover or music track.
Stripping the audio track entirely, without re-encoding the video — useful before adding a new voiceover or music track.
The command
ffmpeg -i input.mp4 -c copy -an output.mp4What each flag does
| -c copy | Copies the video stream without re-encoding — instant, lossless. |
| -an | Excludes audio from the output entirely. |
Where this goes wrong
People sometimes reach for a slower re-encoding command out of habit when removing audio doesn't require touching the video at all — -c copy -an runs in roughly the time it takes to read and write the file, regardless of length.
If you want silence instead of no audio track
ffmpeg -i input.mp4 -f lavfi -i anullsrc -c:v copy -c:a aac -shortest output.mp4Some platforms and editing tools expect every video to have an audio track, even a silent one. This generates a silent track with anullsrc and trims it to match the video's length with -shortest.
Once you're rebuilding the audio layer from scratch — a voiceover, captions, sound effects — that's the exact job NULLFRAME's templates automate on top of your video.
See the templatesCommon questions
Does removing audio reduce file size much?+
Can I remove audio from only part of the video?+
volume=0:enable='between(t,5,10)'.