Skip to main content

VLC and RTSP

VLC can play the UAVcast-Pro stream with a small SDP file that describes it. If you'd rather pull the video from the drone than have it pushed to you, the drone's media server also offers each camera over RTSP. Both add more delay than QGroundControl, Mission Planner or GStreamer, so use them for watching and recording, not for flying.

Play the UDP stream in VLC​

  1. On the drone, add a destination on Ground Control Stations with this computer's IP and Enable Video on.

  2. Save this as uavcast.sdp:

    uavcast.sdpText
    v=0
    o=- 0 0 IN IP4 127.0.0.1
    s=UAVcast-Pro
    c=IN IP4 0.0.0.0
    t=0 0
    m=video 5600 RTP/AVP 96
    a=rtpmap:96 H264/90000
  3. Open it in VLC with Media → Open File.

For camera 2 in dual stream, make a copy with m=video 5601. To add the audio track, append:

Text
m=audio 5602 RTP/AVP 97
a=rtpmap:97 opus/48000/2

To cut the delay, lower Network caching in VLC (Tools → Preferences → Show settings: All → Input / Codecs). Expect more delay than GStreamer anyway.

Pull the video from the drone over RTSP​

While the camera runs with Enable Live Preview? ticked or with camera recording enabled, the drone's media server publishes each camera over RTSP (TCP only) on port 8554:

Text
rtsp://<drone-ip>:8554/camera # camera 1
rtsp://<drone-ip>:8554/camera2 # camera 2 (dual stream)

Open it in VLC (Media → Open Network Stream), in a video management system, or with GStreamer:

Terminal
gst-launch-1.0 rtspsrc location=rtsp://192.168.1.50:8554/camera latency=100 ! rtph264depay ! avdec_h264 ! videoconvert ! autovideosink sync=false

Use this on the local network or over the VPN. Don't forward port 8554 to the internet: the stream has no password.

Which method should I use?​

You wantUse
To fly with videoQGroundControl or Mission Planner
A quick test, a second camera window, or audioGStreamer on Windows, Linux or macOS
VLC because it's already installedThe SDP file above
A PC or system that should fetch the video itselfRTSP
1 min readUAVcast-Pro
Edit