How can I strip the audio track out of a video file with FFmpeg?
348
You remove audio by using the -an
flag.
ffmpeg -i example.mkv -c copy -an example-nosound.mkv
Full ffmpeg documentation here.
100
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)
-
-
1vcodec 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
9
avconv -i [input_file] -vcodec copy -an [output_file]
If you cannot install ffmpeg
because of existing of avconv
try that .