qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

Waiting for video, cannot display IPcamera RTSP video stream

Open TyphoonWu opened this issue 3 years ago • 10 comments

Expected Behavior

Display RTSP video stream.

Current Behavior

Waiting for video, cannot display RTSP video stream.

Steps to Reproduce:

Please provide an unambiguous set of steps to reproduce the current behavior

  1. IPcamera enable RTSP, RTSP mount points: rtsp://10.0.2.145:554/11 and rtsp://10.0.2.145:554/22. The URLs include video and audio stream.
  2. Qgroundcontrol video steam set RTSP: rtsp://10.0.2.145:554/11
  3. Return to fly/main UI
  4. Observe video frame.

System Information

When posting bug reports, include the following information

  • Operating System: Windows 10
  • QGC Version: v4.1.1(latest release version)
  • Flight Controller: Pixhawk 2
  • Autopilot (with version): Ardupilot Copter 3.6.1

Detailed Description

  1. I have one device IPcamera, IP camera enable RTSP, RTSP URL: rtsp://10.0.2.145:554/11 (for 720P) and rtsp://10.0.2.145:554/22 (for 640P). The address include video and audio. Qgroundcontrol RTSP video steam set the two RTSP url both cannot display the video stream.
  2. Gstream display video success, command: gst-launch-1.0 rtspsrc location=rtsp://10.0.2.145/22 latency=0 ! queue ! decodebin ! autovideosink
  3. Misson planner display video success, command: rtspsrc location=rtsp://10.0.2.145:554/22 latency=0 ! queue ! application/x-rtp ! rtph264depay ! avdec_h264 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink
  4. Use raspberry camera's RTSP it's ok.

Log Files and Screenshots

  • [QGC Console Logs] IPcamerarstp_failure.txt

  • Doesn't related with Autopilot. Failure screen shot: rtsp_failure1 rtsp_failure2

  • Use gstream command it's ok to display RTSP video stream: rtsp_gstream_ok rtsp_ok

TyphoonWu avatar Dec 18 '21 16:12 TyphoonWu

I have one device IPcamera, IP camera enable RTSP, RTSP URL: rtsp://10.0.2.145:554/11 (for 720P) and rtsp://10.0.2.145:554/22 (for 640P). The address include video and audio. Qgroundcontrol RTSP video steam set the two RTSP url both cannot display the video stream.

In this example you use a port as far as I can tell. In the other working examples you dont use a port or a different port. Is this intended?

booo avatar Jan 04 '22 01:01 booo

I compiled the master branch, and I encountered the same problem

keiler2018 avatar Jan 08 '22 15:01 keiler2018

I compiled the master branch, and I encountered the same problem

I can't use the command line. Just add a parameter “--gst-debug-level=3”

keiler2018 avatar Jan 08 '22 15:01 keiler2018

rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov

This is OK, but the camera is not

keiler2018 avatar Jan 08 '22 16:01 keiler2018

I have one device IPcamera, IP camera enable RTSP, RTSP URL: rtsp://10.0.2.145:554/11 (for 720P) and rtsp://10.0.2.145:554/22 (for 640P). The address include video and audio. Qgroundcontrol RTSP video steam set the two RTSP url both cannot display the video stream.

In this example you use a port as far as I can tell. In the other working examples you dont use a port or a different port. Is this intended?

Sorry, without explain clearly. Actually, It doesn't matter with the port, Gstream display video success, below commands both ok: gst-launch-1.0 rtspsrc location=rtsp://10.0.2.145/22 latency=0 ! queue ! decodebin ! autovideosink gst-launch-1.0 rtspsrc location=rtsp://10.0.2.145:554/22 latency=0 ! queue ! decodebin ! autovideosink

The IPcamera have default port 554, the URLs rtsp://10.0.2.145/22 and rtsp://10.0.2.145:554/22 both able to access the video, And I use mission plan and VLC to load the URLs both ok.

TyphoonWu avatar Jan 21 '22 15:01 TyphoonWu

if you test in windows, you can change code"gst_element_factory_make("parsebin", "parser") to gst_element_factory_make("decodebin", "decoder")" in gstvideoreceiver.cc ;

jingwenyi avatar Feb 15 '22 04:02 jingwenyi

with the mac releases (all dailys along 2021/2022) I had very similar experiences there an additional very strange thing happens. If you push the record button, perfect valid video files get recorded while the QGC video window shows "WAITING FOR VIDEO" instead of the content. It can be easily tested with the iOS app periscope hd that streams the smartphones cam directly into rtsp The streams always get visible with VLC or extrem low latency with QGC 3.xx

https://discuss.px4.io/t/video-stream-to-qgroundcontrol-mac/2327

taileron avatar Feb 17 '22 15:02 taileron

I can see video on android, there is no audio. What is going on?

ghost avatar Jul 14 '22 17:07 ghost

please use the version 4.01

---Original--- From: @.> Date: Fri, Jul 15, 2022 01:10 AM To: @.>; Cc: @.@.>; Subject: Re: [mavlink/qgroundcontrol] Waiting for video, cannot displayIPcamera RTSP video stream (Issue #10087)

I can see video on android, there is no audio. What is going on.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

jingwenyi avatar Jul 15 '22 01:07 jingwenyi

Thanks for your reply. I checked the pipeline in the source code of version 4.0 and did not see audio elements. That says audio is not available. There is no branch of Version 4.01.

ghost avatar Jul 15 '22 21:07 ghost