add GStreamer helper scripts
This commit is contained in:
12
scripts/set_pipeline_mjpeg.sh
Executable file
12
scripts/set_pipeline_mjpeg.sh
Executable 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"
|
||||
Reference in New Issue
Block a user