28 lines
642 B
Bash
28 lines
642 B
Bash
|
#!/bin/bash -e
|
||
|
|
||
|
#####################################################
|
||
|
#
|
||
|
# This script will increase the contrast of an input
|
||
|
# video by 2 (acceptable values -1000 to 1000) and
|
||
|
# increases the brightness by 0.4 (-1 to 1)
|
||
|
#
|
||
|
# Usage: bash ffmpeg/filter/brightness.sh <input video> <output video>
|
||
|
#
|
||
|
#####################################################
|
||
|
|
||
|
INPUT="${1}"
|
||
|
OUTPUT="${2}"
|
||
|
|
||
|
# Check if output file extension is .mov
|
||
|
if [[ "${OUTPUT}" != *".mov" ]]; then
|
||
|
echo "Please use an .mov extension on your output file argument"
|
||
|
exit 1
|
||
|
fi
|
||
|
|
||
|
ffmpeg -i "${INPUT}" \
|
||
|
-vf eq=contrast=2:brightness=0.4 \
|
||
|
-c:v prores_ks \
|
||
|
-profile:v 3 \
|
||
|
"${OUTPUT}"
|
||
|
|