[Ffmpeg-devel] compute_frame_duration and pkt->duration
Baptiste Coudurier
baptiste.coudurier
Wed Nov 15 01:07:09 CET 2006
Baptiste Coudurier wrote:
> 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 ?
>
Ping ? Has somebody an idea about that ? Michael ?
--
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