ffmpeg set subtitles track as default

后端 未结 2 528
我在风中等你
我在风中等你 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:38

    You can use 'forced' instead of default to force vlc to play it

    ffmpeg -f mp4 -i outfile.mp4 -f srt -i VTS_07_0.EnglishV2.srt -c:v copy -c:a copy -metadata:s:a:0 language=Japanese -c:s mov_text -metadata:s:s:0 language=English -disposition:s:s:0 forced mix.mp4
    
    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题