23 lines
481 B
Bash
Executable file
23 lines
481 B
Bash
Executable file
#!/bin/sh
|
|
|
|
OPTS=""
|
|
PEAK=1000
|
|
|
|
for INFILE in "$@"
|
|
do
|
|
if [[ "$1" =~ ^--.* ]]
|
|
then
|
|
echo "OPTION: $1"
|
|
OPTS="$OPTS $1"
|
|
shift
|
|
else
|
|
echo "FILE: $INFILE"
|
|
|
|
ffmpeg \
|
|
-i "$INFILE" \
|
|
-crf 22 \
|
|
-vf "zscale=t=linear,tonemap=hable:peak=$PEAK:desat=0.0,zscale=t=bt709:p=bt709:m=bt709:r=full:dither=ordered,vibrance=0.2,format=yuv420p" \
|
|
$OPTS \
|
|
-y "${INFILE%.mp4}-sdr.mp4"
|
|
fi
|
|
done
|