diff options
author | Ben Sima <ben@bsima.me> | 2018-06-13 21:36:56 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2018-06-13 21:36:56 -0700 |
commit | 77c9a177b2b595d4ce25095b58e2388fe33cc97a (patch) | |
tree | 0853d5c92d67538760005b9c4635a90115bd7ba4 /vlog |
init
Diffstat (limited to 'vlog')
-rwxr-xr-x | vlog | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +#!/usr/bin/env sh +# +# https://gist.github.com/dpacmittal/9f0e1aea8a3732d8f7aec7b1dadc8cda + +FILE=$(date +%Y.%m.%d..%H.%M) + +ffmpeg \ + -f alsa -i default \ + -f x11grab -video_size `xdpyinfo | grep 'dimensions:'|awk '{print $2}'` -framerate 25 -i :0.0 \ + -f video4linux2 -i /dev/video0 \ + -filter_complex '[2:v]scale=480:-1[cam];[1:v][cam]overlay=W-w-10:H-h-10' \ + -ab 192 -acodec pcm_s16le -qscale 0 \ + -c:v libx264 -crf:v 18 -c:a flac \ + $HOME/Videos/vlog/$FILE.mkv |