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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1 | Link |
|
Registered User
Join Date: Aug 2002
Location: Greece
Posts: 403
|
Please help with fade command
Hi.
I am a complete noob when it comes to scripting, so I need some help adding fade-in and fade-out effects on a video. The source video (f:\capture-huffy.avi) has commercials, so I used the trim command to edit them out. Now, what I want to achieve is create fade-out and fade-in effects in each of the 3 segments of the video... However, when I add the FadeIO2 command at the end of the script, only the last segment fades out. Is there an easy way to do what I want ? My script is this : Code:
# PLUGINS
LoadPlugin("c:\PixieDust\LoadPluginEx.dll")
LoadPlugin("E:\GORDIA~1\Msharpen.dll")
LoadPlugin("c:\PixieDust\dustv5.dll")
LoadPlugin("E:\GORDIA~1\mpeg2dec3.dll")
LoadPlugin("E:\GORDIA~1\undot.dll")
LoadPlugin("E:\GORDIA~1\decomb.dll")
LoadPlugin("E:\GORDIA~1\KernelDeInt.dll")
#LoadPlugin("E:\GORDIA~1\dgbob.dll")
#LoadPlugin("E:\GORDIA~1\Convolution3d.dll")
#LoadPlugin("E:\GORDIA~1\FluxSmooth.dll")
#LoadPlugin("E:\GORDIA~1\TomsMoComp.dll")
#LoadPlugin("E:\GORDIA~1\VSFilter.dll")
#LoadPlugin("E:\GORDIA~1\SimpleResize.dll")
Avisource("f:\capture-huffy.avi")
Trim(22,72735) ++ Trim(73473,146131) ++ Trim(146304,148783)
# DEINTERLACING (2)
KernelDeint(order=1)
#CROPPING
Crop(18,12,-14,-12)
#DENOISE
PixieDust(5)
#SHARPEN
MSharpen()
#RESIZING
LanczosResize(640,480)
Thanks in advance. P.S. : The avi file also has audio which I want to keep, so will adding 3 fade-ins and outs make the audio go off synch ? |
|
|
|
|
|
#2 | Link | |
|
Registered User
Join Date: Sep 2005
Location: 100011110010001000001 10000011111111000001
Posts: 221
|
Quote:
So you will have to try in your script the following instead of the above line (this will also keep audio in sync): Code:
ff = {enter the number of frames you want to fade}
audio = Trim(22,72735) ++ Trim(73473,146131) ++ Trim(146304,148783)
video = Trim(22,72735).FadeIO0(ff) ++ Trim(73473,146131).FadeIO0(ff) ++ Trim(146304,148783).FadeIO0(ff)
AudioDub(video, audio)
Code:
last + BlankClip(last).Trim(0, -2).AmplifydB(-30)
__________________
AVSLib, a free extension library for Avisynth. Current version: 1.1.0 (beta), 14/05/2007. [ Home page | Download page ] |
|
|
|
|
|
|
#4 | Link | |
|
AviSynth Enthusiast
Join Date: Jul 2002
Location: California, U.S.
Posts: 1,267
|
Quote:
Code:
last + BlankClip(last, length=2) |
|
|
|
|
![]() |
|
|