I’m trying to save the rendered frames to a video file. I thought I can create a NvMediaVideoSurface, lock it (NvMediaVideoSurfaceLock), copy a frame into it, and then unlock it and send to a NvMediaVideoEncoder. However when I call NvMediaVideoEncoderFeedFrame the program hangs. It hangs on first call, so it’s not because I didn’t pull the data out of the encoder.
Is this the right way to record a video?