qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

Video: increase timeout for RTSP video streaming (#9440)

Open fredowski opened this issue 3 years ago • 1 comments
trafficstars

In #9440 the video streaming failed for some cameras and the bunny example RTSP streaming movie. This worked in 4.0.6 and it did not work anymore in 4.1.0. The same unstable behaviour is observed in #10396.

The gstreamer rtsp source will switch to tcp when no data is received via udp after 5 seconds. The default timeout for the gstreamer video receiver is 2 seconds resulting in a permanent teardown and restart until eventually some data is received. As far as I understood the code 4.0.6 did not have a timeout which is in 4.1.0. I change the timeout for RTSP to 8 seconds and leave it at 2 seconds for the other streams. With 8 seconds timeout I can receive the bunny example without problems.

Closes: #9440

I tested this on MacOS with the changes from #10396 included and on Android.

fredowski avatar Sep 11 '22 01:09 fredowski

This can be tested with the "Bunny" Video stream.

  • QGC: Application Settings -> General -> Video Source: "RTSP Video Stream"
  • RTSP URL: rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mp4

fredowski avatar Sep 19 '22 13:09 fredowski

LGTM

mrpollo avatar Oct 04 '22 15:10 mrpollo

Thanks for reviewing and merging!

fredowski avatar Oct 04 '22 16:10 fredowski