using mpv
authorMatthew Owens <matthew@owens.tech>
Mon, 24 Aug 2020 13:31:37 +0000 (14:31 +0100)
committerMatthew Owens <matthew@owens.tech>
Mon, 24 Aug 2020 13:31:37 +0000 (14:31 +0100)
camtoggle

index affd652..e78c746 100755 (executable)
--- a/camtoggle
+++ b/camtoggle
@@ -1,4 +1,5 @@
 #!/bin/bash
 #pkill -f /dev/video || mpv --geometry=-0-0 --autofit=30% --no-cache-pause /dev/video0
 #pkill -f camout.mkv || ffmpeg -f mjpg -video_size 640x480 -i /dev/video0 camout.mkv ; mpv --geometry=-0-0 --autofit=30% camout.mkv
-pkill -f vlc || cvlc v4l2:///dev/video0 --live-caching=10 
+#pkill -f vlc || cvlc v4l2:///dev/video0 --live-caching=10 
+mpv av://v4l2:/dev/video0 --profile=low-latency --untimed --osc=no