<p>See these two links:</p>

<p>1) <a href="https://en.wikibooks.org/wiki/MeGUI/x264_Settings" rel="nofollow">MeGUI/x264 Settings</a> for an explanation of the parameters like keyint.</p>

<p>2) <a href="http://forum.doom9.org/showthread.php?t=165197" rel="nofollow">About --keyint --min-keyint and --scenecut</a> for a discussion at Doom9 about how they interact, specifically</p>

<blockquote>
  <p>--keyint is the maximum interval. x264 will insert key frames earlier if it deems them beneficial, e.g. due to a scene change. From my
  experience the majority of key frames are in place because of the
  properties of the video, not because keyint was reached. The larger
  --keyint is the smaller the impact on overall key frame placement should be.</p>
</blockquote>

CC BY-SA 3.0
2015-11-22T11:18:06.317Z
Oh well I see, the name of the setting could have been max-keyint so ;D all would have been more clear this way..
user3450548
CC BY-SA 3.0
2015-11-22T11:46:25.267Z
You can enforce fixed GOP size by setting both to same value.
Gyan
CC BY-SA 3.0
2015-11-22T12:17:44.933Z
Oh yes, nice solution :)
user3450548
CC BY-SA 3.0
2015-11-22T11:16:03.937Z
2015-11-22T11:16:03.937Z
Gyan
<p>Fiddling with the h264 and h265 params I found both <strong>keyint</strong> and <strong>min-keyint</strong> settings.</p>

<p>Setting keyint shouldn't force the codec library to use exactly that frame interval?</p>

<p>Do min-keyint have something to do with scene detection and if set it take priority over keyint plain setting ?</p>

<p>TL;DR: I found that h265 default settings are keyint=250 and min-keyint=25 ... what I should expect from that? A fixed length GOP or a variable length one?</p>

<h.264><h.265>
h264 and h265 keyint params settings
user3450548
# h264 and h265 keyint params settings

(Asked by: username_0 on 2015-11-22)

Fiddling with the h264 and h265 params I found both **keyint** and **min-keyint** settings.

Setting keyint shouldn't force the codec library to use exactly that frame interval?

Do min-keyint have something to do with scene detection and if set it take priority over keyint plain setting ?

TL;DR: I found that h265 default settings are keyint=250 and min-keyint=25 ... what I should expect from that? A fixed length GOP or a variable length one?

**Tags:** h.264, h.265


---

## 1 answers

### Answer by username_1 on 2015-11-22. Score: 2 | Accepted answer

See these two links:

1) [MeGUI/x264 Settings](https://en.wikibooks.org/wiki/MeGUI/x264_Settings) for an explanation of the parameters like keyint.

2) [About --keyint --min-keyint and --scenecut](http://forum.doom9.org/showthread.php?t=165197) for a discussion at Doom9 about how they interact, specifically

> --keyint is the maximum interval. x264 will insert key frames earlier if it deems them beneficial, e.g. due to a scene change. From my
> experience the majority of key frames are in place because of the
> properties of the video, not because keyint was reached. The larger
> --keyint is the smaller the impact on overall key frame placement should be.

> **Comments:**
> **username_0**: Oh well I see, the name of the setting could have been max-keyint so ;D all would have been more clear this way..  
> **username_1**: You can enforce fixed GOP size by setting both to same value.  
> **username_0**: Oh yes, nice solution :)  

---

