ffmpeg set subtitles track as default

后端 未结 2 533
我在风中等你
我在风中等你 2020-12-05 11:11

By adding an .ass subtitles track to an mkv video with ffmpeg, it isn\'t set as default track, so on playback you have to manually turn on subtitles. Is it possible to set t

2条回答
  •  鱼传尺愫
    2020-12-05 11:44

    I think as per this patch this is now possible. At least for me it works with:

    ffmpeg -i in.mp4 -i in.srt -c copy -disposition:s:0 default out.mkv
    

    Note s in -disposition:s:0 in this case stands for subtitle and not stream. To select the second steam by index use -disposition:1.

提交回复
热议问题