On Wed, Jul 27, 2011 at 10:27, כרמל מגן <[email protected]> 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"?

from avformat.h:
 * 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
is
...
 * @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.

Cheers,
Alex
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to