summaryrefslogtreecommitdiff
path: root/bin/.bin/record
diff options
context:
space:
mode:
Diffstat (limited to 'bin/.bin/record')
-rwxr-xr-xbin/.bin/record30
1 files changed, 22 insertions, 8 deletions
diff --git a/bin/.bin/record b/bin/.bin/record
index 09ba7d1..86d9b1a 100755
--- a/bin/.bin/record
+++ b/bin/.bin/record
@@ -1,10 +1,24 @@
1#!/bin/bash 1#!/bin/bash
2 2
3ffmpeg -f x11grab \ 3usage() {
4-s 1920x1080 \ 4 echo "
5-an -i :0.0 \ 5screen recording using ffmpeg
6-c:v libvpx \ 6usage: ${0##*/} [ -w/a ]
7-b:v 5M \ 7
8-crf 10 \ 8option:
9-quality realtime \ 9 -w without audio
10-y ~/record.mkv 10 -a with audio
11"
12 exit 1
13}
14
15case $1 in
16 -w)
17 ffmpeg -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0 ~/screens/vids/record_$(date +%d-%b-%y-%I:%M%p).mkv
18 ;;
19 -a)
20 ffmpeg -video_size 1920x1080 -framerate 25 -f x11grab -i :0.0 -f pulse -ac 2 -i default ~/screens/vids/record_$(date +%d-%b-%y-%I:%M%p).mkv
21 ;;
22 *) usage
23esac
24