'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?
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 aNV_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 beNV_ENC_CAPS_WIDTH_MAX
andNV_ENC_CAPS_HEIGHT_MAX
.