Improved latency in camtoggle script

As the script had about 2 seconds of video latency for me, I found a command from the arch wiki to work way better for me. Hope I didn't miss anything obvious.
This commit is contained in:
Yunus Kahveci 2020-07-16 18:44:26 +02:00 committed by GitHub
parent d3b1e5371a
commit e5f6cebc2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,2 +1,2 @@
#!/bin/sh
pkill -f /dev/video || mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --geometry=-0-0 --autofit=30% --title="mpvfloat" /dev/video0
pkill -f /dev/video || mpv --no-osc --no-input-default-bindings --input-conf=/dev/null --geometry=-0-0 --autofit=30% --title="mpvfloat" av://v4l2:/dev/video0 --profile=low-latency --untimed