How can I set odd resolution in nvcamerasrc?

Hi,

We have succeeded in obtaining a camera raw image of the CSI-2 signal through v4l2-ctl.
(Actual resolution of camera 1280X960 / RAW Resolution used for frame capture 1312X977)

We referenced the forum article(https://devtalk.nvidia.com/default/topic/1028857/jetson-tx2/custom-driver-for-jetson-tx2-bad-preview-image/)

but, an error occurs when executing the following command.
gst-launch-1.0 nvcamerasrc --device=/dev/video0 ! ‘video/x-raw(memory:NVMM),width=1312, height=977, framerate=30/1, format=NV12’ ! nvvidconv ! xvimagesink

The problem is as follows.

  1. NVCAMERA does not handle odd resolution.
    The resolution we are going to implement with the IMX224 is 1312X977.
    The error message is as follows.

NvPclSettingsApply: Reading PCL settings
SCF: Error BadParameter: unsupported YUV format (odd w,h?) (in src/api/Session.cpp, function registerBuffer(), line 560)
SCF: Error BadParameter: Both IBuffer and IOutputStream are NULL! (in src/api/Session.cpp, function capture(), line 717)

  1. We changed the value of 977 to 976 because gstreamer was not executed at 1312X977.
    But, If we change the value of kernel and DTS to 976, we get the following error.

PXL_SOF syncpt timeout! err = -11

  1. If kernel and DTB are set to 1312X977 resolution and Gstreamer resolution is changed, the following error occurs.

NvPclSettingsApply: Reading PCL settings
SCF: Error BadParameter: (in src/components/ClipHelper.cpp, function setInSize(), line 73)
SCF: Error BadParameter: (propagating from src/components/GraphHelper.cpp, function setupClipHelper(), line 137)
SCF: Error BadParameter: (propagating from src/components/GraphHelper.cpp, function initialize(), line 121)
SCF: Error BadParameter: (propagating from src/components/CaptureSetupEngineImpl.cpp, function genInstructionsBayerSource(), line 815)
SCF: Error BadParameter: (propagating from src/components/CaptureSetupEngineImpl.cpp, function doGetInstructions(), line 1805)
SCF: Error BadParameter: (propagating from src/components/CaptureSetupEngine.cpp, function getInstructionList(), line 250)
SCF: Error BadParameter: (propagating from src/components/CaptureSetupEngine.cpp, function setupCC(), line 174)
SCF: Error BadParameter: (propagating from src/api/Session.cpp, function capture(), line 811)
disposing CC 0 Session 0

I want to know how to solve this problem.
thanks.

Sorry to tell ISP pipeline not support odd resolution. Please modify the sensor REG to output even at your sensor driver.

we changed sensor REG and solved the problem

thank you for your help!!