Menu

#310 YUV422P16 output doesn't work correctly

closed
nobody
None
bug
2020-03-21
2020-03-05
Anonymous
No

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

Discussion

  • Anton Shekhovtsov

    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.

     
  • Anonymous

    Anonymous - 2020-03-09

    Thanks.

    I understand as:

    Because the above mentioned uncompressed formats are non-standard (= not widely used) in AVI files, the support of those formats as
    - uncompressed output formats (to AVI) is dropped and replaced to similar standard uncomressed formats.
    - output/input formats to/from codecs is not dropped.
    - uncompressed input formats (from AVI) is not dropped either.
    This behavior change is intended, i.e. this is to avoid unintentionally output non-standard uncompressed format AVI files.

    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

     
    • Anton Shekhovtsov

      Yes, all is correct.

       
  • Anton Shekhovtsov

    build 44282:
    You can find the option in Preferences->AVI

     
  • Anonymous

    Anonymous - 2020-03-21

    I have confirmed its behavior. Thanks.

    --
    umezawatakeshi

     
  • Anton Shekhovtsov

    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel