obv: create

This commit is contained in:
xfnw 2023-12-08 18:39:27 -05:00
parent 20ef8069dc
commit d31fb73bfc
1 changed files with 18 additions and 0 deletions

18
bin/obv Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
idiff() {
ffmpeg -i ~/screen.png -pattern_type glob -i 'i*.png' -filter_complex '[1]boxblur=1[m];[0][m]blend=all_mode=grainextract' o%03d.png
}
tile() {
montage -background black -geometry 683x -tile 2x o*.png m.png
}
mkdir -p ~/.cache/obv
cd ~/.cache/obv
while inotifywait -e close_write ~/screen.png
do
idiff
tile
done