Nvv4l2h265enc error

Hello

I am trying to encode my camera stream to h264 and h265. While encoding to h264 has no problem, it failed to encode h265.

I am using tx2 with jp4.3

gst-launch-1.0 nvarguscamerasrc sensor-id=0 sensor-mode=0 ! ‘video/x-raw(memory:NVMM), width=1920, height=1080, format=(string)NV12, framerate=(fraction)20/1’ ! nvvidconv ! nvv4l2h264enc insert-sps-pps=true ! h264parse ! rtph264pay config-interval=1 ! udpsink host=127.0.0.1 port=5000

It works without a problem.


gst-launch-1.0 nvarguscamerasrc sensor-id=0 sensor-mode=0 ! ‘video/x-raw(memory:NVMM), width=5742, height=3648, format=(string)NV12, framerate=(fraction)20/1’ ! nvvidconv ! nvv4l2h265enc insert-sps-pps=true ! h265parse ! rtph265pay config-interval=1 ! udpsink host=127.0.0.1 port=5000

It gave these errors.

tvmrVideoEncoderBitsAvailable_MSENC: ucode ERROR = 144
NvVideoEncTransferOutputBufferToBlock: DoWork failed line# 667
NvVideoEnc: NvVideoEncTransferOutputBufferToBlock TransferBufferToBlock failed Line=678

Do you know what would be the problem?

Hi,
The resolution 5742x3648 is not supported. Suggest you downscale to 4K(3840x2160) and try again.

Hi Danell, thank you for your answer.

Yes, it works but actually, the reason why I trying h265 is that reaching that resolution. H264 already works well with 4K. Our camera supports 20 MP so that I want to maximize the stream resolution.

As I know h265 resolution limit is 7680 x 4320, so the encoder should have worked within that range?

Hi,
For 8K resolution, we support video decoding on Xavier. It is up to 4K on most Jetson platforms.