From e5f6cebc2a03e181f8073fe1dade679b5ff1820f Mon Sep 17 00:00:00 2001 From: Yunus Kahveci Date: Thu, 16 Jul 2020 18:44:26 +0200 Subject: [PATCH] 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. --- .local/bin/camtoggle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/camtoggle b/.local/bin/camtoggle index 05679c0c..ab745ca1 100755 --- a/.local/bin/camtoggle +++ b/.local/bin/camtoggle @@ -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