commit adb3b867f5595645779e1d50ada271eb755ccf69 parent 3098a157c8e6527518849ff73da0c642b8151ac7 Author: Sebastiano Tronto <sebastiano@tronto.net> Date: Wed, 13 Apr 2022 14:52:30 +0200 Added ffmpeg one-liners Diffstat:
M | Makefile | | | 2 | ++ |
A | ffmpeg-facecam | | | 6 | ++++++ |
A | ffmpeg-screenrecord | | | 8 | ++++++++ |
3 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/Makefile b/Makefile @@ -14,6 +14,8 @@ SCRIPTS = addressgrep \ dmenu-unmount \ dmenu-urlselect \ dmenu-websearch \ + ffmpeg-screenrecord \ + ffmpeg-facecam \ mail-checknow \ mail-compose \ notify-battery \ diff --git a/ffmpeg-facecam b/ffmpeg-facecam @@ -0,0 +1,6 @@ +#!/bin/sh + +# Opens a window streaming from the webcam +# Requires: ffplay (part of ffmpeg) + +ffplay -i /dev/video0 diff --git a/ffmpeg-screenrecord b/ffmpeg-screenrecord @@ -0,0 +1,8 @@ +#!/bin/sh + +# One-line screen record with ffmpeg (I always forget the command) +# Requires: ffmpeg + +outfile=${1:-output.mkv} + +ffmpeg -f x11grab -i :0 -f pulse -i default $outfile