Log in

View Full Version : what happend to the min keyframe interval?


Selur
13th October 2007, 11:13
there was an older Xvid Version some time back that did have an min keyframe interval, see:
http://german.doom9.org/images/xvid-2pass-1stpasstuning.gif

ffdshow supports min keyframe but has no zone options.
(looking for a Xvid version with zones and min keyframe)

What happend to it?
Will future Xvid / Xvid_encraw builds have a min keyframe feature again?
Was it removed for some specific reason?

Cu Selur

akupenguin
14th October 2007, 12:01
If it's a 2pass option, then it can't refer to setting frametypes, because those aren't ratecontrol-specific and aren't changed between passes. Might it be xvid_plugin_2pass2_t->kfthreshold ? Afaict from CVS (http://cvs.xvid.org/cvs/viewvc.cgi/xvidcore/src/plugins/plugin_2pass2.c?annotate=HEAD), that's still in the API but was never actually implemented.

Selur
14th October 2007, 19:17
lol, I thought this worked in an older build, seems like I was wrong.

Is there another way to tell xvid not to set a keyframe in an specific intervall?
e.g. like setting a specific scenechange threshold for a zone?

Cu Selur

Ps.: wondering how ffdshow does it,..

LoRd_MuldeR
14th October 2007, 21:44
Well, you can force a zone to start with a keyframe.

But why do you want to avoid a keyframe? I think if the encoder decides to place a keyframe instead of a P/B frame at a certain position, then this happens for a reason! If you force the encoder to not place a keyframe, although the encoder has determined that a P/B frame is the optimal frame type for that position, it's very likely to hurt compression/quality...

Selur
14th October 2007, 22:59
it's ment for testing purposes and I'm aware of the quality problems that too small or too high 'min keyframe'-distances can cause,...