13 lines
440 B
Bash
Executable File
13 lines
440 B
Bash
Executable File
#!/bin/bash
|
|
# Set pipeline for recording to file
|
|
|
|
SOCKET="/tmp/vizion_control.sock"
|
|
FILE="${1:-/tmp/vizion_recording.mp4}"
|
|
|
|
echo "Setting file recording pipeline to $FILE..."
|
|
echo "{\"command\":\"set_pipeline\",\"params\":{\"pipeline\":\"videoconvert ! x264enc ! mp4mux ! filesink location=$FILE\"}}" | socat - UNIX-CONNECT:$SOCKET
|
|
|
|
echo ""
|
|
echo "Pipeline set. Start recording with start_stream.sh"
|
|
echo "Recording will be saved to: $FILE"
|