Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
15th July 2009, 11:32 | #1 | Link |
Registered User
Join Date: Dec 2008
Posts: 7
|
Cfr->vfr?
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? Last edited by jaidek; 15th July 2009 at 12:47. |
15th July 2009, 15:30 | #4 | Link |
Advanced Blogging
Join Date: May 2009
Posts: 480
|
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.
|
15th July 2009, 17:11 | #5 | Link |
Registered User
Join Date: Dec 2008
Posts: 7
|
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. |
|
|