[FFmpeg-devel] pts handling (reordered_opaque) and frame duration calculation

Reinhard Nissl rnissl
Wed Apr 1 23:28:49 CEST 2009


Michael Niedermayer schrieb:

> ive just tested and reordered_opaque works as expected with my sample mpeg4
> asp file

I was in chat with janneg on #ffmpeg-devel since sending this
email and meanwhile we figured out that xine-lib uses direct
rendering if supported, but not for CODEC_ID_H264. It's own
get_buffer() implementation missed the necessary copying of
reordered_opaque from context to frame. After adding that line,
it worked for the XviD samples too.

> you can look at compute_frame_duration() from lavf
> and grep for ticks in ffmpeg.c
> (iam refering to these as this code might change as more h264 and timestamp
>  issues become fixed)
> also not all codecs have the ability to store frame durations so it may be
> that what you calculate with all this is still off in some cases.

OK, thanks.

Dipl.-Inform. (FH) Reinhard Nissl
mailto:rnissl at gmx.de

More information about the ffmpeg-devel mailing list