@@ -158,26 +158,28 @@ WFB-ng puts the wifi cards into monitor mode. This mode allows to send and recei
158
158
159
159
## Sample usage chain:
160
160
```
161
- Camera -> gstreamer -- [RTP stream (UDP)]--> wfb_tx --//--[ RADIO ]--//--> wfb_rx --[RTP stream (UDP)]--> gstreamer --> Display
161
+ Camera -- [RTP stream (UDP)]--> wfb_ng --//--[ RADIO ]--//--> wfb_ng --[RTP stream (UDP)]--> gstreamer --> Display
162
162
```
163
163
164
- For encoding logitech c920 camera:
165
- ```
166
- gst-launch-1.0 uvch264src device=/dev/video0 initial-bitrate=6000000 average-bitrate=6000000 iframe-period=1000 name=src auto-start=true \
167
- src.vidsrc ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! rtph264pay ! udpsink host=localhost port=5600
168
- ```
164
+ - For encoding video from OpenIPC-based security camera connected via ethernet to your PC or SBC you don't need a special pipeline. Just set ` outgoing ` to ` udp://your_ip_address:5602 ` in [ majestic.yaml] ( https://github.com/OpenIPC/wiki/blob/master/en/majestic-streamer.md#other-outgoing-options )
169
165
170
- To encode a Raspberry Pi Camera V2 :
171
- ```
172
- raspivid -n -ex fixedfps -w 960 -h 540 -b 4000000 -fps 30 -vf -hf -t 0 -o - | \
173
- gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=35 ! udpsink sync=false host=127.0.0.1 port=5600
174
- ```
166
+ - For encoding video from a Raspberry Pi Camera (obsolete, latency is high comparing to OpenIPC) :
167
+ ```
168
+ raspivid -n -ex fixedfps -w 960 -h 540 -b 4000000 -fps 30 -vf -hf -t 0 -o - | \
169
+ gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=35 ! udpsink sync=false host=127.0.0.1 port=5602
170
+ ```
175
171
176
- To decode:
177
- ```
172
+ - For encoding video from Logitech C920 camera (obsolete, camera is EOL many years ago):
173
+ ```
174
+ gst-launch-1.0 uvch264src device=/dev/video0 initial-bitrate=6000000 average-bitrate=6000000 iframe-period=1000 name=src auto-start=true \
175
+ src.vidsrc ! queue ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse ! rtph264pay ! udpsink host=localhost port=5602
176
+ ```
177
+
178
+ - To decode:
179
+ ```
178
180
gst-launch-1.0 udpsrc port=5600 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' \
179
- ! rtph264depay ! avdec_h264 ! clockoverlay valignment=bottom ! autovideosink fps-update-interval=1000 sync=false
180
- ```
181
+ ! rtph264depay ! avdec_h264 ! clockoverlay valignment=bottom ! autovideosink fps-update-interval=1000 sync=false
182
+ ```
181
183
182
184
## HOWTO build:
183
185
0 commit comments