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 /ffmpeg-screenrecord | |
| parent | 3098a157c8e6527518849ff73da0c642b8151ac7 (diff) | |
| download | scripts-adb3b867f5595645779e1d50ada271eb755ccf69.tar.gz scripts-adb3b867f5595645779e1d50ada271eb755ccf69.zip | |
Added ffmpeg one-liners
Diffstat (limited to '')
| -rwxr-xr-x | ffmpeg-screenrecord | 8 |
1 files changed, 8 insertions, 0 deletions
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 | ||
