mavlink-camera-manager: QGC doesn't display video stream

Hello,

I followed instructions in the README and tried t3.12.7 and t3.12.6 releases but QGC doesn’t automatically display the video stream. I create ball-Fake source h264 rtp stream and can add it successfully manually in QGC settings, QGC then displays the stream as expected. But automatically this doesn’t happen. I see that mavlink-camera-manager sends heartbeats and QGC reacts to them and requests MAV_CMD_REQUEST_CAMERA_INFORMATION. In mavlink-camera-manager logs

2024-03-10T04:22:38.616028Z TRACE           MavReceiver ThreadId(13) receiver_loop: src/mavlink/manager.rs:104: Message received: MavHeader { system_id: 255, component_id: 190, sequence: 11 }, COMMAND_LONG(COMMAND_LONG_DATA { param1: 1.0, param2: 0.0, param3: 0.0, param4: 0.0, param5: 0.0, param6: 0.0, param7: 0.0, command: MAV_CMD_REQUEST_CAMERA_INFORMATION, target_system: 1, target_component: 100, confirmation: 0 })

But mavlink-camera-manager neither acknowledges the message not sends the information back. I can verify this by watching messages on mavproxy to which mavlink-camera-manager is connected. As a result QGC reports “Giving up requesting camera info from 1 100”

Do you know what can be the problem? Thanks.

See the full log mavlink-camera-manager.2024-03-10-04.log attached

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 29 (1 by maintainers)

Most upvoted comments

@joaoantoniocardoso I checked my gst version as below, maybe the error is caused by low version.

gst-launch-1.0 version 1.20.1
GStreamer 1.16.3
https://launchpad.net/distros/ubuntu/+source/gstreamer1.0

@adolgarev but the video is showing ? Or only the controls ?

Yes, video is showing

@adolgarev good, so I won’t bother looking into that. Feel free to create new issues if you find anything else, or if you want to discuss new features, thanks!

@adolgarev but the video is showing ? Or only the controls ?

Yes, video is showing

I still see CameraControlLog: Unable to load camera parameters from camera definition on QGC, I believe it is because I’m using fake source.

Thanks! I’ll give it a try

It works! Thank yo very much. image

There is one warning in QGC which is not fatal but maybe worth a look. image

Hi, I’m able to reproduce the issue, I’ll investigate it.

@joaoantoniocardoso thank you for your response. Recent build produces the same result, please find details below.

I configure the stream like below

Screenshot 2024-03-11 160117

I create ball-Fake source h264 rtp stream and can add it successfully You mean, rtsp? I just submitted a PR fixing it.

I believe it is RTP over UDP

If I add stream manually

Screenshot 2024-03-11 160218

It displays ok

image

But if I let QGC discover stream by itself I see

image

and no video

Screenshot 2024-03-11 160034

In logs mavlink-camera-manager sends only heartbeats, no message ack and no response with camera caps.

Screenshot 2024-03-11 164509

image

System id and component id looks right. I wonder why mavlink-camera-manager doesn’t respond.

The new log: mavlink-camera-manager.2024-03-11-19.log