
You can serve your purpose by following this command. It is why you need to figure out the audio steam's codec. The above command works when an input file ensures to contain AAC audio. It would help if you changed the extension and input file name you don't need to change anything else. You can see the command to extract audio from your video file. To remove audio from a video is a simple process, meaning you won't have to work hard for this purpose.Some beginners dont know how to use FFmpeg command, if you want to mute video,i would recommend best video editor iMyFone Filme.You can download iMyFone Filme below: You only need to install the copy of FFmpeg on your computer. It's a prolific tool used to remove, add, extract, and add the audio in video files. Part 2: Better Alternative than FFmpeg to Remove Sound from Video iMyFone Filme See FFmpeg Wiki: Audio Channels for more examples.Part 1: How to Extract Audio from Video with FFmpeg See ffmpeg -layouts for a list of accepted channel layouts (for channel_layout option) and channel names (for channels option). The default is all which extracts each input channel as a separate, individual stream. The default is stereo.Ĭhannels lists the channels to be extracted as separate output streams. Example to get the right channel only and output a mono audio file: ffmpeg -i stereo.wav -filter_complex "channelsplit=channel_layout=stereo:channels=FR" -map "" front_right.wavĬhannel_layout is the channel layout of the input stream. Using a stereo input and channelsplit filter.

ffmpeg -i input -map 0:v -map 0:a -c copy output This example does not need to use any negative mapping.

Remove all subtitles and data ffmpeg -i input -map 0 -map -0:s -map -0:d -c copy output Keep everything except audio streams #4 (at offset 3) and #7 (at offset 6): ffmpeg -i input -map 0 -map -0:a:3 -map -0:a:6 -c copy output

The most efficient method is to use negative mapping in the -map option to exclude specific stream(s) ("tracks") while keeping all other streams.
