diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-04-13 14:52:30 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-04-13 14:52:30 +0200 |
| commit | adb3b867f5595645779e1d50ada271eb755ccf69 (patch) | |
| tree | c3532dd73922998056638e101552429f1456896c | |
| parent | 3098a157c8e6527518849ff73da0c642b8151ac7 (diff) | |
| download | scripts-adb3b867f5595645779e1d50ada271eb755ccf69.tar.gz scripts-adb3b867f5595645779e1d50ada271eb755ccf69.zip | |
Added ffmpeg one-liners
| -rw-r--r-- | Makefile | 2 | ||||
| -rwxr-xr-x | ffmpeg-facecam | 6 | ||||
| -rwxr-xr-x | ffmpeg-screenrecord | 8 |
3 files changed, 16 insertions, 0 deletions
| @@ -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 | |||
| 6 | ffplay -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 | |||
| 6 | outfile=${1:-output.mkv} | ||
| 7 | |||
| 8 | ffmpeg -f x11grab -i :0 -f pulse -i default $outfile | ||
