Currently, still pictures are extracted from the movie with subtitles, but it seems that subtitles are not displayed in the place they should be.
I am making a still image with the following command.
ffmpeg -ss "00:02:29" -copyts -i input.mkv -filter_complex "[0:0][0:4]overlay" -vframes 1 sample.jpg
I also confirmed 27, 28 and 30 seconds, but subtitles were not included.
However, when specifying 29.5 seconds, subtitles were included.
Also, subtitle data is saved in the movie data as follows.
Stream #0:4(jpn): Subtitle: hdmv_pgs_subtitle (default)
Also, when subtitle data was extracted to sup and parsed to xml and png, the content of xml was as follows.
<Event InTC="00:02:27:02" OutTC="00:02:30:14" Forced="False"> <Graphic Width="853" Height="132" X="523" Y="891">main_0047.png</Graphic> </Event>
Also, when actually playing and checking the video with the player, the content of xml did not seem to be wrong.
What is wrong?