-an or -map 0 -map -0:a?
Both remove the audio. They differ in what else survives. On in.mkv:
-an -c copy: video and subtitles, the same bytes as-map 0 -map -0:a.-map 0 -map -0:a -c copy: video and subtitles.-map 0:v -c copy: video only.
Without -map, FFmpeg keeps one stream per type, so -an works when a file has one stream of each. With -map 0, every stream is kept, and the minus signs say which to drop. Use -map 0 when a file carries several subtitle or data tracks.



