allow pass-through of any --param
This commit is contained in:
parent
f772f4a618
commit
da1c67fad3
1 changed files with 16 additions and 14 deletions
14
pack-set
14
pack-set
|
@ -1,15 +1,16 @@
|
|||
#!/bin/sh
|
||||
|
||||
OPTS=""
|
||||
if [ "$1" == "--no-audio" ]
|
||||
then
|
||||
OPTS="--no-audio"
|
||||
shift
|
||||
fi
|
||||
|
||||
for INFILE in "$@"
|
||||
do
|
||||
echo "$INFILE"
|
||||
if [[ "$1" =~ ^--.* ]]
|
||||
then
|
||||
echo "OPTION: $1"
|
||||
OPTS="$OPTS $1"
|
||||
shift
|
||||
else
|
||||
echo "FILE: $INFILE"
|
||||
|
||||
#COMMON="$OPTS --exposure=-2.5 --peak=141"
|
||||
COMMON="$OPTS"
|
||||
|
@ -21,4 +22,5 @@ do
|
|||
|
||||
pack-vid $SMALL "$INFILE" "${INFILE%.mp4}-small.mp4"
|
||||
pack-vid $LARGE "$INFILE" "${INFILE%.mp4}-large.mp4"
|
||||
fi
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue