Log in

View Full Version : Keyframe Decision Algorithm


Emp3r0r
7th February 2004, 03:14
First of all I must say thanks for the great work on XviD. I use it every week.

I'm looking for info about the key frame decision specifically with regard to the following suggestion.

I want my key frames to appear based upon these rules:

-Scene change is detected
-It's been too long since my last key frame
-I explicitly asked for a key frame

Along with this flexibility

-It’s been too long since my last key frame and my next key frame is less than 25% more than the max distance threshold. Therefore, hold off on inserting a key frame.

-It’s been too long since my last key frame and my next key frame is less than 50% more than the max distance threshold. Therefore, put my key frame approx. in the middle of the detected key frames on the largest delta frame

-I explicitly asked for a key frame but there is a detected key frame less than 10 frames away so ignore my request.

Is this a job for a stats file tool?

Koepi
7th February 2004, 09:47
Most of that XviD already does (!), sysKin added quite a lot of intelligence to the frame type decision.

Of course you can add that to your stats tool, but i doubt you would gain much because the internal decision is awesome.

Regards
Koepi