Nvv4l2h265enc lossless bug

I want to encode a stream (1280*800) with gstreamer lossless mode.

[encode_multi_app_node-1] NVMAP_IOC_READ:1077431815 failed [22]
[encode_multi_app_node-1] [1077431815]: Offset 2465792 SrcStride 7570 pDst 0xffff71754df8 DstStride 7570 Count 1
[encode_multi_app_node-1] NVMAP_IOC_WRITE:1077431814 failed [22]
[encode_multi_app_node-1] 0:00:01.905735208 151397 0xaaaaddcd0180 WARN           v4l2allocator gstv4l2allocator.c:1521:gst_v4l2_allocator_dqbuf:<nvv4l2h265enc0:pool:src:allocator> v4l2 provided buffer that is too big for the memory it was writing into.  v4l2 claims 2473362 bytes used but memory is only 1536000B.  This is probably a driver bug.
[encode_multi_app_node-1] tegraH265EncodeGetStatus: Allocated bitstream size is less than size required to encode a frame

2465792 + 7570 = 2473362

Hi,
It looks like the resolution is not supported. Please share the steps to replicate the issue. We can check and confirm it.

pipeline:

[encode_multi_app_node-1] 0:00:00.052631092 151397 0xaaaadd623000 INFO            GST_PIPELINE gstparse.c:344:gst_parse_launch_full: parsing pipeline description 'appsrc name=input caps="video/x-raw, width=1280, height=800, format=(string)NV24, framerate=(fraction)10/1" ! nvvidconv ! video/x-raw(memory:NVMM), format=(string)NV24 ! queue ! nvv4l2h265enc insert-sps-pps=true enable-lossless=true idrinterval=20 iframeinterval=10 profile=3 maxperf-enable=true output-io-mode=dmabuf-import capture-io-mode=2 ! queue ! appsink name=output'

Hi, can you reproduce my problem?

Hi,
We try this with 1280x800 on r36.3 and don’t hit the issue:
Can not decode H265 lossless - #3 by DaneLLL

The function looks good. Please give it a try.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.