Log in

View Full Version : Trimming and joining


Toon_Junkie
11th April 2002, 01:17
Hi,

Hopefully a quick question. Just ran into a situation where I would like to "splice" together two different video and audio streams. Came about because of a ripping issue.

Basically I got most of the stuff in one... ends abrubtly, and the rest in another. I have created 2 d2v files for them and was wondering if there is a way to trim and then join the pieces together for feeding into CCE?

I would imagine something like this... (not correct... but that's why I'm asking)

LoadPlugin("c:\winnt\system32\MPEG2DEC.DLL")
video=mpeg2source("D:\RIP1\gz.d2v")
audio=AVISource("D:\RIP1\audio.wav")
clip1=AudioDub(video, audio)
trim(0,5000)
video2=mpeg2source("D:\RIP1\gz.d2v")
audio2=AVISource("D:\RIP1\audio.wav")
clip2=AudioDub(video2, audio2)
trim(30,0)
unalignedsplice(clip1,clip2)

Does that have any merit??

thanks

dividee
11th April 2002, 02:06
You said you created 2 d2v files (and I guess 2 wav too), but in your script they are the same. I guess this is a typo.

The "trim"s doesn't refer to any clip!, use
clip1=trim(clip1,0,5000)
and
clip2=trim(clip2,30,0)
instead.

Also, you should probably use "alignedsplice" instead of "unalignedspice" to ensure audio sync.

Toon_Junkie
13th April 2002, 12:36
Hey there,

thank you. Yes I do have 2 wav files and that was a typo.

I will give it a try and let you all know.

Thanks again