I am trying to get the video stream showing in QGroundControl and a 3rd party software like videolan at the same time.
I have found how to stream to a different address on this forum so I now have my gstreamer options set like this:
! multiudpsink clients=192.168.2.1:5600,192.168.2.1:5601
I am trying to view the stream in Videoland and am putting this address:
udp://192.168.2.1:5601
Tools → Preferences → Show Settings → All → Input Codecs → Advanced → Network Caching (ms)
Change the value to 200.
Save the settings and restart the program.
Can you say what are you using in your in-house code, like libvlc, opencv, qmultimedia, … ?
You can modify the gstreamer settings in /camera to use RTSP.
QGC have some hardcoded elements, check here if you need to modify or understand what QGC expects to receive.
We have a new version of companion, that is in Work in Progress, where you can use something like http://192.168.2.2:2770/vlc.sdp to access the stream.
Can you say what are you using in your in-house code, like libvlc, opencv, qmultimedia, … ?
I use tvideograbber with its UDP/RTSP/RTMP/HTTP/ONVIF DirectShow Source Filter
Unsure if GStreamer can be compatible with DirectShow…
You can modify the gstreamer settings in /camera to use RTSP.
Would you mind giving me the settings c/w what address I should put in QGC?
I tried replacing the udpsink line with with: tcpserversink host=192.168.2.1 port=5600
and updated the QGC to rtsp://192.168.2.1:5600
We have a new version of companion, that is in Work in Progress, where you can use something like http://192.168.2.2:2770/vlc.sdp to access the stream.
Not sure if TVideograbber will like it since the sdp is a script and not the address of the live stream.
I tested the fix on videolan and the stream latency is as good as the BR2 camera. This was unexpected. I am very happy with the results as I can now use my IP camera for flying the ROV.
After I open de vlc.sdp file you gave. However I can only see the video stream through VLC when QGC is not open. If QGC is open then the video stream opens for a second while in QGC it stops for a second. After the VLC stream stops and QGC continues normally.
It is as if VLC had tried to take the “stream power” from QGC for a second before this last one regained it.
Any solutions? The objective is to have multidisplay video.
Thank you.
Alexis
You need to set up a multicast video pipeline. We do not have support for this right now, but it is possible to add.
You can instead use different client ips/ports for each stream, like @patrickelectric points out below.
That is what I thought. I tried that but it does not work. The file only streams video when 5600 is written and QGC is closed.
My file looks like this:
I also tried to change the parameter RTP/AVP to UDP (since the config seems to be multiUDPsink) following this webpage: SDP file - SpinetiX Support Wiki. Now it does not work with either of the ports.
I am running VLC on Linux.
Every-time I loaded the configuration to 192.168.2.2:2770/camera I saved it and rebooted the camera and the ROV, just in case.
Sorry for the late reply.
It is the same text/code I have in my configuration and .sdp file, but just in case I copied and pasted it again.
Here is the result: twoVideos - YouTube
No video on the .sdp file with port 2000. I guess the problem is somewhere else but I cannot figure it out.
Thank you for the video, maybe your operating system has a process that is blocking/using this port, can you try with another number, E.g 5228 or any other port that you can test ?
This same issue happens when you’re using udpsink and port 2000 ?
OK
I guess there is some problem with my configuration not being taken into account. I have written udpsink 2000 and It still only works with the port 5600.
After writing my configuration I click on save options, restart camera and reboot. It is saved because if I shut-down the companion computer and then reconnect it the configuration is still there, I can retrieve it from 192.168.2.2:2770/camera. However it seems that it is not being interpreted.
Can you update if you are not already in the last version ?
If you already are in the last version or have done any modification in the companion computer, please, try to reinstall the image.