Update videocap

added generic echo, removed fs and alwaysvisible
This commit is contained in:
habiwan authored and GitHub committed 2026-05-04 12:14:31 +01:00
1 parent 91a733720f
commit 52e9dc91ee
1 file changed
+3 -3
+3 -3
View File
@@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
clear
# 1. Find the Video device # 1. Find the Video device
DEVICE=$(v4l2-ctl --list-devices | grep -A 1 -i "Live Gamer" | grep "/dev/video" | head -n 1 | xargs) DEVICE=$(v4l2-ctl --list-devices | grep -A 1 -i "Live Gamer" | grep "/dev/video" | head -n 1 | xargs)
@@ -23,11 +23,11 @@ if [ ! -z "$SOURCE_NAME" ]; then
pactl set-source-volume "$SOURCE_NAME" 60% pactl set-source-volume "$SOURCE_NAME" 60%
fi fi
echo "🎮 Launching Video (1080p)..." echo "🎮 Launching Video (Live Gamer EXTREME 3 1080p)..."
# 4. Launch Video # 4. Launch Video
# Added -probesize and -analyzeduration to make the window pop up faster # Added -probesize and -analyzeduration to make the window pop up faster
ffplay -hide_banner -fs -alwaysontop \ ffplay -hide_banner \
-f v4l2 -video_size 1920x1080 -framerate 60 -i "$DEVICE" \ -f v4l2 -video_size 1920x1080 -framerate 60 -i "$DEVICE" \
-fflags nobuffer+fastseek -probesize 32 -analyzeduration 0 \ -fflags nobuffer+fastseek -probesize 32 -analyzeduration 0 \
-flags low_delay -framedrop -an -flags low_delay -framedrop -an