[Ffmpeg-devel] compute_frame_duration and pkt->duration

Baptiste Coudurier baptiste.coudurier
Mon Nov 13 13:13:12 CET 2006


Hi

Here is the problem I experience:

gxfenc.c av_set_pts_info to 1/50 because gxf dts are field based, while
codec timebase is 1/25. When computing frame duration, it first takes
stream timebase, and it will compute frame duration as 1, and timebase
as 1/50.

With delay, that will cause first dts to be -1 in stream timebase.
dts in gxfenc.c: -1,0,2,4,6,8,10 ..... to be right, first dts should be -2.

Maybe Im wrong or compute_frame_duration should only take codec timebase
into account and then compute_pkt_fields2 will rescale according to
stream timebase.

What would be correct behaviour ?

-- 
Baptiste COUDURIER                              GnuPG Key Id: 0x5C1ABAAA
SMARTJOG S.A.                                    http://www.smartjog.com
Key fingerprint                 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
Phone: +33 1 49966312




More information about the ffmpeg-devel mailing list