YUV422P16 output doesn't work correctly
An enhanced version of the original VirtualDub
Brought to you by:
shekhjkl
If output format is set to "4:2:2 planar YCbCr 16-bit" in "Output format to compressor" dialog in order to output uncompressed YUV422P16 (Y3[10][16]) clip, the actual output format becomes P216, not YUV422P16. Similar behavior exists for YUV444P16 (->v410) and YUV420P16 (->P016).
It is same in vcf script. e.g.:
VirtualDub.Open("input.avi"); VirtualDub.video.SetMode(3); VirtualDub.video.SetInputFormat(0); VirtualDub.video.SetOutputFormat(59); VirtualDub.video.SetCompression(); VirtualDub.SaveAVI("output-yuv422p16le.avi"); <- output is P216, not YUV422P16
I have first found this problem in build 44220. According to my manual bisect, build 43073 is OK and build 43602 is NG.
umezawatakeshi
Anonymous
Thanks, I checked code and the reason for this is I blacklisted certain uncompressed formats which "do not belong" to AVI. This started from cleaning up the way uncompressed rgb is stored in MOV, MKV. At the time I checked whether FFMPEG accepts each format for storing in AVI and disabled these:
XRGB64
Y16
YUV420_Planar16
YUV422_Planar16
YUV444_Planar16
all planar RGB
Also when exact match is not found the format is replaced by something similar.
Now I recall that you use it for testing. I can add an option to accept "non-standard" formats.
Thanks.
I understand as:
Is it right?
As far as VD2 supports those formats as output format to codecs, I want to still support them in UtVideo. If it is not very difficult to add an option to accept non-standard uncompressed formats, I hope the option, for generating test clips.
--
umezawatakeshi
Yes, all is correct.
build 44282:
You can find the option in Preferences->AVI
I have confirmed its behavior. Thanks.
--
umezawatakeshi