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
other
Hello,
I am currently trying to encode to h264 images coming from a gmsl camera. The cameras are Sekonix GMSL SF3324 and SF3325.
The cameras are running in processed mode, following this page. And they output image of type : DW_IMAGE_FORMAT_YUV420_UINT8_PLANAR as DW_IMAGE_NVMEDIA type.
I am trying to use the NvMedia IEP API to encode the images. But it is said in the documentation of the function NvMediaIEPCreate that the format of the input images must be of type :
So it doesn’t match. Also when checking the Supported Cemera Output Types I see that DW_CAMERA_OUTPUT_CUDA_YUV420_UINT16_SEMIPLANAR is of type DW_IMAGE_CUDA and not DW_IMAGE_NVMEDIA, Which is very confusing as I believe I need to use nvmedia images with nvmedia IEP.
How can I solve this situation ?
Thanks a lot for your help !
I want to encode to h264 using driveworks or nvmedia. I want to get raw H264 bytes to send them to ROS.
I had a look at the sample you mentioned but it’s hard to make sense of it. What is actually used to make the conversion ?
I see that dwSensorSerializer and StreamerGL are used. The only mention of h264 is in the params of the serializer. Can I use the serializer in my case ?
What’s the easiest way for me to convert GMSL camera frames to H264 bytes ?
Thanks both for your answers. I will try to implement h264 encoding with the nvmedia_iep library, as it would interface better with the current driver, which already uses the nvmedia_ijpe.
I have one more question :
The supported output types for my cameras are :
DW_IMAGE_FORMAT_YUV420_UINT8_PLANAR
DW_IMAGE_FORMAT_YUV420_UINT16_SEMIPLANAR
DW_IMAGE_FORMAT_YUV_UINT8_PLANAR
DW_IMAGE_FORMAT_YUV_UINT16_PLANAR
But the nvmedia_iep API needs :
(attr, YUV, 420, SEMI_PLANAR, UINT, [8/10], BL)
(attr, YUV, 444, SEMI_PLANAR, UINT, [8/10], BL)
So please answer this question: How to get either (attr, YUV, 420, SEMI_PLANAR, UINT, [8/10], BL) or (attr, YUV, 444, SEMI_PLANAR, UINT, [8/10], BL) images with a gmsl camera ?
Dear @maxandre.ogeret,
The issue could be with type key(should be disk or user) in parameters field of dwSerializerParam. Please fix it and file a new topic if it does not help.