Hi!
I am struggling to get my video stream to work in cockpit. I currently have an IP camera that outputs H264 over RTSP that has been configured as a redirect in BlueOS. In Cockpit Lite the feed displays just fine, but in the standalone version i can’t connect, even though i can see that the stream is available. Also, trying to open it in QGC, it shows, but it seem like the frames comes in a random order with a lot of green frames mixed in. Turning off the redirect and connecting directly to the camera works in QGC, but not in standalone cockpit. What could cause this?
Which version of cockpit are you using? 1.17 or 1.18? If you want to use the RTSP (and not WebRTC) you should try the 1.18 betas (currently on 15) which support direct RTSP streaming, so you can connect directly to your camera without passing the stream through the vehicle.
It’s a SIYI IP 67 camera. The stream is rtsp://192.168.144.25:8554/main.264. I can connect to it directly with VLC and QGC without any issues. And as stated earlier, it works perfectly fine with redirect and Cockpit Lite as well. With redirect and QGC it shows, but is unusable due to horrible quality.
Hey Gustav! From what I understood with Cockpit standalone the only type of RTSP connection that you’ve tried was actually using the redirect system on BlueOS. What I advise you to do is instead use the direct RTSP connection from Cockpit to the camera, without the redirect.
To do that, first of all, disable the redirect on BlueOS. Then you go to the Cockpit video configuration page (/menu/settings/video) and paste in the RTSP direct input field the same URL that you’re using on VLC. With that, Cockpit will connect directly to the camera and should work the same way as QGC does or VLC does. Make sure to use the latest Cockpit 1.18 beta16 for that.
As I said in my first post, direct connection, not using redirect, only works in QGC (and VLC). With Cockpit, neither a direct connection nor redirect seem to work. I get the redirect in Cockpit Lite, but that’s all.
Can you send me a screenshot from your /menu/settings/video page? From the desktop/standalone version.
And can you download and send here the last two logs from it? You can find them on /menu/settings/dev.
And one last thing: can you also get me a screenshot of the whole Cockpit screen with the Video Player widget showing and its options dialog open? You can right click the widget and click options to show that dialog. If you don’t have the “stats for nerds” option enabled in this widget, please also enable it.
As I understood @rafael.lehmkuhl, the problem was that the video stream is in H265 and not in H264. Unfortunately, it does not seem like it is possible to configure the camera in question (SIYI IP67 FPV Camera). Is there any plans on including support for H265, or should I just go ahead and buy a better camera?
Yes, as I mentioned in the DM unfortunately we don’t support H265 on Cockpit yet. It’s a limitation caused by the dependencies that we use (more specifically Electron and consequently Chromium). It’s in our plans for this month to update those dependencies and there’s a good chance that this will cause H265 to work out of the box, but it’s not guaranteed.
For the time, I suggest using a camera that has H264 support indeed.
@nogu please take a look here (at the bottom of the page) and download the version for your system here and let me know how it goes. I have successfully transmitted H265 here using both WebRTC and direct RTSP with those changes.