Skip to content

Commit

Permalink
Update video streaming scripts (#116)
Browse files Browse the repository at this point in the history
* Tweak video scripts
  • Loading branch information
Terkwood authored Mar 20, 2020
1 parent bd814bb commit fda2559
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
7 changes: 7 additions & 0 deletions services/video/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# video stuff

We sometimes like to watch our prawns from another place

## Resources

- [Sanity check](https://www.linux.org/threads/how-to-test-open-udp-ports.18105/)
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
#!/bin/bash
gst-launch-1.0 udpsrc port=5001 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! videoconvert ! ximagesink

gst-launch-1.0 udpsrc port=5001 ! application/x-rtp,encoding-name=JPEG,payload=26 ! rtpjpegdepay ! jpegdec ! videoconvert ! autovideosink
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/bash

TARGET_IP=192.168.1.1

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
T=${TARGET_IP:="192.168.1.1"}
P=5001
echo "Sending to $T:$P"
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 comments on commit fda2559

Please sign in to comment.