This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <FileConstants.au3> | |
; Pause/Break to "turn on" and "turn off". | |
; While turned on, writes one line from the text file defined by $FILENAME and then presses "Enter" every $SLEEPFOR millseconds. | |
; Defaults = Kafka's Metamorphosis, 3 seconds. | |
; | |
; If you have never needed to do this, don't worry about it. Just don't worry about it. | |
Global Const $FILENAME = "metamorphosis.txt" | |
Global Const $SLEEPFOR = 3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gif() { | |
for file in "$@" | |
do | |
echo "${file%.*}".gif | |
ffmpeg -i "$file" -filter_complex "[0:v] fps=15,scale=w=${WIDTH:-960}:h=-1,split [a][b];[a] palettegen [p];[b] fifo [b]; [b][p] paletteuse" "${file%.*}".gif | |
done | |
} |