Search Unity

Directly render to NV12 video format possible?

Discussion in 'General Graphics' started by ikriz, Oct 10, 2016.

  1. ikriz

    ikriz

    Joined:
    Dec 3, 2009
    Posts:
    98
    Hi,

    Currently unity renders cameras to BGRA format, I'd like to convert the rendered image to NV12 format (a video format). NV12 is an 8-bit Y plane followed by an interleaved U/V plane with 2x2 subsampling.

    Wondering if this would be possible in the command buffer stage? Or if someone knows a more faster route?

    Currently I convert the RGB to YUV then in plugin reorganize the planes to YUV4:4:4, if i could skip this completely and directly output NV12 this would be alot faster. Any ideas?
     
    Last edited: Oct 10, 2016