<div dir="ltr"><div><div class="gmail_quote"><div dir="ltr">On Wed, Mar 28, 2018 at 12:12 AM Andres Gonzalez <<a href="mailto:andres.agoralabs@gmail.com">andres.agoralabs@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have been tasked to test some decoders regarding how they respond to<br>
different streams with various GOP lengths (GOP length is the ratio of<br>
Intracoded-to-Predictive or I-to-P frames). I am using several pipelines<br>
with the x264enc plugin and all seems to be working fine. But in reviewing<br>
the properties for x264enc, it is not clear to me how to configure x264enc<br>
so I can nail it down for various GOP lengths. There are a lot of properties<br>
related to B frames but not too many for I/P frames.<br>
<br>
Two x264enc properties:<br>
ip-factor: Quantizer factor between I- and P- frames This appears to<br>
relate to quantizing and not a ratio; plus it is only in the range of 0-2<br>
<br>
key-int-max: Maximal distance between two key-frames Again, only deals<br>
with the frequency of I frames regardless of what kind of frames come<br>
between them.<br>
<br>
So, how can I configure x264enc for various GOP lengths like 1, 15, or 30?<br>
<br>
Thanks,<br>
-Andres<br></blockquote><div><br></div><div>If you disable scene detection using option-string="scenecut=0",
key-int-max will be your I frame interval. So for a I-to-P+B ratio of
1:15, set key-int-max=16.<br><div><br></div> </div></div></div></div>