as title, i want to encode hardsub some mkv videos which contain subtitles. These subs is maybe ASS, SRT or picture-based. I have read FFmpeg Document and stuffs, but only found the way to burn sub if the type of sub is known.
I try to get subtitle info using mediainfo:
mediainfo "--Output=Text;%Format%\r\n" input.mkv
The output is "ASS" with ass , "Text" or "Subrip" or "UTF-8" with SRT.... But i find it hard to keep going because of many kind of output i can get, which is still so hard to create a batch file to tell ffmpeg to auto dectected kind of subs so auto choose correct filter.
Is there any ways to do this? Thanks !