Created
February 19, 2018 09:20
-
-
Save aji/c5e3ec24633f31d49a8db3d6cc53cd6a to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/sh | |
CTR=0 | |
while [ -f "out$CTR.mkv" ]; do | |
let CTR=CTR+1 | |
done | |
if [ -z "$1" ]; then | |
echo "missing input argument" | |
exit 1 | |
fi | |
ffmpeg -f lavfi -i 'amovie='"$1"', asplit [a][out1]; [a] showcqt=fps=30:count=5 [out0]' \ | |
-vf scale=3840:2160 \ | |
-c:v libx264 -crf 24 -preset ultrafast \ | |
-profile:v high -pix_fmt yuv420p \ | |
-c:a copy \ | |
out$CTR.mkv | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment