add GStreamer helper scripts

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

12
scripts/set_pipeline_mjpeg.sh Executable file
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"