add GStreamer helper scripts

This commit is contained in:
Maik Jurischka committed 2025-12-12 11:47:43 +01:00
1 parent 212a9ec64c
commit 43a1abdd31
11 files changed
+526 -4

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Set pipeline for MJPEG HTTP streaming
SOCKET="/tmp/vizion_control.sock"
PORT="${1:-8080}"
echo "Setting MJPEG HTTP streaming pipeline on port $PORT..."
echo "{\"command\":\"set_pipeline\",\"params\":{\"pipeline\":\"videoconvert ! jpegenc ! multipartmux ! tcpserversink host=0.0.0.0 port=$PORT\"}}" | socat - UNIX-CONNECT:$SOCKET
echo ""
echo "Pipeline set. Start streaming with start_stream.sh"
echo "View stream in browser: http://localhost:$PORT"