aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rwxr-xr-xffmpeg-facecam6
-rwxr-xr-xffmpeg-screenrecord8
3 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b20a5b6..1013b4e 100644
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,8 @@ SCRIPTS = addressgrep \
14 dmenu-unmount \ 14 dmenu-unmount \
15 dmenu-urlselect \ 15 dmenu-urlselect \
16 dmenu-websearch \ 16 dmenu-websearch \
17 ffmpeg-screenrecord \
18 ffmpeg-facecam \
17 mail-checknow \ 19 mail-checknow \
18 mail-compose \ 20 mail-compose \
19 notify-battery \ 21 notify-battery \
diff --git a/ffmpeg-facecam b/ffmpeg-facecam
new file mode 100755
index 0000000..d15a052
--- /dev/null
+++ b/ffmpeg-facecam
@@ -0,0 +1,6 @@
1#!/bin/sh
2
3# Opens a window streaming from the webcam
4# Requires: ffplay (part of ffmpeg)
5
6ffplay -i /dev/video0
diff --git a/ffmpeg-screenrecord b/ffmpeg-screenrecord
new file mode 100755
index 0000000..cdca2dc
--- /dev/null
+++ b/ffmpeg-screenrecord
@@ -0,0 +1,8 @@
1#!/bin/sh
2
3# One-line screen record with ffmpeg (I always forget the command)
4# Requires: ffmpeg
5
6outfile=${1:-output.mkv}
7
8ffmpeg -f x11grab -i :0 -f pulse -i default $outfile

Generated with cgit - Back to sebastiano.tronto.net