Ref. frames x264

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Locked
Deleted User 37990

Ref. frames x264

Post by Deleted User 37990 »

I am new to Handbrake so this may be a silly question, but I can't find any answer here on the forum:
How do I change the number of I-frames (ref. frames, keyframes) in x264?
I tried to add "min-keyint=24" to the extra options, but it seems to make no difference. I expected it to give a keyframe app. each second.

"A list of all available x264 options can be found on MeWiki": http://mewiki.project357.com/wiki/X264_Settings * Link is dead :(
Deleted User 11865

Re: Ref. frames x264

Post by Deleted User 11865 »

reference frames and keyframes aren't the same thing.

To add a keyframe (in H.264, that would be an IDR-frame, not an I-frame) every second, this should do (assuming a 24p source):

Code: Select all

min-keyint=1:keyint=24
Deleted User 37990

Re: Ref. frames x264

Post by Deleted User 37990 »

Rodeo wrote:reference frames and keyframes aren't the same thing.

To add a keyframe (in H.264, that would be an IDR-frame, not an I-frame) every second, this should do (assuming a 24p source):

Code: Select all

min-keyint=1:keyint=24
I mean the occasional full frames, which then must be named IDR-frames in H.264 :oops:

Please explain what "min-keyint=1" and "keyint=24" means.
Deleted User 11865

Re: Ref. frames x264

Post by Deleted User 11865 »

min-keyint is the minimum distance between keyframes, setting it to 1 lets the encoder insert keyframes as often as it deems necessary. keyint is the maximum distance between keyframes, setting it to 24 ensures there will be at least one keyframe every second.
Deleted User 37990

Re: Ref. frames x264

Post by Deleted User 37990 »

Thank you for the crystal clear answer.
Where can I read about this sort of settings when the MeWiki page is down?
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Ref. frames x264

Post by BradleyS »

https://en.wikibooks.org/wiki/MeGUI/x264_Settings is what I use. Seems to be a mirror of the old MeWiki page.
Deleted User 37990

Re: Ref. frames x264

Post by Deleted User 37990 »

Thank you, both.
nhyone
Bright Spark User
Posts: 252
Joined: Fri Jul 24, 2015 4:13 am

Re: Ref. frames x264

Post by nhyone »

Is there a specific reason you want to set these parameters? For blu-ray compatibility?
Deleted User 37990

Re: Ref. frames x264

Post by Deleted User 37990 »

No, the reason is that I use a cutter program to remove comercials or other uninteresting stuff, that not always starts with a keyframe. The program can do non-recoding cutting if the cutting is done at keyframes. Otherwise it will recode the parts that are before keyframes. But the resulting video quality is much better with Handbrake, so the idea is to Handbrake encode with a lot of keyframes and then only cutting at keyframes.
Deleted User 13735

Re: Ref. frames x264

Post by Deleted User 13735 »

If your cutter is not restoring GOP integrity from start to finish without rerendering., then you are using the wrong cutter.
Deleted User 37990

Re: Ref. frames x264

Post by Deleted User 37990 »

Which one do you then suggest?
Deleted User 13735

Re: Ref. frames x264

Post by Deleted User 13735 »

In Windows, VideoRedo TV suite or TSDoctor are two.
Deleted User 37990

Re: Ref. frames x264

Post by Deleted User 37990 »

Thank you. I will try them.
Mored1984
New User
Posts: 2
Joined: Fri Jun 01, 2018 11:17 am

Re: Ref. frames x264

Post by Mored1984 »

There is no option for changing keyframe but you can do it by writing on inside "Extra Options"

keyint=20

================
Note where 20 number of frames.
Note where keyint sets the desired Group Of Pictures (GOP)
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Ref. frames x264

Post by BradleyS »

We appreciate you trying to be helpful, but reviving a 2.5 year old thread is not usually a good idea. Locking
Locked