Files
vizionStreamer/scripts/set_pipeline_mjpeg.sh
2025-12-12 11:47:43 +01:00

13 lines
466 B
Bash
Executable File

#!/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"