summaryrefslogtreecommitdiff
path: root/testcam
diff options
context:
space:
mode:
Diffstat (limited to 'testcam')
-rwxr-xr-xtestcam7
1 files changed, 6 insertions, 1 deletions
diff --git a/testcam b/testcam
index 7b36cd1..d126306 100755
--- a/testcam
+++ b/testcam
@@ -1,3 +1,8 @@
#!/bin/sh
-ffmpeg -f v4l2 -i /dev/video0 -f matroska - | mpv -
+# ffmpeg -f v4l2 -i /dev/video0 -f matroska - | mpv -
+
+ffmpeg -f v4l2 -input_format mjpeg -framerate 30 \
+ -i /dev/video0 \
+ -vcodec copy -f matroska - |
+ mpv --no-cache --demuxer-readahead-secs=0 --untimed -