<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 22, 2016 at 11:10 PM, BugMaster <span dir="ltr"><<a href="mailto:BugMaster@narod.ru" target="_blank">BugMaster@narod.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 22 Sep 2016 15:37:36 +0530, Pradeep Ramachandran wrote:<br>
> Hi all,I see in encoder/encoder.c, the following line<br>
<span class=""><br>
<br>
h->>param.i_keyint_min = x264_clip3( h->param.i_keyint_min, 1, h->param.i_keyint_max/2+1 );<br>
<br>
<br>
<br>
> Essentially, the keyint_min is clipped to be a max of keyint_max/2<br>
> +1. Now, this results in the problem that if scenecut detects a<br>
> scene transition after keyint_min, it will insert IDR frame and<br>
> break the GOP. So, if I were interested in a fixed GOP length (no,<br>
> not max GOP length, but fixed GOP length for other reasons), I would<br>
> have to disable scenecut detection which would result in a loss of efficiency. <br>
<br>
<br>
> Can someone please help me understand why this clipping was done?<br>
> It seems like losing the benefits of scenecut detection if I want<br>
> fixed GOP isn't the best trade-off.<br>
<br>
<br>
> Thanks,<br>
> Pradeep.<br>
<br>
</span>If you want fixed GOP length than you SHOULD disable scenecut<br>
detection otherwise it wouldn't be fixed. --min-keyint was introduced<br>
only to prevent closing GOP due flashes almost immediately after<br>
previous key-frame. If you meant "min-keyint == keyint" use case for<br>
fixed GOP than imho it is incorrect way to force fixed GOP. It<br>
wouldn't result in any quality improvement vs disabling scenecut imho.<br>
Because main quality hit of fixed length GOP is due placing of IDR at<br>
non-scenecut frame which happened not long before (which we already<br>
coded almost as IDR). Coding scenecuts itself as I-frame instead of<br>
P-frame in fixed GOP wouldn't really give you significant quality gain<br>
imho.<br></blockquote><div><br></div><div>Some of my tests are showing that coding scenecut as I-frame is more efficient than P-frame. So when I want to do fixed GOP length, enabling scenecut to insert an I-frame at the scenecut seems to be a good option.</div><div>Will share some data from my tests in a bit...</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
x264-devel mailing list<br>
<a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x264-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/<wbr>listinfo/x264-devel</a><br>
</div></div></blockquote></div><br></div></div>