Created
September 24, 2019 06:43
-
-
Save monsieuroeuf/85ea6090ab91f93d229accb22dbc0194 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
#!/usr/local/bin/zsh | |
# choice script by IAN | |
function prores() { | |
select choice in proxy LT regular HQ; do | |
case $choice in | |
proxy) | |
echo Setting profile to proxy | |
profile=0 | |
break | |
;; | |
LT) | |
echo Setting profile to LT | |
profile=1 | |
break | |
;; | |
HQ) | |
echo Setting profile to HQ | |
profile=3 | |
break | |
;; | |
regular) | |
echo Setting profile to regular | |
profile=2 | |
break | |
;; | |
quit) | |
echo FINE | |
exit 1 | |
;; | |
esac | |
done | |
for f in "$@"; do | |
ffmpeg -i $f -codec:v prores -profile:v $profile -an ${f:r}-prores.mov | |
done | |
} | |
while getopts ':m"' arg; do | |
case $arg in | |
m) echo "I'm gonna mute stuff"; mute=1;; | |
\*) echo blah;; | |
\?) echo invalid option: $OPTARG;; | |
esac | |
done | |
prores "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment