dotfiles/scripts/webcam

13 lines
136 B
Plaintext
Raw Permalink Normal View History

2023-12-25 11:21:57 +01:00
#!/bin/bash
if [ -z "$1" ]
then
res="300"
else
res=$1
fi
v4l2-ctl --set-fmt-video=width=$res,height=$res
mpv /dev/video0