Skip to content

Commit fda2559

Browse files
authored
Update video streaming scripts (#116)
* Tweak video scripts
1 parent bd814bb commit fda2559

3 files changed

Lines changed: 13 additions & 4 deletions

File tree

services/video/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# video stuff
2+
3+
We sometimes like to watch our prawns from another place
4+
5+
## Resources
6+
7+
- [Sanity check](https://www.linux.org/threads/how-to-test-open-udp-ports.18105/)
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
#!/bin/bash
2-
gst-launch-1.0 udpsrc port=5001 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! videoconvert ! ximagesink
2+
3+
gst-launch-1.0 udpsrc port=5001 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! videoconvert ! autovideosink
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/bash
22

3-
TARGET_IP=192.168.1.1
4-
5-
gst-launch-1.0 -v rpicamsrc ! videoconvert ! videoscale ! video/x-raw,format=I420,width=640,height=480,framerate=20/1 ! jpegenc ! rtpjpegpay ! udpsink host=$TARGET_IP port=5001
3+
T=${TARGET_IP:="192.168.1.1"}
4+
P=5001
5+
echo "Sending to $T:$P"
6+
gst-launch-1.0 -v rpicamsrc ! videoconvert ! videoscale ! video/x-raw,format=I420,width=640,height=480,framerate=20/1 ! jpegenc ! rtpjpegpay ! udpsink host=${T} port=${P}

0 commit comments

Comments
 (0)