

As far as I can tell from the manual, -c:s copy is supposed to copy all the streams, not just the default one, but it won’t. ffmpeg -i IN.mkv -c:v libx264 -threads 4 -speed 1 -f matroska -c:s copy -map 0:s OUT.mkv Result: No video, no audio, all subtitles. Result: All video, all audio, all subtitles.

To remove subtitle stream without re-encoding video and audio shortest command would be: ffmpeg -i input.mkv -sn -c copy output.mkv How to re-encode video with FFmpeg including all audio? See FFmpeg Wiki: Audio Channels for more examples.How to remove a subtitle stream in 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.
