<div dir="ltr">I am using FFMpeg to receive RTMP streams. It decodes and plays the RTMP stream correctly but I have problems playing the video for long periods of time.<br><div class="gmail_quote"><div dir="ltr"><div><br></div>
<div>It seems that </div><div><br></div>
<div>av_read_frame(format_context, &packet);</div><div><br></div><div>returns an AVERROR_EOF after playing for a period in time say 7 or 8 mins, this occurs randomly, when that happens I presume that the stream has ended so my playback stops.</div>
<div>However, the playback hasn't reached the actual video duration.</div><div><br></div><div>My question is if this behaviour is characteristic of RTMP streams, if so is there a way to properly stream RTMP reliably so the playback can continue for long periods using FFMpeg<span class="HOEnZb"><font color="#888888"><br clear="all">
<div><br></div>-- <br><div dir="ltr"><font color="#000000">Li Zuwei<br></font><br>
</div>
</font></span></div></div>
</div><br>
</div>