initial commit

This commit is contained in:
user
2025-07-15 21:10:37 -04:00
commit 1d214b23f3
7 changed files with 214 additions and 0 deletions

21
.local/bin/screenshare Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
if ! lsmod | grep -q v4l2loopback; then
echo "Loading v4l2loopback kernel module..."
sudo modprobe v4l2loopback devices=1 video_nr=10 card_label="Virtual Video Feed" exclusive_caps=1
else
echo "v4l2loopback is already loaded."
fi
if [ ! -e /dev/video10 ]; then
echo "/dev/video10 not found. Ensure the module loaded correctly."
exit 1
fi
echo "Setting permissions for /dev/video10..."
sudo chmod 666 /dev/video10
echo "Starting FFmpeg..."
ffmpeg -f x11grab -video_size 1920x1080 -framerate 60 -i :0.0+0,0 \
-vf "scale=1280:720,format=yuv420p" \
-f v4l2 /dev/video10