[Libav-user] ass subtitle's AVSubtitle is wrong in FFmpeg2.5

WangBin wbsecg1 at gmail.com
Fri Dec 12 10:01:28 CET 2014


end_display_time is larger than the real value. AVSubtitleRect.ass is
different from original text in ass file.

for example, here is the original text

Dialogue: 0,0:00:14.91,0:00:16.86,*Default,NTP,0000,0000,0000,,我在我们
房间里藏>了证 据\N{\fn微软雅黑}{\b0}{\fs14}{\3c&H202020&}{\shad1}I've
hidden evidence in our room

the result of avcodec_decode_subtitle2
rects[0]->ass:
Dialogue: 0,0:02:29.10,0:02:48.60,*Default,NTP,0000,0000,0000,,我在我们>
房间里藏了证 据\N{\fn微软雅黑}{\b0}{\fs14}{\3c&H202020&}{\shad1}I've
hidden evidence in our room

end_display_time is 19500, pts is 14910, so subtitle displays from
00:00:14.910 to 00:00:34.410

No this issue before 2.5.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20141212/995f2230/attachment.html>


More information about the Libav-user mailing list