aboutsummaryrefslogtreecommitdiff
path: root/zenbook/bin/record-webcam
diff options
context:
space:
mode:
authorCamil Staps2019-05-29 13:44:29 +0200
committerCamil Staps2019-05-29 13:44:29 +0200
commit9cdd071fb564910e79d7ad99abb642a9b24b0b35 (patch)
tree8e7ec60fc5ae75e015125a2321c2f9b26a05b05a /zenbook/bin/record-webcam
parentRename clean-systemdynamic to abcclean; make bash function to make it easier ... (diff)
record-webcam: use date as file name
Diffstat (limited to 'zenbook/bin/record-webcam')
-rwxr-xr-xzenbook/bin/record-webcam3
1 files changed, 2 insertions, 1 deletions
diff --git a/zenbook/bin/record-webcam b/zenbook/bin/record-webcam
index fd325ab..723985b 100755
--- a/zenbook/bin/record-webcam
+++ b/zenbook/bin/record-webcam
@@ -1,6 +1,7 @@
#!/bin/sh
# https://unix.stackexchange.com/q/58526/37050
+DATE="$(date +%Y-%m-%d-%H-%M-%S)"
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}"
+ --sout="#transcode{vcodec=theo,vb=2000,fps=8,acodec=vorb,ab=90,channels=1,samplerate=44100}:standard{access=file,mux=ogg,dst=$DATE.ogg}"