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

WangBin wbsecg1 at gmail.com
Mon Dec 22 09:48:05 CET 2014


My fault. I didn't set correct pts and duration in AVPacket. Before 
FFmpeg 2.5, it does not matter because AVPacket.data contains time 
information.

"Dialogue: 0,0:00:20.21,0:00:22.96,*Default,NTP,0000,0000,0000,blablabla


I guess ass decoder use that information.
In 2.5, AVPacket.data does not have time information

16,0,*Default,NTP,0000,0000,0000,,blablabla

then I have to set AVPacket pts and duration.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20141222/6933c155/attachment.html>


More information about the Libav-user mailing list