Extract video stream only (remove audio) from a file

Extract video stream only (remove audio) from a file

Recipe Parameters
output.sh
ffmpeg -i path/to/input.mp4 -an -c:v copy path/to/output_video.mp4
Warm Reminder

Project Under Development

This project is still in development and may contain errors. Please use with caution.

# Why use this command?

Useful when you want to remove a distracting audio track or prepare a silent video background. This command extracts the video stream without re-encoding, preserving original quality.

# Parameter Explanation

- `-an`: Disable audio recording. - `-c:v copy`: Copy the video stream directly without re-encoding, which is very fast and lossless.

path/to/input.mp4Input Video File configuration
path/to/output_video.mp4Output Video File configuration

Common Errors & Solutions

"Output file is empty"

Ensure the input file actually contains a video track. Use 'ffmpeg -i input' to inspect streams.

Related Tools in Video