<div dir="ltr"><div dir="ltr">So the way I am decoding should be correct, if I am not mistaken. </div><div dir="ltr"><br></div><div dir="ltr">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? </div></div><br><div class="gmail_quote"><div dir="ltr">El lun., 19 nov. 2018 a las 15:37, Carl Eugen Hoyos (<<a href="mailto:ceffmpeg@gmail.com">ceffmpeg@gmail.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2018-11-15 13:30 GMT+01:00, Omar Álvarez <<a href="mailto:omar.alvarez@cinfo.es" target="_blank">omar.alvarez@cinfo.es</a>>:<br>
> I am trying to decode a h264 3Kx3K video file using NVDEC and ffmpeg 4.0.<br>
><br>
> I am having a problem when avcodec_receive_frame() returns AVERROR(EAGAIN),<br>
> and I try to get the next packet with avcodec_send_packet(). It sometimes<br>
> takes 40-60 ms to return, which is really slow and results in frame<br>
> stuttering.<br>
><br>
> I followed more or less the hardware decoding example.<br>
><br>
> What could be the cause of this? Did I make a mistake? Is AVERROR(EAGAIN)<br>
> common when using local video files?<br>
<br>
For real-world files, I would expect that AVERROR(EAGAIN) is<br>
common because if B-frames are used, you have a certain delay<br>
(depending on encoding options).<br>
<br>
Carl Eugen<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</blockquote></div>