LigH
13th August 2004, 11:45
The more I try to find out why some people get error -2 when trying to convert an AviSynth script with YV12 output, and others don't have any problem, the more I get confused: What can VirtualDub, what can VirtualDubMod do with YV12 input under which circumstances?
Let's compare the behaviour:
Case 1A) No YV12 capable VfW codec installed, "Input preview [F9]" and "Output preview [F10]" are enabled
- VD does not open the AVS file: "Couldn't locate decompressor for format 'YV12' (unknown)..."
- VDM opens the AVS file: "Couldn't locate decompressor for format 'YV12' (unknown)... Only 'Direct stream copy' is available for this video."; Direct Stream Copy works well and creates uncompressed YV12 video.
Case 1B) No YV12 capable VfW codec installed, "Input preview [F9]" and "Output preview [F10]" are disabled
- VD: same as 1A
- VDM: same as 1A (although the YV12 FAQ #4 states that VDM only needs a helper codec for previews!)
Case 2) Koepi's XviD 1.0.1 is installed
- VD loads the AVS file, Direct Stream Copy saves YV12, the saved XviD AVI stored "16 bit" as source bit depth (typical for YUY2)
- VDM loads the AVS file, Direct Stream Copy saves YV12, the saved XVID AVI stored "12 bit" as source bit depth (typical for YV12)
So far, so fine; now I saved with both VD and VDM each an XviD AVI file using Fast and Normal recompression mode. Then I compared the AVIs bytewise (fc /b)...
Would you expect that the results of "Normal recompression using VDub" and "Normal recompression using VDubMod" shall be quite identical, except for some header details? Probably "yes, because both get RGB24 sources"? -- It's not quite so, the files started to differ from offset 0x00048182 = 295298. Well, could be an incident, a slightly different behaviour, ...
Would you expect that the results of "Fast recompression using VDub" and "Fast recompression using VDubMod" shall be quite identical, except for some header details? Probably "no, because VDub transfers YUY2 and VDubMod transfers YV12 sources"? -- It's not quite so, the files started to differ from offset 0x00048382 = 295810. Identical output almost up to the same point, but with different source video formats; a co-incident, due to perfectly identical image reconstruction inside the XviD codec?
Another member in the german doom9/Gleitz forum has two sample videos available (http://forum.gleitz.info/showpost.php?p=120208&postcount=33) which are absolutely identical (except for the headers) - but much shorter than my examples: I tested 1000 frames, his has only 25 frames.
I just wonder: Is it accident or intent?
Let's compare the behaviour:
Case 1A) No YV12 capable VfW codec installed, "Input preview [F9]" and "Output preview [F10]" are enabled
- VD does not open the AVS file: "Couldn't locate decompressor for format 'YV12' (unknown)..."
- VDM opens the AVS file: "Couldn't locate decompressor for format 'YV12' (unknown)... Only 'Direct stream copy' is available for this video."; Direct Stream Copy works well and creates uncompressed YV12 video.
Case 1B) No YV12 capable VfW codec installed, "Input preview [F9]" and "Output preview [F10]" are disabled
- VD: same as 1A
- VDM: same as 1A (although the YV12 FAQ #4 states that VDM only needs a helper codec for previews!)
Case 2) Koepi's XviD 1.0.1 is installed
- VD loads the AVS file, Direct Stream Copy saves YV12, the saved XviD AVI stored "16 bit" as source bit depth (typical for YUY2)
- VDM loads the AVS file, Direct Stream Copy saves YV12, the saved XVID AVI stored "12 bit" as source bit depth (typical for YV12)
So far, so fine; now I saved with both VD and VDM each an XviD AVI file using Fast and Normal recompression mode. Then I compared the AVIs bytewise (fc /b)...
Would you expect that the results of "Normal recompression using VDub" and "Normal recompression using VDubMod" shall be quite identical, except for some header details? Probably "yes, because both get RGB24 sources"? -- It's not quite so, the files started to differ from offset 0x00048182 = 295298. Well, could be an incident, a slightly different behaviour, ...
Would you expect that the results of "Fast recompression using VDub" and "Fast recompression using VDubMod" shall be quite identical, except for some header details? Probably "no, because VDub transfers YUY2 and VDubMod transfers YV12 sources"? -- It's not quite so, the files started to differ from offset 0x00048382 = 295810. Identical output almost up to the same point, but with different source video formats; a co-incident, due to perfectly identical image reconstruction inside the XviD codec?
Another member in the german doom9/Gleitz forum has two sample videos available (http://forum.gleitz.info/showpost.php?p=120208&postcount=33) which are absolutely identical (except for the headers) - but much shorter than my examples: I tested 1000 frames, his has only 25 frames.
I just wonder: Is it accident or intent?