How to record a video file using usb camera on drive orin?

Hi team,
https://docs.nvidia.com/drive/driveworks-4.0/dwx_camera_usb_sample.html
In this provided sample, recording option is disabled. It has been mentioned that recording option is only available on x86 platfrom. But if i want to record the video, how can i do that because I want to try this on drive orin which has arm64 architecture.

Dear @akshay.tupkar,
SensorManager does not have USB camera support. Hence USB cameras can not be recorded via recorder tool.
Regarding the sample limitation, I am checking internally and update you.
May I know why recording in x86 and using the video for app development does not work for your case?

Dear @SivaRamaKrishnaNV
Host pc has x86 architecture. If i try to execute this on host pc, it throws an error as “Driveworks exception thrown: Platform: Cannot acquire CUDA context. Error cudaErrorNoDevice: no CUDA-capable device is detected”
Also in the documentation it is clearly mentioned that recording is available only on x86. I want to record a video and give it as a input to opencv. How can I make it enable to record a video on drive orin platform?
image

Dear @akshay.tupkar,
I notice dwFrameCapture API supported on tegra as well. Can you checking removing the #ifndef VIBRANTE condition and include that code as well in program. Cross compile the code and test if recording works on target. I don’t have USB camera for quick test.

Regarding above error, it seems you don’t have GPU on host. What is the used DRIVE OS version?

Dear @SivaRamaKrishnaNV
Drive OS version used is 6.0.6

Dear @SivaRamaKrishnaNV
After removing #ifndef VIBRANTE, it is throwing an error as "Driveworks exception thrown: DW_NOT_IMPLEMENTED: Camera::createSerializer() - not implemented

Dear @akshay.tupkar,
Thanks for checking.
So, you need to record USB camera data on x86 and use it on target as input video file for application development. Do you have GPU on host?

Dear @SivaRamaKrishnaNV
No, I just cross compiled the code for target.And I want to record camera data on target.

Currently, DW does not support it.

Dear @SivaRamaKrishnaNV
Is it not possible even after making some changes in the code?

No. It can be noticed in last error that camera serializer is not implemented for USB camera.

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