<div dir="ltr"><div><div><div><div>Hello,<br><br></div>I am having some issues receiving RTSP image data from an IP camera. We get into a state where we can receive the data, feed it into the codec via avcodec_decode_video2(...), but we never get signaled that a full frame is ready for use (via the got_picture_ptr parameter). The return value for the function is > 0, so there is some bytes being decoded. If I restart the application, or start another instance of the same application (on a different PC, because of the application itself doesn't allow me to start 2 instances) , then we can get the video frames correctly, so that rules out networking and camera issues.<br><br></div>We currently call avcodec_flush_buffers(videoDecContext) to try and reset the the codec, and I can't find any non-pedagogic examples floating around on the internet.<br><br></div><div>Here's a sample of a dump of stderr when the logging level is set to WARN.<br><div><br><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">[h264 @ 034ee100] illegal short term buffer state detected<br>[h264 @ 034ee100] mmco: unref short failure <br></blockquote></div><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">[h264 @ 94c89660] no frame!<br>[h264 @ 94c89660] no frame!<br>[h264 @ 9254e960] no frame!<br>[h264 @ 94c89660] no frame!<br>[h264 @ 94c89660] no frame!<br>[h264 @ 94c89660] no frame!<br>[h264 @ 94c89660] no frame!<br>[h264 @ 94c89660] no frame!<br>[h264 @ 9254e960] no frame!<br></blockquote><div> </div></div>Any thoughts?<br></div>-Randy<br clear="all"><div><div><div><div><div><br>-- <br><div class="gmail_signature">Randy Ly<br>System Analyst<br><a href="http://www.searidgetech.com/" target="_blank">Searidge Technologies</a><br>19 Camelot dr, Ottawa, ON<br><a href="https://twitter.com/Searidgetech" target="_blank"><img src="http://searidgetech.com/images/email/twitter-icon.gif"></a><a href="http://www.linkedin.com/company/searidge-technologies" target="_blank"><img src="http://searidgetech.com/images/email/linkedin-icon.gif"></a><br></div>
</div></div></div></div></div></div>