13 lines
466 B
Bash
Executable File
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"
|