Ho to create a RTSP video stream using a PCIe camera (ximea)?

Hello!

I have a PCIe camera that plugs into a PCIe slot instead of an usb port.

I want to create a RTSP stream on the jetson.
From another computer (in the same local network) i want to connect to the stream. For example with VLC. You can enter an url like this: rtsp://192.168.0.110:8554/cam and it would dislpay the stream.

The trouble i have is with the PCIe camera. Everywhere i look i only find libraries and guides on how to use a USB cam but whenever i try them with my cam i get this error:

[video4linux2,v4l2 @ 0x55c0edf5d0] ioctl(VIDIOC_QUERYCAP): Inappropriate ioctl for device
/dev/ximea00: Inappropriate ioctl for device

So how do i stream a PCIe camera?
Can i use ffmpeg for that?
Is there maybe just a simple line of FFMPEG arguments and my stream is running?
Or is there a way to use open cv to create a stream? (i only find tutorials on how to ‘capture’ a stream but not on how to create one)

Please help me as i am lost. If i would have an usb cam it would be easier but with the PCIe cam i am so lost.

My camera is this one:

device name ‘MX124CG-SY-X2G2-FV’
device typ ‘PCIe’
model id 175

PS:
is this the appropriate sub forum?

Hi,

XIMEA cameras aren’t available through video4linux interface, so there is no native support in tools like ffmpeg or gstreamer. There is an integration code for OpenCV: https://www.ximea.com/support/wiki/vision-libraries/OpenCV, but I don’t think OpenCV can create network streams. Linux XIMEA API package (https://www.ximea.com/support/wiki/apis/XIMEA_Linux_Software_Package) includes an example application streamViewer, which demonstrates how to integrate XIMEA cameras with gstreamer pipeline. gstreamer have support for RTP and some support for RTSP. You didn’t mention which OS you’re using, so it may not be useful to you. To summarize - you will have to write some code to connect XIMEA camera using xiAPI (https://www.ximea.com/support/wiki/apis/xiAPI) to some library providing video encoding and RTSP (or other) network streaming capability.

Alternatively you can contact XIMEA technological partner company MRTech SK: https://mr-technologies.com/ - they provide such streaming solution for XIMEA cameras (for a price).