I’m trying to convert some video file containing video, audio and subtitles streams into another format using FFMpeg. However, ffmpeg complains about the subtitles format – it cannot decode the stream. Since I don’t need this subtitles stream, I’d like to know how can I disable subtitles stream decoding during conversion?
I’m trying to convert some video file containing video , audio and subtitles streams
Share
I’ve finally found an answer.
There is such option as
-snwhich disables subtitles decoding from input stream. Also there are analogous options for audio and video decoding:-anand-vnrespectively.It also turned out that there is another way to achieve this. One may use the
-mapoption to select which streams are to be decoded. So omitting the subtitles stream among the-mapoptions does the job.For example, if one has a movie file with 3 streams:
the converting command for FFmpeg may look as follows:
or
The former command line deselects the subtitles stream (probably all of them, if there are several) while the latter one selects only the necessary streams to decode.