Log in

View Full Version : how do you combine two different streams?


poopitypoop
3rd March 2009, 10:21
I have a d2v file which references a standard DVD movie, and a huffy AVI of a title screen I made in Premiere. I want to splice them together using avisynth. so far I have the following script(stripped down to protect the innocent)

-----------------------------------
MPEG2Source("R:\mainmovie.d2v")

mainvideo = LanczosResize (720,480)

TS = aviSource("Titlescreen.avi")

video1 = trim(mainvideo,0,9557).assumefps(23.976)
video2 = trim(TS,1,0).assumefps(23.976)
video3 = trim(mainvideo,9776,0).assumefps(23.976)

unalignedsplice(video1 , video2, video3)
----------------------------
This script does not work, however you can see that I am simply trying to splice the title screen into the movie starting at frame 9557 until the end of the .avi, the splice the remaining movie in starting at frame 9776.

The error I get is Splice: Video Formats don't match.

So therefore my question: How do I splice in two different video formats? (I've also had the need to do the same thing but using a dga)

stickboy
3rd March 2009, 10:38
You need to convert your titlescreen clip to match the format of the movie.

Most likely it's not YV12. If so, you should use:
TS = AVISource("Titlescreen.avi").ConvertToYV12()

If that's not the problem, then make two scripts:
MPEG2Source("R:\mainmovie.d2v").Info()andAVISource("Titlescreen.avi").Info()Open each of them, and make sure that the reported video properties match.

Alex_ander
3rd March 2009, 11:02
Also try to kill audio in video 2.

poopitypoop
3rd March 2009, 11:13
yes it was not YV12. I converted it to Lagarith, and it spliced fine, even without the AssumeFPS.

Thanks!