22 lines
547 B
Bash
Executable file
22 lines
547 B
Bash
Executable file
#!/bin/bash
|
|
set -e
|
|
|
|
OPTS=""
|
|
|
|
for INFILE in "$@"
|
|
do
|
|
if [[ "$1" =~ ^--.* ]]
|
|
then
|
|
echo "OPTION: $1"
|
|
OPTS="$OPTS $1"
|
|
shift
|
|
else
|
|
echo "FILE: $INFILE"
|
|
|
|
prep-vid $OPTS "$INFILE" "${INFILE%.mp4}.480p.sdr.thumb.jpg"
|
|
prep-vid $OPTS "$INFILE" "${INFILE%.mp4}.1080p.sdr.h264.mp4"
|
|
prep-vid $OPTS "$INFILE" "${INFILE%.mp4}.1080p.hdr.vp9.webm"
|
|
prep-vid $OPTS "$INFILE" "${INFILE%.mp4}.1080p.hdr.av1.webm"
|
|
prep-vid $OPTS "$INFILE" "${INFILE%.mp4}.2160p.hdr.av1.webm"
|
|
fi
|
|
done
|