Zer0Her0
20th September 2007, 17:37
Hey everyone,
I am trying to combine 3 videos clips, the leader and trailer lack audio, the content has audio and I'm getting a variety of errors, I pretty much not sure how to proceed. Here is my butchered script(hey I'm a media artist not a programmer):
# Created by AVSEdit
src = DirectShowSource("c:\lgmp\capture\test2.avi")
logo = ImageReader("c:\lgmp\cent_logo.png" , 0, 1, 120, use_DevIL=true, pixel_type="RGB32")
logo = logo.AssumeFPS(src.Framerate()).Loop(20).FadeIn(15)
# punch out logo and prepare it for overlay
maskit = logo.ColorKeyMask($000000,60)
# overlay the logo onto the video
content = Overlay(src, logo, mask=ShowAlpha(maskit))
leader = DirectShowSource("c:\lgmp\leader_noaudio.avi")
#leaderaudio = tone(720, 1, 44100, "silence", 0.0)
trailer = DirectShowSource("c:\lgmp\trailer_noaudio.avi")
#traileraudio = tone(1200, 1, 44100, "silence", 0.0)
#leadertotal = AudioDub(leader, leaderaudio)
#trailertotal = AudioDub(trailer, traileraudio)
leader + content + trailer
# resize the dimensions of the video frame to 320x180
LanczosResize(320, 180)
Obviously right now it gives the obvious "one clip has audio the other doesn't, this is not allowed" error. But if i uncomment the AudioDub sections, I then get "video formats don't match" error
Any insight from people with more knowledge would be great.
I am trying to combine 3 videos clips, the leader and trailer lack audio, the content has audio and I'm getting a variety of errors, I pretty much not sure how to proceed. Here is my butchered script(hey I'm a media artist not a programmer):
# Created by AVSEdit
src = DirectShowSource("c:\lgmp\capture\test2.avi")
logo = ImageReader("c:\lgmp\cent_logo.png" , 0, 1, 120, use_DevIL=true, pixel_type="RGB32")
logo = logo.AssumeFPS(src.Framerate()).Loop(20).FadeIn(15)
# punch out logo and prepare it for overlay
maskit = logo.ColorKeyMask($000000,60)
# overlay the logo onto the video
content = Overlay(src, logo, mask=ShowAlpha(maskit))
leader = DirectShowSource("c:\lgmp\leader_noaudio.avi")
#leaderaudio = tone(720, 1, 44100, "silence", 0.0)
trailer = DirectShowSource("c:\lgmp\trailer_noaudio.avi")
#traileraudio = tone(1200, 1, 44100, "silence", 0.0)
#leadertotal = AudioDub(leader, leaderaudio)
#trailertotal = AudioDub(trailer, traileraudio)
leader + content + trailer
# resize the dimensions of the video frame to 320x180
LanczosResize(320, 180)
Obviously right now it gives the obvious "one clip has audio the other doesn't, this is not allowed" error. But if i uncomment the AudioDub sections, I then get "video formats don't match" error
Any insight from people with more knowledge would be great.