Img_cap outputs black raw file

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version

Target Operating System

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)

SDK Manager Version

Host Machine Version
native Ubuntu 18.04

In Nvmedia img_cap application, outputs black .raw file. We are using sekonix camera (SF3324) + AGX. Command tried shared below.
./nvmimg_cap -v 2 -cf p3479_t194.conf -f out -n 2

Please find the attached output raw file converted to jpeg image.

Could you please share your recommendation to solve the issue. Can we also get yuv captured file with the same application?

Thanks in advance.

Dear @sandiprmlc0,
Could you confirm if it is E3550 board? If so, please check using

Yes it is E3550 board. I will check that link and get back to you.

Thank you, we are able to view proper camera raw12 output in our setup.

Does the img_cap application also support output format in yuv format, which could be used for video encode? Though there is “yv16” in the list of valid values in config “ddpx-a.conf” for “surface_format”, captureInit fails, when we use “yv16”. If necessary, we could create a separate ticket for this issue.

Dear @sandiprmlc0,
I just want to know if you are using NVIDIA DriveWorks in your application development. If so, we have recording tool using which you can generate yuv output files easily by keeping output-format in JSON file as yuv. Please see DriveWorks SDK Reference: Basic Recording Tool.
Please let us know if you are using only NvMedia APIs in development.

Dear @SivaRamaKrishnaNV

Thanks for your inputs.
Currently we are using only NvMedia APIs in development. We need to modify or tune parameters in encoding and also change encoding format. We feel NvMedia vid_enc offers better flexibility compared to recording tool. (Please correct me if I am wrong in my assumption). If output surface of img_cap is compatible with input surface of vid_enc, we don’t need to do additional format conversion(raw12 to yuv).

@SivaRamaKrishnaNV ,

Can img_2d in nvMedia be used to do format conversion from RAW12 to YUV12 or IYUV?