[FFmpeg-devel] [PATCH] av_get_delay

Nicolas George nicolas.george at normalesup.org
Wed Jun 29 15:21:05 CEST 2011


Le primidi 11 messidor, an CCXIX, Nicolas George a écrit :
> You mean packets that have been submitted to av_interleaved_write_frame but
> that lavf has not yet submitted to oformat->write_packet?
> 
> I see the concern, and I will think about it to try and come with a
> satisfactory solution.

I have a possible solution, but I am somewhat out of my depth, so there may
be drawbacks I did not think of.

The idea is to have av_interleave_packet keep track, for each stream, of the
DTS of the last packets queued and dequeued.

This allow a function av_get_interleave_delay to get the corresponding
delay.

The av_get_delay I proposed should therefore probably renamed
av_get_output_delay or something.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libavformat-keep-track-of-DTS-while-interleaving.patch
Type: text/x-diff
Size: 2818 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110629/27df0c1b/attachment.bin>
-------------- 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/20110629/27df0c1b/attachment.asc>


More information about the ffmpeg-devel mailing list