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

14
scripts/set_pipeline_udp.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
# Set pipeline for UDP streaming (H.264)
SOCKET="/tmp/vizion_control.sock"
HOST="${1:-192.168.1.100}"
PORT="${2:-5000}"
echo "Setting UDP streaming pipeline to $HOST:$PORT..."
echo "{\"command\":\"set_pipeline\",\"params\":{\"pipeline\":\"videoconvert ! x264enc tune=zerolatency bitrate=2000 ! rtph264pay ! udpsink host=$HOST port=$PORT\"}}" | socat - UNIX-CONNECT:$SOCKET
echo ""
echo "Pipeline set. Start streaming with start_stream.sh"
echo "To receive stream on target machine:"
echo " gst-launch-1.0 udpsrc port=$PORT ! application/x-rtp,encoding-name=H264 ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! autovideosink"