[Libav-user] latency of mpegts handling in libavformat
alexcohn at netvision.net.il
Wed Jul 27 10:09:10 CEST 2011
On Wed, Jul 27, 2011 at 10:27, כרמל מגן <carmel.work at gmail.com> wrote:
> av_read_frame does not return until the third frame arrives. This
> introduces 2 frames delay *before* the decoding.
What do you mean "av_read_frame does not return"?
* This function returns what is stored in the file, and does not validate
* that what is there are valid frames for the decoder. It will split what
* @return 0 if OK, < 0 on error or end of file
So, does it return negative number? Or the packet is not a video packet?
Maybe, you have the first video packet spliced into three network packets?
Note that the first video frame is large (it is a key frame, naturally). The
subsequent packet are much much smaller, becasue they encode only delta.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user