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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th July 2009, 11:32   #1  |  Link
jaidek
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.
jaidek is offline   Reply With Quote
Old 15th July 2009, 13:59   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
http://avisynth.org/mediawiki/VFR
Guest is offline   Reply With Quote
Old 15th July 2009, 15:18   #3  |  Link
thewebchat
Advanced Blogging
 
Join Date: May 2009
Posts: 480
You know, DeDup does this. Also, can't you get the real framerate by doing framerate/dups.
thewebchat is offline   Reply With Quote
Old 15th July 2009, 15:30   #4  |  Link
thewebchat
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.
thewebchat is offline   Reply With Quote
Old 15th July 2009, 17:11   #5  |  Link
jaidek
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.
jaidek is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 21:14.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.