Dave's Brain

Browse - Computer Tips - How can I remove the audio from a video file?

Date: 2016jun13
Product: ffmpeg
Keywords: mute, silent

Q.  How can I remove the audio from a video file?


A.  Use the -an option of ffmpeg like this:

ffmpeg -i INPUT-FILE -vcodec copy -an OUTPUT-FILE
For example:
ffmpeg -i original_video.mp4 -vcodec copy -an silent_video.mp4
Breakdown of the options:
-i original_video.mp4 This is the name of the input video -vcodec copy Just copy the video, don't change it at all. -an Audio none silent_video.mp4 This is the name of the output video.
To install ffmpeg on RedHat/Fedora/CentOS:
dnf install ffmpeg

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.