videobeaux

Logo

The friendly multilateral video toolkit built for artists by artists.

View the Project on GitHub schwwaaa/videobeaux

gamma_fix

:contentReference[oaicite:1]{index=1}

Description

Normalizes gamma, brightness, and exposure levels for broadcast-safe or web-safe consistency across diverse footage.

Purpose

gamma_fix is designed to correct inconsistent exposure, contrast, and gamma shifts that often appear when mixing footage from multiple cameras, phones, archives, or lighting conditions.
It provides predictable luminance normalization suitable for:

How It Works

  1. Luma Analysis
    The program evaluates input brightness and computes adjustments toward target_yavg.
  2. Contrast Shaping
    min_contrast and max_contrast constrain the allowed contrast stretch, preventing overcorrection.
  3. Gamma Adjustment
    A user-specified gamma curve can brighten or darken midtones without clipping shadows or highlights.
  4. Saturation Shaping
    sat provides global saturation control to compensate for washed-out or overly vivid sources.
  5. Legalization
    When enabled, legalize ensures output luminance stays within broadcast-safe IRE ranges.
  6. Encoding
    Output is encoded using the selected codec, preset, and CRF.

Program Template

videobeaux -P gamma_fix \
  -i input.mp4 \
  -o output.mp4 \
  --target_yavg VALUE \
  --min_contrast VALUE \
  --max_contrast VALUE \
  --gamma VALUE \
  --sat VALUE \
  --legalize VALUE \
  --vcodec VALUE \
  --crf VALUE \
  --preset VALUE \
  --acodec VALUE \
  --ab VALUE

Arguments

Real World Example

videobeaux -P gamma_fix \
  -i myvideo.mp4 \
  -o gamma_fix_styled.mp4 \
  --target_yavg EXAMPLE \
  --min_contrast EXAMPLE \
  --max_contrast EXAMPLE \
  --gamma EXAMPLE \
  --sat EXAMPLE \
  --legalize EXAMPLE \
  --vcodec EXAMPLE \
  --crf EXAMPLE \
  --preset EXAMPLE \
  --acodec EXAMPLE \
  --ab EXAMPLE

Technical Notes

Quality Tips