User Tools

Site Tools


ffmpeg:remove_video_audio_streams_by_type

ffmpeg - Remove video/audio streams by type

Streams can be removed by type.


Example - remove the second video stream

-map -0:v:1

Example - remove the second audio stream

-map -0:a:1

Example - remove the second subtitle stream

-map -0:s:1

NOTE: These commands can be used together to do them all at once:

ffmpeg -i "input.mkv" -map 0 -map -0:v:1 -map -0:a:1 -map -0:s:1 -c copy "output.mkv"
ffmpeg/remove_video_audio_streams_by_type.txt · Last modified: 2023/06/13 11:37 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki