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

Reply
 
Thread Tools Search this Thread Display Modes
Old 15th June 2006, 05:44   #161  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
No, but here is simple fps doubler (from 15 to 30):

data = DePanEstimate()
f1_2 = DePan(data=data, offset=1./2)
Interleave(f1_2,last)
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 15th June 2006, 15:37   #162  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
How about from 15fps to 23.976? Would something along the lines of:

Code:
i=last
data=DePanEstimate(i,range=1,trust=5)
f=DePan(i,data,offset=x)
b=DePan(i,data,offset=-x)
Interleave(f,i,b)
SelectEvery(???)
be ok? If so, what should I substitute x and ??? for?
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 15th June 2006, 17:47   #163  |  Link
Fizick
AviSynth plugger
 
Fizick's Avatar
 
Join Date: Nov 2003
Location: Russia
Posts: 2,183
Look to fps conversion examples in DePan doc and try understand them.
__________________
My Avisynth plugins are now at http://avisynth.org.ru and mirror at http://avisynth.nl/users/fizick
I usually do not provide a technical support in private messages.
Fizick is offline   Reply With Quote
Old 15th June 2006, 22:22   #164  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
I'm not being lazy, the framerate changes appear out of the blue in the readme, and the only two examples (2-to-3 and 3-to-5) are too different for a common template to be extracted from them. About the only thing I see in common is that both examples create some kind of backward and forward information, but that's it.
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 16th June 2006, 05:35   #165  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,695
Here's some code I used quite awhile ago. Haven't tested it with the latest version. However, it worked when I last used it. Hopefully it will help you fill in the gaps in your knowledge and get you going.
Code:
#Slow motion
loadplugin("c:\Program Files\AviSynth 2.5\plugins\depan.dll")
AVISource("E:\Volleyball\Volleyball (Soldedad)\Volleyball (soledad)0022.avi")

converttoYV12()
AssumeBFF()
fps3to5()


function fps3to5(clipYV12)
{
# change FPS from 3 to 5 (or 15 to 25, or 18 to 30 and so on), i.e. with factor=5/3
# uses global motion compensation
# input must be YV12 progressive (or separated fields probably ?)
SeparateFields(clipYV12)
data = DePanEstimate(clipYV12)
t3_5 = DePan(clipYV12, data, offset=-2./5)
t6_5 = DePan(clipYV12, data, offset=1./5).trim(2,0)
t9_5 = DePan(clipYV12, data, offset=-1./5).trim(1,0)
t12_5 = DePan(clipYV12, data, offset=2./5).trim(3,0)
Interleave(clipYV12, t3_5, t6_5, t9_5, t12_5)
SelectEvery(15,0,1,2,3,4)
weave()
}
johnmeyer is offline   Reply With Quote
Old 16th June 2006, 16:25   #166  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
Thanks, but that 3-to-5 example is in DePan's readme, and the only other example (2-to-3) is much too different to extract a general framework from them.
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 16th June 2006, 16:29   #167  |  Link
johnmeyer
Registered User
 
Join Date: Feb 2002
Location: California
Posts: 2,695
I guess none of know what you want. Yes, this was from the readme, but I actually used it, and this script is what I used. In other words, this is a working script. Isn't that what you wanted?
johnmeyer is offline   Reply With Quote
Old 16th June 2006, 16:43   #168  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
Not exactly, I need a 15-to-23.976 script that doesn't result in the need of resampling/repitching the source audio.
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 16th June 2006, 16:51   #169  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
that won't work with depan.
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 16th June 2006, 18:16   #170  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
I assume 15-to-29.97 won't workt with DePan either, am I stuck with duping/interpolating frames with ChangeFPS then?
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 16th June 2006, 19:24   #171  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
you may upinterpolate it to 150 fps (15fpsx10) and then use cangefps(29.97).
so the remaining jitter is about 1/150 sec
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 17th June 2006, 02:06   #172  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
You mean extrapolation to 150fps and then ChangeFPS(23.976), right? And what should I use for the extrapolation?
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 17th June 2006, 06:14   #173  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
it is still interpolation.

modify fps3to5 so that it delivers 1/10th steps to achieve 10x of the input framerate
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 17th June 2006, 15:23   #174  |  Link
krieger2005
Registered User
 
krieger2005's Avatar
 
Join Date: Oct 2003
Location: Germany
Posts: 377
Quote:
Originally Posted by scharfis_brain
... and then use cangefps(29.97).
Quote:
Originally Posted by Chainmax
... and then ChangeFPS(23.976), right?
No comment.
krieger2005 is offline   Reply With Quote
Old 17th June 2006, 19:37   #175  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
Quote:
Originally Posted by scharfis_brain
it is still interpolation.

modify fps3to5 so that it delivers 1/10th steps to achieve 10x of the input framerate
I really have no clue how to do it, 3to5 has 3_5, 6_5, 9_5 and 12_5 but it really isn't clear why 4 steps are made and why the first numbers of each step are multiples of 3. I also don't understand the logic behind the offsets on each step or the SelectEvery line.


[edit]If the final conversion is going to be to 23.976, would it benefitial to do the up-interpolation to 120fps instead?
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.

Last edited by Chainmax; 17th June 2006 at 21:48.
Chainmax is offline   Reply With Quote
Old 18th June 2006, 01:40   #176  |  Link
scharfis_brain
brainless
 
scharfis_brain's Avatar
 
Join Date: Mar 2003
Location: Germany
Posts: 3,653
the more up-interpolation, the less the remaining jerkyness due to the 1000/1001 factor.
__________________
Don't forget the 'c'!

Don't PM me for technical support, please.
scharfis_brain is offline   Reply With Quote
Old 19th June 2006, 03:41   #177  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
But 119.88 (120) is a multiple of 23.976 (24), whereas 150 is not. Does that not make a difference when the filter tries to calculate which of the up-interpolated frames to discard?
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 19th June 2006, 12:11   #178  |  Link
Alain2
Registered User
 
Join Date: May 2005
Posts: 236
That's why sharfis is not talking of an exact convertion, he says you'll have remaining jerkiness. With the depan way as I understand from sharfis and the 3to5 script, you can only divide by decimal numbers the gap between 2 frames to introduce the interpolated ones. This is not compatible with 15 to 23.976 (or more precisely 24000/1001, and this is not an decimal number)

Have a look in the avisynth doc to what changefps does... You'll see why with the depan method "the more up-interpolation, the less the remaining jerkyness due to the 1000/1001 factor."
Alain2 is offline   Reply With Quote
Old 19th June 2006, 17:32   #179  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
I see. So, what would the modified fps3to5 with 1/10th steps to achieve 150fps be?
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax is offline   Reply With Quote
Old 21st June 2006, 21:05   #180  |  Link
Chainmax
Huh?
 
Chainmax's Avatar
 
Join Date: Sep 2003
Location: Uruguay
Posts: 3,103
Alain2? scharfis_brain?
__________________
Read Decomb's readmes and tutorials, the IVTC tutorial and the capture guide in order to learn about combing and how to deal with it.
Chainmax 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 23:57.


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