PDA

View Full Version : Aligning problem with AviSynth 2.5


gou.d
10th February 2003, 17:48
Hi,

I'm a newbee to AviSynth 2.5. I'm trying to edit a movie, aligning three parts together from three different sources (2 from MPEG2 and one from an avi compressed with Huffyuv). VDMod gives me the error message: "Video formats don't match". The three chunks are filtered as follows:

orig:
mpeg2source("aotc.d2v",idct=1)
Crop(2,72,718,434)
LanczosResize(640,272)

senate_iris:
AVISource("1senate_iris.avi")
ConvertToYV12()
Crop(2,72,718,434)
LanczosResize(640,272)
Sharpen(0.2)

senate:
mpeg2source("1senate\1senate.d2v",idct=1)
Crop(2,74,718,428)
LanczosResize(640,272)
Levels(0,1.11,255,7,208)
Sharpen(0.4)
Tweak(sat=1.28)
ConvertToRGB32()
RGBAdjust(1,1,1.12,1)
ConvertToYV12()

Alligning the 2nd and 3rd chunk is OK. If I erase the last move from the 3rd chunk's filterchain (ConvertToRGB, RGBAdjust ...), I can allign it with the 1st chunk. Now I'm pretty confused, tryed to find similar issues in the forum but... (maybe my lack of english).

If anyone has an idea, please help. Thnx

sh0dan
10th February 2003, 18:32
Why not combine them in AviSynth:

mpeg2source("aotc.d2v",idct=1)
Crop(2,72,718,434)
LanczosResize(640,272)
vid1 = ConvertToYV12()

AVISource("1senate_iris.avi")
ConvertToYV12()
Crop(2,72,718,434)
LanczosResize(640,272)
Sharpen(0.2)
vid2 = ConvertToYV12()

mpeg2source("1senate\1senate.d2v",idct=1)
Crop(2,74,718,428)
LanczosResize(640,272)
Levels(0,1.11,255,7,208)
Sharpen(0.4)
Tweak(sat=1.28)
ConvertToRGB32()
RGBAdjust(1,1,1.12,1)
vid3 = ConvertToYV12()

return vid1+vid2+vid3

gou.d
10th February 2003, 20:37
Sorry, I didn't inserted the whole script. I did combined them, then I got that message. It seems like ConvertToYV12 doesn't do it's job.

sh0dan
10th February 2003, 22:07
Hmmm... rather tricky business - somehow the pixel type isn't the same. Could be that MPEG2DEC3 actually sets the pixel type as I420. This should be handled by splice, but isn't!

For the time being, convert to YUY2 before splicing!

Thanks for the report!

gou.d
11th February 2003, 08:21
Thank you for your reply.

bye

gou.d
18th March 2003, 08:20
@sh0dan: Yesterday I downloaded the latest AviSynth 2.51 from SourceForge, and now the problem is solved. Me salute you, decoding is now FAST!

Thank you!