PDA

View Full Version : Append d2v + AVI huffyuv + d2v


Akatsuker
12th May 2008, 20:16
DGDecode_mpeg2source("E:\mortus\mainDVDvideo.d2v",info=3)
ColorMatrix(hints=true)
crop( 0, 2, 0, 0)
lanczosresize(720,400)

newvideo = directshowsource("E:\mortus\midvideo.avi")

a = trim(0,80203)
b = trim(80338,81023)
return a + newvideo + b

The "newvideo" is an AVI huffyuv, no audio, five seconds length/133 frames/23.976fps; All I want to do is to change the frames from the d2v for the AVI ones.

When I try to do that, my AVSP returns an error:

"SPLICE: Video formats don't match"



What am I supposed to do? Can you help me?

Blue_MiSfit
12th May 2008, 20:18
Double check your pixel type (YV12), and the frame size.

~MiSfit

Akatsuker
12th May 2008, 20:26
Blue_MiSfit, thank you. It works now.

Changed from script:



a = trim(0,80203).changefps(23.976)
b = trim(80338,81023).changefps(23.976)
return a + typefinal.converttoYV12.changefps(23.976) + b

Blue_MiSfit
12th May 2008, 20:58
;)

It happens to the best of us.

I'd be cautious about blindly using ChangeFPS. It will add / remove frames, and you may end up blowing audio sync. What format is your source? If it's not 24p, then you either have interlaced or telecined video - neither of which should be handled with a simple ChangeFPS.

Also, AVISource usually works better than DirectShowSource, assuming you have a VFW decoder installed for whatever video format lives in your AVI.

So, it seems like you're taking a D2V, and replacing a few frames with video from a HuffYUV file. Did you process these frames in another application or something? Is it something else entirely?

More info pls :)

~MiSfit