neily
15th April 2004, 12:20
Hi,
Whilst trying to do some encoding analyses I came across a problem whereby if I convert an original HUFFYUV compressed file from YUY2 to YV12 and try to do a subtract from an original>MPEG2>d2v "Subtract" reports that the files are of incompatible formats, yet "Info" reports both as YV12, same dimensions etc. i.e.
vid00=AVISource("T:\test.avi").ConvertToYV12
vid01=mpeg2source("S:\test.d2v")
return Subtract(vid00,vid01)
If I convert the mpeg2source to RGB24 then to YV12, there is no problem.
vid00=AVISource("T:\test.avi").ConvertToYV12
vid01=mpeg2source("S:\test.d2v").ConvertToRGB24.ConvertToYV12
return Subtract(vid00,vid01)
Interestingly, using SSIM threw no errors, though the SSIM value was higher when adding the RGB24 and YV12 conversions.
Also trying the following also produced an incompatible format error:
vid00=mpeg2source("S:\test.d2v")
vid01=mpeg2source("S:\test.d2v").ConvertToRGB24.ConvertToYV12
return Subtract(vid00,vid01)
as does
vid00=mpeg2source("S:\test.d2v").ConvertToYV12
vid01=mpeg2source("S:\test.d2v").ConvertToRGB24.ConvertToYV12
return Subtract(vid00,vid01)
Is the YV12 colour space produced by MPEG2DEC3 not the same as that internal to AVISynth? Does AVISynth not go through a colourspace conversion if it thinks that a clip is already in the target format?
I am using AVISynth 2.54, and have tried MPEG2DEC3.dll v1.0.7.0 and MPEG2DEC3dg.dll v1.0.1.0.
Whilst trying to do some encoding analyses I came across a problem whereby if I convert an original HUFFYUV compressed file from YUY2 to YV12 and try to do a subtract from an original>MPEG2>d2v "Subtract" reports that the files are of incompatible formats, yet "Info" reports both as YV12, same dimensions etc. i.e.
vid00=AVISource("T:\test.avi").ConvertToYV12
vid01=mpeg2source("S:\test.d2v")
return Subtract(vid00,vid01)
If I convert the mpeg2source to RGB24 then to YV12, there is no problem.
vid00=AVISource("T:\test.avi").ConvertToYV12
vid01=mpeg2source("S:\test.d2v").ConvertToRGB24.ConvertToYV12
return Subtract(vid00,vid01)
Interestingly, using SSIM threw no errors, though the SSIM value was higher when adding the RGB24 and YV12 conversions.
Also trying the following also produced an incompatible format error:
vid00=mpeg2source("S:\test.d2v")
vid01=mpeg2source("S:\test.d2v").ConvertToRGB24.ConvertToYV12
return Subtract(vid00,vid01)
as does
vid00=mpeg2source("S:\test.d2v").ConvertToYV12
vid01=mpeg2source("S:\test.d2v").ConvertToRGB24.ConvertToYV12
return Subtract(vid00,vid01)
Is the YV12 colour space produced by MPEG2DEC3 not the same as that internal to AVISynth? Does AVISynth not go through a colourspace conversion if it thinks that a clip is already in the target format?
I am using AVISynth 2.54, and have tried MPEG2DEC3.dll v1.0.7.0 and MPEG2DEC3dg.dll v1.0.1.0.