[Libav-user] Issues with avcodec_send_packet stalling

Omar Álvarez omar.alvarez at cinfo.es
Mon Nov 19 19:16:24 EET 2018

So the way I am decoding should be correct, if I am not mistaken.

Is there a way to get around my avcodec_send_packet() performance issues?
Can you pre-send packets or use an option to increase buffer size?

El lun., 19 nov. 2018 a las 15:37, Carl Eugen Hoyos (<ceffmpeg at gmail.com>)

> 2018-11-15 13:30 GMT+01:00, Omar Álvarez <omar.alvarez at cinfo.es>:
> > I am trying to decode a h264 3Kx3K video file using NVDEC and ffmpeg 4.0.
> >
> > I am having a problem when avcodec_receive_frame() returns
> > and I try to get the next packet with avcodec_send_packet(). It sometimes
> > takes 40-60 ms to return, which is really slow and results in frame
> > stuttering.
> >
> > I followed more or less the hardware decoding example.
> >
> > What could be the cause of this? Did I make a mistake? Is AVERROR(EAGAIN)
> > common when using local video files?
> For real-world files, I would expect that AVERROR(EAGAIN) is
> common because if B-frames are used, you have a certain delay
> (depending on encoding options).
> Carl Eugen
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20181119/cfe158ca/attachment.html>

More information about the Libav-user mailing list