add GStreamer helper scripts

This commit is contained in:
Maik Jurischka committed 2025-12-12 11:47:43 +01:00
1 parent 212a9ec64c
commit 43a1abdd31
11 files changed
+526 -4

No files matched your search

+12
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"