blob: a12fcb8d479c2a47499150b1a0002cbbeacec606 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
# I have two cameras on my laptop and the first one is an IR camera (video0)
# If a second camera is present, use the second one
camera="/dev/video0"
[ -e /dev/video2 ] && camera="/dev/video2"
[ -n "$1" ] && camera="$1"
pkill -f /dev/video || mpv \
--gpu-context=wayland \
--profile=low-latency \
--no-osc \
--no-input-default-bindings \
--input-conf=/dev/null \
--geometry=-0-0 \
--autofit=25% \
--title="mpvfloat" "av://v4l2:$camera"
|