Menu

#358 NV12 output is incorrect when width%4 != 0

open
nobody
None
bug
2020-09-16
2020-09-12
Anonymous
No

For example, when width = 382 and height = 256,

  • BITMAPINFOHEADER.biImage in AVI header = 146688 (0x23d00, 382256(6/4))
  • size of each plane data ("00dc" chunk) = 147456 (0x24000, 384256(6/4))

Those two values don't match.

In this case, the right edge of each plane data is padded by zero.
i.e. an all gray clip consists of repetion of "382 times of 0x80 followed by twice of 0x00".

Note: I'm sorry that I'm not sure which size is correct.

--
umezawatakeshi

Discussion

  • Chris Wanger

    Chris Wanger - 2020-09-12

    See:

    Unfortunatelly, there is no real NV12 input or output in Virtualdub2 :(((((
    VD2 can display the live NV12 video after VD2 transforms it into I420 format.

     

    Last edit: Chris Wanger 2020-09-12
  • Anonymous

    Anonymous - 2020-09-13

    I didn't talk about displaying.

    --
    umezawatakeshi

     
  • Anonymous

    Anonymous - 2020-09-13

    I found a mistake in the first report:

    • (wrong) each plane data
    • (correct) each frame data

    --
    umezawatakeshi

     
  • Anonymous

    Anonymous - 2020-09-16

    Additional information:
    on playback of the output NV12 AVI file,
    - Windows Media Player on Windows 10 shows slanted video.
    - MPC-BE 1.5.5 shows correct (rectanglar) video.

    --
    umezawatakeshi

     

Anonymous
Anonymous

Add attachments
Cancel