diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-09-25 14:00:39 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-09-25 14:00:39 +0200 |
commit | 78a1a2e9017594227dd7695ad80a1f8d89c434fe (patch) | |
tree | 72085c77067306f9ab9dac5ffa03c89e91c781e5 /.local/share/bin/ccpreview | |
parent | d692d4baf742f8756ee2048a1a5ba3c6c77d1952 (diff) |
script shuffle
Diffstat (limited to '.local/share/bin/ccpreview')
-rwxr-xr-x | .local/share/bin/ccpreview | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.local/share/bin/ccpreview b/.local/share/bin/ccpreview new file mode 100755 index 0000000..158541b --- /dev/null +++ b/.local/share/bin/ccpreview @@ -0,0 +1,17 @@ +#!/bin/sh + +caffeine + +FRAMERATE="$2" +RESOLUTION="$1" +DEVICE="/dev/$(readlink /dev/v4l/by-id/usb-MACROSILICON_USB_Video-* | head -n1 | cut -c7-)" + +mpv --demuxer-lavf-format=video4linux2 \ + --demuxer-lavf-o-set=input_format=mjpeg,framerate="$FRAMERATE",resolution="$RESOLUTION" \ + --cache=no \ + --pause=no \ + --force-seekable=no \ + --no-osc \ + --no-input-default-bindings \ + "av://v4l2:$DEVICE" + # &> /dev/null & disown |