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_file.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/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"