2880x1860 camera NvBufferTransform failed

nvidia agx board
jetson version: R32 (release), REVISION: 4.3, GCID: 21589087, BOARD: t186ref, EABI: aarch64, DATE: Fri Jun 26 04:34:27 UTC 2020

dis.sh display ok
gst-launch-1.0 -ev v4l2src device=/dev/video$1 ! ‘video/x-raw, format=UYVY, framerate=30/1,width=2880,height=1860’ ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420,framerate=30/1,width=1920,height=1080 ’ ! nvoverlaysink sync=false async=false

dis1.sh display failed
gst-launch-1.0 -ev nvv4l2camerasrc device=/dev/video$1 ! ‘video/x-raw, format=UYVY, framerate=30/1,width=2880,height=1860’ ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420,framerate=30/1,width=1920,height=1080 ’ ! nvoverlaysink sync=false async=false

and run the sample of “jetson_multimedia_api\samples\12_camera_v4l2_cuda”,The screen display, like dis1.sh, is not correct; if set “[function set_defaults line 156] ctx->capture_dmabuf = false;” the demo display ok;
Save the data of NvBufferTransform before and after the same frame, uyvy and i420. Check with 7yuv tool, uyvy data is correct, i420 data is wrong

camera.UYVY (10.2 MB)
out.render (7.7 MB)

Hi,
For capturing frame data into NvBuffer, you would need to consider data alignment of NvBuffer. Please refer to the similar topic:
YUV camera(5.4M) preview issue - #19 by DaneLLL

Please check if you can adjust the camera source to fit data alignment. If the source is not adjustable, please use v4l2src and link to nvvidconv to copy frame data into NvBuffer.

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