initial commit

This commit is contained in:
Ranomier 2024-11-11 02:31:05 +01:00
commit b39b82463b
13 changed files with 214 additions and 0 deletions

15
webcam Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
# docstring=open the webcam or v4l2 /dev/video* device
set -E -o pipefail
if [[ "-h" == "$1" ]]; then
echo "-l list devices"
exit 0
elif [[ "-l" == "$1" ]]; then
ls -la /dev/video*
exit 0
fi
device="/dev/video""${1:-"0"}"
echo ">>> opening: $device"
mpv --panscan=1.0 --no-osc --profile=low-latency --untimed "av://v4l2:$device"