View Full Version : how to link two framerate different capture.avi in avs
toysoldier
18th February 2004, 06:56
i capture two avi files,sampling rate is 30.00120 and 30.00070,i want
to edit in virtuldub ,but not work.
i wrote script tt.avs:
a=avisource("d:\a.00.avi")
ChangeFPS(a,30)
b=avisource("d:\b.00.avi")
ChangeFPS(b,30)
UnAlignedSplice(a,b)
#segmentedavisource("d:\b.avi")
AssumeTFF().SeparateFields()
bob()
LoadPlugin("C:\PLUGIN\NOMOSMOOTH.dll")
converttoyuy2()
NoMoSmooth(40,5,6,2,5,FALSE)
LoadPlugin("C:\PLUGIN\FLUXSMOOTH.dll")
FluxSmooth(10,10)
but in mmplayer window error message:
"splice:video framerate doesn't match"
i am a newbie learnning avisynth,
every grand old man please help me.
stickboy
18th February 2004, 07:44
Originally posted by toysoldier
a=avisource("d:\a.00.avi")ChangeFPS(a,30)You didn't do anything with the result of ChangeFPS. Filters don't mutate the original clip; they return a new clip.b=avisource("d:\b.00.avi")
ChangeFPS(b,30)You didn't do anything with this result of ChangeFPS either.UnAlignedSplice(a,b)You're combining a and b, which are still the unmodified results of the corresponding AVISource lines.
You need to do:a = AVISource("D:\a.00.avi")
a = ChangeFPS(a, 30)
b = AVISource("D:\b.00.avi")
b = ChangeFPS(b, 30)
a ++ b
toysoldier
18th February 2004, 08:22
but in avisyn\AvisynthPackagev2_00\Avisynth\docs\index.html
said :
<<.....
For clip type:
+ the same as the function UnalignedSplice
++ the same as the function AlignedSplice >>
there is no different "++" and "alignedsplice" ?
stickboy
18th February 2004, 21:36
Since your two files are from two separate captures (if they were from the same file, they would already have the same frame rate!), then you should use AlignedSplice (++), not UnalignedSplice (+).
toysoldier
19th February 2004, 07:30
i have tried them both,no one can solve my problem.
can you help me give another idea?
Richard Berg
19th February 2004, 07:49
What didn't work? Can you post your new script?
bb
19th February 2004, 11:06
I suggest to use AssumeFPS instead of ChangeFPS, because your framerates are very close to 30.
LoadPlugin("C:\PLUGIN\NOMOSMOOTH.dll")
LoadPlugin("C:\PLUGIN\FLUXSMOOTH.dll")
a=avisource("d:\a.00.avi").AssumeFPS(30)
b=avisource("d:\b.00.avi").AssumeFPS(30)
AlignedSplice(a,b)
#segmentedavisource("d:\b.avi")
AssumeTFF().SeparateFields()
bob()
converttoyuy2()
NoMoSmooth(40,5,6,2,5,FALSE)
FluxSmooth(10,10)
bb
toysoldier
19th February 2004, 12:29
AssumeFPS(clip, float fps, bool "sync_audio")
AssumeFPS(clip, int numerator[, int denominator], bool "sync_audio")ChangeFPS(clip, float fps)
ChangeFPS(clip, int numerator[, int denominator])
ConvertFPS(clip, float new_rate, int "zone", int "vbi")
i have try them all,but no one can work.
stickboy
19th February 2004, 12:38
Post your exact script.
If you get an error, give the exact message.
toysoldier
20th February 2004, 07:53
haha.........i am very glad to solve this problem.
i removed avisynth2.5 and reinstall avisynth1.0
now it's work normal:
loadplugin("c:\plugin\loadpluginex2.dll")
# nomosmooth.dll & fluxsmooth.dll should work in 2.5,
so i load "loadpluginex2.dll" in front to
make them work in 1.0
a=segmentedavisource("d:\a.avi")
#ChangeFPS(a,30)
# IN VER1.0 REMOVE CHANGEFPS(),the avs still work normal!
b=segmentedavisource("d:\b.avi")
#ChangeFPS(b,30)
AlignedSplice(a,b,a).AssumeTFF().SeparateFields()
bob()
LoadPlugin("C:\PLUGIN\NOMOSMOOTH.dll")
converttoyuy2()
NoMoSmooth(40,5,6,2,5,FALSE)
LoadPlugin("C:\PLUGIN\FLUXSMOOTH.dll")
FluxSmooth(10,10)
i wonder:is my avisynth2.5 setup wrong or the avisynth2.5 has a bug ?
i'm going to test more times.
stickboy
20th February 2004, 12:13
What was the exact script you tried in 2.5? What was the exact error message?
Based on your commented-out lines, the script you just posted would have had the same problems I mentioned before (i.e., not assigning the results of the two ChangeFPS calls to any variables).
toysoldier
20th February 2004, 13:03
in avisynth1.0,there is no need to changefps(),
i use :
a=segmentedavisource("d:\a.avi")
b=segmentedavisource("d:\b.avi")
a++b
play in mediaplayer ,it's work normal,
but in avisynth2.5 ,display error,even use assumefps()\changefps().
Leak
20th February 2004, 19:10
Originally posted by toysoldier
in avisynth1.0,there is no need to changefps(),
i use :
a=segmentedavisource("d:\a.avi")
b=segmentedavisource("d:\b.avi")
a++b
play in mediaplayer ,it's work normal,
but in avisynth2.5 ,display error,even use assumefps()\changefps().
Oh come on, at least *TRY* doing what we're talking about here:
a=SegmentedAVISource("d:\a.avi").AssumeFPS(30)
b=SegmentedAVISource("d:\b.avi").AssumeFPS(30)
a++b
or
a=SegmentedAVISource("d:\a.avi")
b=SegmentedAVISource("d:\b.avi")
a=a.AssumeFPS(30)
b=b.AssumeFPS(30)
a++b
If this doesn't work, then something's wrong with AviSynth. If it does work - what have you been doing all along? That's what about every other post here stated... so at least try understanding how it's supposed to work.
np: Plaid - Dial P
stickboy
20th February 2004, 22:15
Originally posted by toysoldier
but in avisynth2.5 ,display error,even use assumefps()\changefps().And when you tried AssumeFPS or ChangeFPS, what was your exact script and error message?
toysoldier
25th February 2004, 13:02
in avisynth2.5 error message in mediaplayer:
splice:video framerate doesn't match
i think assumefps()\changefps() actually action after reading the end of script program lines,so each them not working one by one program line,
it's right?
Wilbert
25th February 2004, 13:53
It's a bit difficult to help you if you don't post your scripts :)
Did you try:
a = AVISource("D:\a.00.avi")
a2 = ChangeFPS(a, 30)
b = AVISource("D:\b.00.avi")
b2 = ChangeFPS(b, 30)
a2 ++ b2
as stickboy said. Did it work?
i think assumefps()\changefps() actually action after reading the end of script program lines, so each them not working one by one program line, it's right?
No. Well, it depends on what you mean here.
The first ChangeFPS works on the clip "a", in the script above. Similar for the second ChangeFPS (on "b"). The result of those actions are returned, that is a2+b2.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.