Check the VLC buffer to solve this problem:
- 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.
A VLC example:
- Media → Open Network Stream → http://192.168.2.2:2770/vlc.sdp → play
Can this help you?