[FFmpeg-devel] [RFC] Add duration info to AVFrame
Nicolas George
nicolas.george at normalesup.org
Thu Mar 8 16:22:21 CET 2012
Le nonidi 19 ventôse, an CCXX, Stefano Sabatini a écrit :
> 1. I could export pkt_duration in AVFrame, like it is done with
> pkt_pts, duration is expressed in stream time_base units.
>
> This alone is not sufficient, because to decode pkt* things we need
> to reference the AVStream, which is not always available.
IMHO, there is no reason th have pkt_pts and not pkt_duration.
> 2. I create a duration field in AVFrame, with no specified timebase,
> which is done for passing the duration information between
> different layers (e.g. lavc -> lavfi -> lavc), similar to what we
> did for pts.
> Then I could add a time_base unit in AVFrame, which is used for
> specifying the PTS and duration timebase.
This would probably not be a bad idea, but beware not to cause confusion,
especially with the bitstream pts.
Do you intend to add duration to AVFilterBufferRef too?
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20120308/0ea09c1e/attachment.asc>
More information about the ffmpeg-devel
mailing list