PDA

View Full Version : Cfr->vfr?


jaidek
15th July 2009, 12:32
Hi All,

I've been trying to work out an Avisynth script that will analyze some raw video that I've been given. The video itself runs at 60fps, but due to duplicate frames it's actually "slower" at points when there's a lot of things happening on the screen. I've managed to differentiate between duplicate frames/unique frames, but I'm a little hung up on the "correct" way to detect the "true" fps, which will vary as the video progresses. I can think of programmatic ways using programming constructs (stacks, arrays, queues, etc) in combo with ScriptClip and keeping a count of unique frames, but is there a native Avisynth way to do this instead?

neuron2
15th July 2009, 14:59
http://avisynth.org/mediawiki/VFR

thewebchat
15th July 2009, 16:18
You know, DeDup does this. Also, can't you get the real framerate by doing framerate/dups.

thewebchat
15th July 2009, 16:30
Oh, I just thought of something. Instead of trying to find the "real" framerate (which can fail), why don't you just check for new unique frames, drop all the next dupes, record the timestamp of the first of the sequence to a timecodes_v2 file, and repeat.

jaidek
15th July 2009, 18:11
Thanks Neuron2, I've read that (repeatedly) but I don't think it's what I want. That involves encoding the video (right?), and I'd rather leave it in a raw format.

thewebchat: I'll send you a message with some more ideas I have on this.