eq (2) - brightness

Watch on youtube.com
doc

https://ffmpeg.org/ffmpeg-filters.html#eq

brightness=-1.0 … 1.0

The value must be a float value in range -1.0 to 1.0. The default value is “0”.

eq=brightness=-1.0

00:00:00
#! /bin/sh
ifn="Pexels_flowers_fast.mp4"
ifnb="`basename \"${ifn}\" .mp4`"
pref="`basename $0 .sh`"

ffmpeg -y -i "${ifn}" \
  -vf "eq=brightness=-1.0" \
  -an "${pref}_${ifnb}.mp4"

eq=brightness=-0.5

00:00:08
#! /bin/sh
ifn="Pexels_flowers_fast.mp4"
ifnb="`basename \"${ifn}\" .mp4`"
pref="`basename $0 .sh`"

ffmpeg -y -i "${ifn}" \
  -vf "eq=brightness=-0.5" \
  -an "${pref}_${ifnb}.mp4"

eq=brightness=0.0

00:00:15
#! /bin/sh
ifn="Pexels_flowers_fast.mp4"
ifnb="`basename \"${ifn}\" .mp4`"
pref="`basename $0 .sh`"

ffmpeg -y -i "${ifn}" \
  -vf "eq=brightness=0.0" \
  -an "${pref}_${ifnb}.mp4"

eq=brightness=0.5

00:00:23
#! /bin/sh
ifn="Pexels_flowers_fast.mp4"
ifnb="`basename \"${ifn}\" .mp4`"
pref="`basename $0 .sh`"

ffmpeg -y -i "${ifn}" \
  -vf "eq=brightness=0.5" \
  -an "${pref}_${ifnb}.mp4"

eq=brightness=1.0

00:00:31
#! /bin/sh
ifn="Pexels_flowers_fast.mp4"
ifnb="`basename \"${ifn}\" .mp4`"
pref="`basename $0 .sh`"

ffmpeg -y -i "${ifn}" \
  -vf "eq=brightness=1.0" \
  -an "${pref}_${ifnb}.mp4"

Using expression

eq=brightness=(-1.0+t/30*2.0):eval=frame

In this example, since “${ifn}” is a video of 30 seconds, it instructs to change by 1 / 15 per second.

00:00:38
#! /bin/sh
ifn="Pexels_flowers.mp4"
ifnb="`basename \"${ifn}\" .mp4`"
pref="`basename $0 .sh`"

ffmpeg -y -i "${ifn}" \
  -vf "eq=brightness=(-1.0+t/30*2.0):eval=frame" \
  -an "${pref}_${ifnb}.mp4"