From c6aff9f4577deb751cc19bc5c8cd2f213361fff3 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 8 Sep 2015 21:49:42 +0200 Subject: [PATCH] Video streaming README: Add instructions to generate test stream --- src/VideoStreaming/README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/VideoStreaming/README.md b/src/VideoStreaming/README.md index 438342b8d..d8d98baa9 100644 --- a/src/VideoStreaming/README.md +++ b/src/VideoStreaming/README.md @@ -17,6 +17,11 @@ gst-launch-1.0 uvch264src initial-bitrate=1000000 average-bitrate=1000000 iframe Where xxx.xxx.xxx.xxx is the IP address where QGC is running. You may tweak the bitrate, the resolution and the FPS based on your needs and/or available bandwidth. +To test using a test source on localhost, you can run this command: +``` +gst-launch-1.0 videotestsrc pattern=ball ! x264enc ! rtph264pay ! udpsink host=127.0.0.1 port=5000 +``` + On the receiving end, if you want to test it from the command line, you can use something like: ``` gst-launch-1.0 udpsrc port=5000 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! avdec_h264 ! autovideosink fps-update-interval=1000 sync=false -- 2.22.0