Reino
23rd August 2008, 15:41
Hello,
Let me illustrate the situation:
http://www.degeelebosch.nl/reino/intro_problem.png
I have a lot of small VOB-files that I want to glue all together (with transitions). On top of that, I'd like to add a masked image for ± 8seconds. But not from the beginning, but rather after 1 or 2 seconds. Or in other words; I'd like to apply a specific framerange on this image.
Let me first show the avisynth-script I'm using (not the entire video yet, just some video clips for testing):
a1=MPEG2Source("C:\myvideo\shot1.d2v").Bob().SelectEven()
a2=NicAC3Source("C:\myvideo\shot1.ac3")
a=AudioDub(a1,a2).FadeIn(75)
b1=MPEG2Source("C:\myvideo\shot2.d2v").Bob().SelectEven()
b2=NicAC3Source("C:\myvideo\shot2.ac3")
b=AudioDub(b1,b2)
c1=MPEG2Source("C:\myvideo\shot3.d2v").Bob().SelectEven()
c2=NicAC3Source("C:\myvideo\shot3.ac3")
c=AudioDub(c1,c2).Trim(0, 198)
d1=MPEG2Source("C:\myvideo\shot4.d2v").Bob().SelectEven()
d2=NicAC3Source("C:\myvideo\shot4.ac3")
d=AudioDub(d1,d2).FadeOut(75)
vid=a.Dissolve(b.Dissolve(c.Dissolve(d,10),10),10)
vid=vid.Lanczos4Resize(720,400).LimitedSharpenFaster()
title = ImageReader("C:\myvideo\image.png", 0, 0, 1, true)
titleMask = ImageReader("C:\myvideo\image2.png", 0, 0, 1, true).Loop(200).FadeIO(75)
JDL_ApplyRange(75,275, "Overlay(vid, title, mode="multiply", mask=titleMask)")So in short: video and sound from every shot is synchronized by AudioDub. Then all shots are combined (with transitions) after which the video will be resized and sharpened. After that I'm trying to put a masked image (also with transitions) on top of the video from frame 75 to 275, but here's where it goes wrong!
When I'm using: JDL_ApplyRange(75,275, "Overlay(vid, title, mode="multiply", mask=titleMask)"), the error message I get is expected a , or ), so I remove mode="multiply" as I'm certain that's what's causing the error message, but then I get the following error message: Invalid arguments to function "JDL_ApplyRange".
Can anyone help me out here?
Let me illustrate the situation:
http://www.degeelebosch.nl/reino/intro_problem.png
I have a lot of small VOB-files that I want to glue all together (with transitions). On top of that, I'd like to add a masked image for ± 8seconds. But not from the beginning, but rather after 1 or 2 seconds. Or in other words; I'd like to apply a specific framerange on this image.
Let me first show the avisynth-script I'm using (not the entire video yet, just some video clips for testing):
a1=MPEG2Source("C:\myvideo\shot1.d2v").Bob().SelectEven()
a2=NicAC3Source("C:\myvideo\shot1.ac3")
a=AudioDub(a1,a2).FadeIn(75)
b1=MPEG2Source("C:\myvideo\shot2.d2v").Bob().SelectEven()
b2=NicAC3Source("C:\myvideo\shot2.ac3")
b=AudioDub(b1,b2)
c1=MPEG2Source("C:\myvideo\shot3.d2v").Bob().SelectEven()
c2=NicAC3Source("C:\myvideo\shot3.ac3")
c=AudioDub(c1,c2).Trim(0, 198)
d1=MPEG2Source("C:\myvideo\shot4.d2v").Bob().SelectEven()
d2=NicAC3Source("C:\myvideo\shot4.ac3")
d=AudioDub(d1,d2).FadeOut(75)
vid=a.Dissolve(b.Dissolve(c.Dissolve(d,10),10),10)
vid=vid.Lanczos4Resize(720,400).LimitedSharpenFaster()
title = ImageReader("C:\myvideo\image.png", 0, 0, 1, true)
titleMask = ImageReader("C:\myvideo\image2.png", 0, 0, 1, true).Loop(200).FadeIO(75)
JDL_ApplyRange(75,275, "Overlay(vid, title, mode="multiply", mask=titleMask)")So in short: video and sound from every shot is synchronized by AudioDub. Then all shots are combined (with transitions) after which the video will be resized and sharpened. After that I'm trying to put a masked image (also with transitions) on top of the video from frame 75 to 275, but here's where it goes wrong!
When I'm using: JDL_ApplyRange(75,275, "Overlay(vid, title, mode="multiply", mask=titleMask)"), the error message I get is expected a , or ), so I remove mode="multiply" as I'm certain that's what's causing the error message, but then I get the following error message: Invalid arguments to function "JDL_ApplyRange".
Can anyone help me out here?