View Full Version : Turns some frames black
luders
28th February 2003, 02:01
So all I want to do is turn some frames black on the end of this clip. I dont want to affect the audio in the black stage.
It just hasn't been working and I dont know why.
v=mpeg2source("dare.d2v")
a=wavsource("dare MPA T01 DELAY 0ms.wav")
f=audiodub(v,a)
Blackness(f,[start frame of black])
FadeOut(f,60)
FieldDeinterlace()
LanczosResize(640,480)
Crop(0,60,0,-60)
ResampleAudio(48000)
Trim(4375,0)
Trim(0,86327) ++ Trim(86344,0)
LanczosResize(720,480)
Letterbox(63,61)
Now this may be a mute point if blackness affects the audio which I believe it does, right? Is there some other way? I just want to turn the last 12 frames black but audio intact. Any suggestions.
sh0dan
28th February 2003, 09:39
Your script is very crypic and you should try to simplify it.
"Blankclip" is ignored, because the result from it is never used. (It is overruled by the result from "FadeOut(f,60)").
If you want the audio to be maintained throughout the black period, you have to wait with the audiodub until you have added the blackness.
Something like:
# process video
mpeg2source("dare.d2v")
FieldDeinterlace()
LanczosResize(640,480)
Crop(0,60,0,-60)
FadeOut(60)
LanczosResize(720,480)
Letterbox(63,61)
video = last
# create blank
blank = Blackness(video,length=12)
#load audio
audio = wavsource("dare MPA T01 DELAY 0ms.wav").ResampleAudio(48000)
video + blank
audiodub(video,audio)
Trim(4375,0)
Trim(0,86327) ++ Trim(86344,0)
luders
28th February 2003, 10:11
Yeah I really came off as an idiot there. I tried a lot of stuff and was just thinking there would be an easier way. I ended up getting it working already and it was pretty much like you said.
See the fade out did overlap the black but the frames still needed to be black so that it didnt show through dim. Thanks a lot for the reply. -Aaron
clip=mpeg2source("dare.d2v")
clip=clip.Trim(0,181425)
bclip=BlankClip(clip,163)
v=clip+bclip
a=wavsource("dare MPA T01 DELAY 0ms.wav")
f=audiodub(v,a)
FadeOut(f,230)
FieldDeinterlace()
LanczosResize(640,480)
Crop(0,60,0,-60)
ResampleAudio(48000)
Trim(4375,0)
Trim(0,86327) ++ Trim(86344,0)
LanczosResize(720,480)
Letterbox(63,61)
luders
28th February 2003, 19:38
Now to implement some rotation...
#Add/Fix Video End
clip=mpeg2source("dare.d2v")
clip=clip.Trim(0,181425)
bclip=BlankClip(clip,163)
v=clip+bclip
#Add/Mux Audio
a=wavsource("dare MPA T01 DELAY 0ms.wav")
f=audiodub(v,a)
#AV Processing
FieldDeinterlace()
FadeOut(f,230)
Trim(4375,0)
Trim(0,86327) ++ Trim(86344,0)
#16:9 Aspect Ratio
LanczosResize(640,480)
Crop(0,60,0,-60)
#DVD Compliant
LanczosResize(720,480)
Letterbox(63,61)
ResampleAudio(48000)
#Implement Rotation
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.