<div dir="ltr"><div>Thanks for your answer.</div><div><br></div><div>I know what you mean but it is not my case. The trouble I meant to ask here is about the error ffmpeg gives "No decoder surfaces left.". </div><div>If my usage of ffmpeg, which I shown in the previous mail, is correct, I think there must be something wrong in the library which might cause the allocated surfaces could not be freed.</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 4, 2020 at 6:53 PM Strahinja Radman <<a href="mailto:dr.strashni@gmail.com">dr.strashni@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br>I have trouble in using ffmpeg to decode h264 stream sent from IP cameras through a busy network.<br><br></div></blockquote></div><div><br></div><div>If you are using UDP protocol then maybe increasing circular buffer size can help. Just add these options</div><div>after the IP address:</div><div>   1. overrun_nonfatal </div><div>   2. fifo_size. </div><div><br></div><div>Example:</div><div><br></div><div>"udp://IP?overrun_nonfatal=1&fifo_size=50000000"<br><br>This will increase input buffer to 50MB, which should be enough. On the other hand if you are simply losing </div><div>the data along the way RTMP will guarantee that packets are delivered properly.</div><div><br></div>-- <div><div dir="ltr"><br>Regards<br>Strahinja Radman</div></div></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div></div>