Remove sound

Problem

Remove the sound from an audiovisual file.

Solution

ffmpeg \
    -an \
    -i input_file \
    -c copy \
    output_file

Command syntax

ffmpeg
starts the command
-an
no audio stream (mnemonically “audio no”)
-i input_file
path, name and extension of the input file
-c copy
copy all the remaining content
output_file
path, name and extension of the output file

Discussion

Any audio stream from the input file is ignored, therefore this parameter must come before the input file itself, and all the remaining content is copied into the output file.


2020-07-15