New script that should've been added a while a go

master
Leo Coogan 4 years ago
parent 761e357933
commit 8f26e9dca7
No known key found for this signature in database
GPG Key ID: B4F9BE9CF7FF8A5C

@ -41,3 +41,5 @@ db is licensed under the Unlicense. A license copy is provided in LICENSES/Unlic
eliza is licensed under the Unlicense. A license copy is provided in LICENSES/Unlicense.txt. eliza is licensed under the Unlicense. A license copy is provided in LICENSES/Unlicense.txt.
inc is licensed under the Unlicense. A license copy is provided in LICENSES/Unlicense.txt. inc is licensed under the Unlicense. A license copy is provided in LICENSES/Unlicense.txt.
ffr is licensed under

@ -10,6 +10,7 @@ A collection of useful scripts. These scripts are written by various authors. At
| ffconv | Batch convert mkvs to mp4s. | | ffconv | Batch convert mkvs to mp4s. |
| ffconv-a | Batch convert from one format to another. | | ffconv-a | Batch convert from one format to another. |
| ffconv-ar | Batch convert from one format to another without preserving metadata. | | ffconv-ar | Batch convert from one format to another without preserving metadata. |
| ffr | Record a given window with ffmpeg to the current directory. |
| gpltopnm | Convert gpl to ppm. | | gpltopnm | Convert gpl to ppm. |
| inc | Copy one file to the number of files by hex in the current directory. | | inc | Copy one file to the number of files by hex in the current directory. |
| makeself | Make self-extractable archives for *nix-likes. | | makeself | Make self-extractable archives for *nix-likes. |

@ -0,0 +1,5 @@
#!/bin/dash
ffmpeg -f x11grab -framerate 25 \
$(xwininfo | gawk 'match($0, /-geometry ([0-9]+x[0-9]+).([0-9]+).([0-9]+)/, a)\
{ print "-video_size " a[1] " -i +" a[2] "," a[3] }') \
$(date +%Y-%m-%d_%H-%M_%S).mp4
Loading…
Cancel
Save