NvMedia capture with gstreamer

Hi,

I’m pretty new to the DRIVE PX2 platform, but I’m essentially trying to get video from a CSI camera I have connected to the board and either display or save to a raw file using gstreamer. The NvMedia plugin nvmediacapturesrc is used as the source, like so:

gst-launch-1.0 nvmediacapturesrc interface=csi-a height=962 width=1280 ! filesink location=test.raw

However, this returns an error:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
NvMediaVideoCaptureGetFrame: captureGetSurface status 3
ERROR: from element /GstPipeline:pipeline0/GstNvmCapture:nvmcapture0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstNvmCapture:nvmcapture0:
streaming task paused, reason error (-5)
Execution ended after 0:00:00.096719017
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
NvMediaVideoCaptureStop: captureGetSurface status 12
Setting pipeline to NULL ...
Freeing pipeline ...

I tried the other interfaces (e.g. csi-b, csi-ab, etc.), different numbers of csilanes, etc. – the result is the same. Is there something basic I’m missing?

Thanks!
C

Dear chiszp,

May I know how to connect the CSI camera on DPX2?
DPX2 has 12ea GMSL camera port, so could you please use GMSL camera to capture?
Please refer to below link for GMSL camera information in detail Thanks.

Hi,

@chiszp do you solve your problem?

Because I am also trying to get video from a CSI camera using the gstreamer API. But in my case the nvmediacapturesrc module does not seem to be present.

No such element or plugin ‘nvmediacapturesrc’

Do you know if this plugin is still available in the 4.1.8.0 NVIDIA Drive version?
Do I have to install/compile something?

Thanks,

Thomas Coursin