How can I strip the audio track out of a video file with FFmpeg?


You remove audio by using the -an flag.

ffmpeg -i example.mkv -c copy -an example-nosound.mkv

Full ffmpeg documentation here.


You probably don't want to reencode the video (a slow and lossy process), so try:

ffmpeg -i [input_file] -vcodec copy -an [output_file]

(n.b. some Linux distributions now come with the avconv fork of ffmpeg)

  • This didn't make any difference to me compared to the accepted solution. – nidi Dec 29 '17 at 0:49
  • 1
    vcodec is an alias for -c:v, so specifically it'd copy the video stream only. The only data you're preventing with this would be subtitles, metadata, etc from what I can see. – Rogue Mar 8 '18 at 15:48
avconv -i [input_file] -vcodec copy -an [output_file]

If you cannot install ffmpeg because of existing of avconv try that .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.