Why NVENC doesn't work if the height is greater than 1080?

232 Views Asked by At

'm using NVENC example provided with NVENC SDK. I'm manually filling YUV arrays (m_pYUV) that is passed to NVENC API. If the height is UP to 1080 everything works and I get valid video. But if I define height greater than 1080 it seems that compression still success but the video is not valid.

Why it doesn't work if the height is greater than 1080?

1

There are 1 best solutions below

1
On

I was just reading the NVENC reference manual. This is my first exposure to the API, but I went in search of functions which could query the capabilities of the underlying hardware facilities.

To that end, I found NvEncGetEncodeCaps(). This takes a pointer to a NV_ENC_CAPS_PARAM structure. You can use this to query for individual capability parameters. The parameters that would be interesting to study in this case might be NV_ENC_CAPS_WIDTH_MAX and NV_ENC_CAPS_HEIGHT_MAX.