David 9 anni fa
parent
commit
6b98c987af
2 ha cambiato i file con 20 aggiunte e 0 eliminazioni
  1. 18 0
      camera1/fb-to-udp.sh
  2. 2 0
      camera1/play-cam2.sh

+ 18 - 0
camera1/fb-to-udp.sh

@@ -0,0 +1,18 @@
+#!/bin/bash
+
+HOST="192.168.2.84"
+#5001"
+#HOST="192.168.1.7:5001"
+#HOST="192.168.20.2:5001"
+#~/code/telepi/telepi - |
+#	LD_LIBRARY_PATH=/usr/local/lib gst-launch-1.0 -v fdsrc ! queue ! \
+#	video/x-h264,width=800,height=600,framerate=60/1,profile=high ! \
+#	h264parse ! rtph264pay config-interval=1 ! \
+#	multiudpsink clients=$HOST
+
+#~/code/telepi/telepi - | pv | netcat $HOST 5001
+while [ true ]; do
+	~/code/telepi/telepi - | netcat $HOST 5001
+	sleep 1
+	echo "the fb grabber died"
+done

+ 2 - 0
camera1/play-cam2.sh

@@ -0,0 +1,2 @@
+#!/bin/sh
+LD_LIBRARY_PATH=/usr/local/lib gst-launch-1.0 udpsrc port=5000 ! queue ! application/x-rtp, payload=96 ! rtpjitterbuffer latency=510 ! rtph264depay ! decodebin ! glimagesink