aboutsummaryrefslogtreecommitdiff
path: root/zenbook/bin/record-webcam
diff options
context:
space:
mode:
authorCamil Staps2019-05-26 21:21:42 +0200
committerCamil Staps2019-05-26 21:21:42 +0200
commit6be6ec751072c83d0181c0de15740de8afd5b9ab (patch)
tree4fc2c98407c8b0bfe62e6c856a06578eeebe8b72 /zenbook/bin/record-webcam
parentUpdate to TeX Live 2019 (diff)
Add webcam recorder script
Diffstat (limited to 'zenbook/bin/record-webcam')
-rwxr-xr-xzenbook/bin/record-webcam6
1 files changed, 6 insertions, 0 deletions
diff --git a/zenbook/bin/record-webcam b/zenbook/bin/record-webcam
new file mode 100755
index 0000000..fd325ab
--- /dev/null
+++ b/zenbook/bin/record-webcam
@@ -0,0 +1,6 @@
+#!/bin/sh
+# https://unix.stackexchange.com/q/58526/37050
+cvlc \
+ v4l2:///dev/video0:width=640:height=480 \
+ :input-slave=alsa://hw:1,0 \
+ --sout="#transcode{vcodec=theo,vb=2000,fps=8,acodec=vorb,ab=90,channels=1,samplerate=44100}:standard{access=file,mux=ogg,dst=recorded.ogg}"