mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-26 11:43:25 +00:00
docs: update 4g.md (#355)
* Update 4g.md Added how to stream from USB cam * Edit * Update 4g.md Co-authored-by: Oleg Kalachev <okalachev@gmail.com>
This commit is contained in:
@@ -90,12 +90,15 @@ To start the transfer of images, you must enter the appropriate command line:
|
||||
<a id="command_line"></a>
|
||||
|
||||
```bash
|
||||
gst-rtsp-launch "( v4l2src device=/dev/video0 ! video/x-raw,framerate=30/1,width=320,height=240 ! v4l2h264enc output-io-mode=4 extra-controls=\"encode,frame_level_rate_control_enable=1,h264_profile=4,h264_level=13,video_bitrate=300000,h264_i_frame_period=5;\" ! rtph264pay name=pay0 pt=96 )"
|
||||
gst-rtsp-launch "( v4l2src device=/dev/video0 ! video/x-raw,framerate=30/1,width=320,height=240 ! videoconvert ! v4l2h264enc output-io-mode=4 extra-controls=\"encode,frame_level_rate_control_enable=1,h264_profile=4,h264_level=13,video_bitrate=300000,h264_i_frame_period=5;\" ! rtph264pay name=pay0 pt=96 )"
|
||||
```
|
||||
|
||||
This command line contains the parameters of the video stream, such as the source video device, framerate, image height/width, encoding, etc. You can see more examples [in the `gst-rtsp-launch` repository](https://github.com/sfalexrog/gst-rtsp-launch/blob/master/README.md).
|
||||
|
||||
Make sure the stream is received and shown in QGroundControl.
|
||||
> **Info** A Raspberry Pi camera device `/dev/video0` could be used by `clover` systemd service. In this case `gst-rtsp-launch` will not get an access to the device. For stop the `clover` run command `sudo systemctl stop clover`.
|
||||
> Also you could stream from a USB-camera, for this change the source video device to `/dev/video1`.
|
||||
|
||||
Make sure the stream by the address `rtsp://192.168.11.1:8554/video` is received and shown in QGroundControl.
|
||||
|
||||
<img src="../assets/4g/video_stream.png" width=300 class="zoom center border">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user