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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th March 2004, 17:34   #1  |  Link
Victoire
Registered User
 
Join Date: Mar 2002
Posts: 7
Is it possible to create plugin which can change framerate?

subj
More detailed: External plugin has input video with 25 fps. Can this plugin output treated video with doubled or tripled framerate (50 or 75 fps, with the same resolution and duration). How I can realize that?
__________________
Observatory - your Guide of Digital Video/Audio in Russian
Victoire is offline   Reply With Quote
Old 24th March 2004, 19:44   #2  |  Link
Bidoche
Avisynth 3.0 Developer
 
Join Date: Jan 2002
Location: France
Posts: 639
There are no constraints between input and output video.

That is to say a plugin can do exactly what you said (and more)

If your filter inherit from GenericVideoFilter, you do it by directly altering the value of herited VideoInfo member vi (in your filter constructor).
Code:
vi.framerate = ...    
vi.framecount = ...   //I may have mismaned the properties to alter, but the idea is there
Of course, you have to respect the promise you do in vi and output the correct number of frames.
Bidoche is offline   Reply With Quote
Old 24th March 2004, 19:55   #3  |  Link
SoonUDie
Registered User
 
Join Date: Dec 2003
Posts: 147
What do you mean by doubled framerate? There are a couple ways to do this:
1. Duplicated Frames (a, b) -> (a, a, b, b)
2. Blended Frames (a, b) -> (a, [(a+b)/2], b, [(b+c)/2])
3. Interpolated Frames (a, b) -> (a, I(a,b), b, I(b,c))

I assume you mean interpolated. Unfortunately, that's really hard to do. There are commercial programs out there that do this pretty well, though they cost hundreds of dollars.
http://www.revisionfx.com/rstwixtor.htm
http://www.borisfx.com/products/RED/index_3gl.php


A free, but not-as-great alternative is trbarry's FrameDbl filter (www.trbarry.com)
__________________
Stuff was here at some point.

Last edited by SoonUDie; 24th March 2004 at 21:02.
SoonUDie is offline   Reply With Quote
Old 24th March 2004, 22:00   #4  |  Link
sh0dan
Retired AviSynth Dev ;)
 
sh0dan's Avatar
 
Join Date: Nov 2001
Location: Dark Side of the Moon
Posts: 3,480
You are all right!

You can have a look at the ChangeFPS source. It implements a simple frameduplication.
__________________
Regards, sh0dan // VoxPod
sh0dan is offline   Reply With Quote
Old 17th April 2004, 15:58   #5  |  Link
Victoire
Registered User
 
Join Date: Mar 2002
Posts: 7
Thank you for the help! ChangeFPS source is the best explanation.
I think this thread may be closed...
__________________
Observatory - your Guide of Digital Video/Audio in Russian
Victoire is offline   Reply With Quote
Old 17th April 2004, 16:13   #6  |  Link
mf
·
 
mf's Avatar
 
Join Date: Jan 2002
Posts: 1,729
Quote:
Originally posted by Victoire
Thank you for the help! ChangeFPS source is the best explanation.
I think this thread may be closed...
It doesn't work that way. The thread stays until someone has something to add .
mf is offline   Reply With Quote
Old 20th April 2004, 11:57   #7  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
for some kind of easy motioncompensation, have a look in the genmotion-thread
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 14:59.


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