<div dir="ltr">It looks odd coz as per my understanding GOP with B frames generally ends with B frames and not P frame as you are getting. Can yu check if its open GOP or closed GOP or if you are missing to get the last B frames while interpreting?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 19, 2014 at 8:38 PM, Valentin Noël <span dir="ltr"><<a href="mailto:van@mikrosimage.eu" target="_blank">van@mikrosimage.eu</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">Hi to all,<div><br></div><div>I would like to encode MPEG-2 video with closed GOP of 12 frames, and a structure like IBBPBBPBBPBB.</div><div>For doing this, I am using these options :</div><b>-g 12</b> to set the GOP size<br><b>-bf 2</b> to set the max B frames between reference frames<br><b>-flags +cgop</b> to use Closed GOP <br><div><b>-sc_threshold 1000000000</b> to disable scene change detection</div><div><br></div><div>However, the result is a GOP of 10 frames IBBPBBPBBP, with two missing B frames.</div><div><br></div><div>How can I do to fix this ? Is there something missing ?</div><div><br></div><div>It seems that a "strict_gop" parameter (or "sgop" flag) used to exist in former versions of ffmpe to enforce GOP size. Is there an equivalent nowadays ?</div><div><br></div><div>Thanks.</div><span class="HOEnZb"><font color="#888888"><div> </div><div>Valentin</div></font></span></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" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br></blockquote></div><br></div>