How to access BlueROV2 camera stream

No we used the code out of the box. We tested running it on a linux machine with ubuntu 22.04. The ubuntu machine has plenty of resources but has very bad latency. We were getting about 1 frame every 4-5 seconds. I will add we also tested out changing the code after having latency problems running the given code and couldn’t get that to perform any better.

Hi @ssicari,

In this case, it appears to be a problem with the libav installed in your machine. I would recommend changing the avdec_h264 with another h264 decoder.

In my machine I have the following:

libav: avdec_h264: libav H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 decoder
nvcodec: nvh264dec: NVDEC H.264 Decoder
vulkan: vulkanh264dec: Vulkan H.264 decoder

libav works without problems.

You can test the pipeline using the following command:

gst-launch-1.0 udpsrc port=5600 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! avdec_h264 ! queue ! autovideosink
1 Like

Thank you that works now. Weirdly enough the same code that was giving me problems also works now without being changed. Perhaps it was related to our camera having problems due to the resistors being pushed against the camera mount. I fixed that last week and it all seems to be working now

1 Like

hello, I am able to see the video in blue os, but fail to play it in VLC


Hi @qimg -
Try that with an H264 stream, not MJPG!

Is blue os not able to get rtsp with mjpg? I want to add url video in cockpit, can it work?

Hi @qimg -
BlueOS and Cockpit do not support MJPG video currently. An H264 stream should work just fine though!