<div dir="ltr"><div><div><div><div>Arthur,<br></div>missing last frame may be related to this:<br><a href="https://ffmpeg.org/pipermail/libav-user/2016-January/008781.html">https://ffmpeg.org/pipermail/libav-user/2016-January/008781.html</a><br><br></div>Also, just a guess but 18 is half of 36. Is it possible you need to set some interlacing option ?<br><br></div>Regards,<br></div>Salsaman.<br><br><div><div><br></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><br><a href="http://lives-video.com" target="_blank">http://lives-video.com</a><br><a href="https://www.openhub.net/accounts/salsaman" target="_blank">https://www.openhub.net/accounts/salsaman</a><br></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Feb 10, 2016 at 8:30 AM, Max Vlasov <span dir="ltr"><<a href="mailto:max.vlasov@gmail.com" target="_blank">max.vlasov@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 10, 2016 at 1:32 AM, Arthur Muller <span dir="ltr"><<a href="mailto:muller@vki.com" target="_blank">muller@vki.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
I also noticed that the call to avcodec_encode_video2 returns got_packet=0 about half the time. I suspect this is related. But other than setting max_b_frames to zero I'm not sure what else I need to do to recover all my frames all the time.<br>
<br></blockquote></div><br></div></span><div class="gmail_extra">As long as I remember I solved a similar problem after providing the last frame of the sequence by calling avcodec_encode_video2  with frame parameter being NULL in a loop while got_packet returns true. <br><br></div></div>
<br>_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">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>
<br></blockquote></div><br></div>