View Full Version : compare function incompatible clips


Niņo
17th March 2003, 11:53
That was my script:

#
# SOURCE
orig=mpeg2source("E:\VIDEO_TS\TD.d2v").trim(0,9).crop(0,76,720,426).BicubicResize(640,272,0,0.75)
#
encoded1=avisource("C:\Avs\test.avi").trim(0,9).BicubicResize(640,272,0,0.75)
#
video2=compare(encoded1,orig)
#
stackvertical(orig,video2)
#

That give me "incompatible clips"
If I put this script in avscompare everything works.

Thanks.

sh0dan
17th March 2003, 13:18
Convert both sources to YUY2. (By adding .ConvertToYUY2())

Niņo
17th March 2003, 14:53
#
orig=mpeg2source("E:\VIDEO_TS\TD.d2v").ConvertToYUY2()
#
encoded1=avisource("C:\Avs\test.avi").ConvertToYUY2()
#
video2=compare(encoded1,orig)
#
stackvertical(orig,video2)
#

Still returns error "incompatible clips".
I'm using avs 2.5.1

Thanks.

sh0dan
17th March 2003, 18:10
could you post the output of:
---
mpeg2source("E:\VIDEO_TS\TD.d2v").converttoyuy2().info()
---
and
---
avisource("C:\Avs\test.avi").ConvertToYUY2().info()
---

Niņo
17th March 2003, 19:25
_mpeg2source("E:\VIDEO_TS\TD.d2v").converttoyuy2().info()


Frame: 0
ColorSpace: YUY2
Widht: 720 pixels, Height: 576 pixels.
Frames per second: 25.000
FieldBased Video: NO
Parity: Parity unknown
Video Pitch: 1440 bytes.
Has Audio: NO
Audio Channels: 0
Sample type: NONE
Samples Per Seconds: 0


_avisource("C:\Avs\test.avi").ConvertToYUY2().info()

Frame: 0
ColorSpace: YUY2
Widht: 640 pixels, Height: 272 pixels.
Frames per second: 25.000
FieldBased Video: NO
Parity: Parity unknown
Video Pitch: 1280 bytes.
Has Audio: NO
Audio Channels: 0
Sample type: NONE
Samples Per Seconds: 0


If I compare two avisource or if I use AvsCompare 0.2.5 it works fine.
Thanks.

sh0dan
17th March 2003, 23:32
There you have it - the image sizes are different. Compare needs the sizes to be the same.

AVS-compare is much different - it loads several AVS files.

Niņo
18th March 2003, 04:07
You're right, in the first script I've forgotten to convert to yuy2, in the second one I've forgotten the resize.
Finally:
#
clip1=mpeg2source("E:\VIDEO_TS\TD.d2v").crop(2,72,716,432).lanczosresize(640,272).ConvertToYUY2()
#
clip2=avisource("C:\Avs\test.avi").lanczosresize(640,272).ConvertToYUY2()
#
Compare(clip1,clip2,"UV")
#
stackvertical(clip1,clip2)
#

works :)

Thank's a lot!
Byez

cipher
21st May 2003, 01:29
Thanks, sh0dan and nino! My same question now has been solved!