Thread: VFRtoCFR
View Single Post
Old 29th May 2012, 19:55   #13  |  Link
Aktan
Registered User
 
Join Date: Feb 2002
Posts: 303
I have another proposed solution that I may implement in VFRtoCFR instead:

Given a CFR frame:

If the frame time fits completely inside a VFR frame time, choose that VFR frame. Example:

A CFR frame has a timestamp playback from 1 ms to 2 ms which fits completely inside a VFR frame that has a timestamp playback from 0 ms to 1000 ms

Else if there is a VFR frame time that takes most of the CFR frame time, choose that VFR frame. Example:

A CFR has a timestamp playback from 1000 ms to 2000 ms with 3 VFR frames to choose from. The 3 VFR frames have the following timestamps:

1. 999 ms to 1010 ms
2. 1010 ms to 1900 ms
3. 1900 ms to 2001 ms

VFR frame choice 2 is taken.

Else if there are multiple largest VFR frame that takes most of the CFR frame time, take your pick, but be consistent. Example:

A CFR has a timestamp playback from 1000 ms to 2000 ms with 2 VFR frames to choose from. The 2 VFR frames have the following timestamps:

1. 999 ms to 1500 ms
2. 1500 ms to 2001 ms

Either VFR frame should be fine, but maybe there are other factors as to why one is chosen over the other (like to avoid dropping or dupping frames).

I think this solution would fixed the problems I originally had with FFMS2 and the drop frame problems TheFluff mentioned.

Last edited by Aktan; 29th May 2012 at 19:58.
Aktan is offline   Reply With Quote