Search Unity

  1. New Unity Live Help updates. Check them out here!

    Dismiss Notice

Directly render to NV12 video format possible?

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

  1. ikriz


    Dec 3, 2009

    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