In this Tutorial we continue our last video about equipping our drone to communicate over Internet. In the last video I talked about Virtual LAN with ZeroTier and MVProxy. In this Tutorial I try using RTSP, UDP, HTTP to stream live video from Raspberry pi camera( or any other camera connected to raspberry pi) to our ground control station over Internet.
Resources:
My Last Video Discussing more about internet telemetry and virtual LAN with ZeroTier (Unlimited Range Pixhawk Telemetry over Internet using Raspberry Pi and MAVProxy)
[ Ссылка ]
PhysicsX/Gstreamer-on-embedded-devices (Guide to install and begin with GStreamer and raspberry pi camera and …
[ Ссылка ]
Guide to install GStreamer on MacOS/Win/Linux/iOS/Android
[ Ссылка ]
GStreamer Main Documentation source
[ Ссылка ]
Aeronaughties Youtube Channel (UDP Example)
[ Ссылка ]
ZeroTier Beginner Tutorial:
[ Ссылка ]
Code Snippets:
————————————————
RTSP Streaming:
On Raspberry : (Remember to cd to the examples directory)
./test-launch --gst-debug=3 "( rpicamsrc bitrate=1000000 awb-mode=tungsten preview=false ! video/x-h264, width=640, height=480, framerate=3/1 ! h264parse ! rtph264pay name=pay0 pt=96 )"
On Client:
use the RTSP
gst-launch-1.0 -v rtspsrc location=rtsp://RASPBERRY_IP:8554/test latency=0 buffer-mode=auto ! decodebin ! videoconvert ! autovideosink sync=false
—————
————————
HTTP:
raspivid -o - -t 0 -hf -w 800 -h 400 -fps 24 |cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:PORT_HOST}' :demux=h264
————————
————————————
UDP Streaming:
Raspberry:
gst-launch-1.0 rpicamsrc bitrate=500000 keyframe-interval=0 intra-refresh-type=cyclic preview=false ! 'video/x-h264,width=800,height=600,framerate=10/1' ! h264parse ! queue ! rtph264pay config-interval=1 pt=96 ! gdppay ! udpsink host=IP_HOST port=PORT_HOST
Client:
udpsrc port=PORT_HOST ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! video/x-raw,format=BGRA ! appsink name=outsink
Ещё видео!