Saturation, Brightness, Contrast, BlackAndWhite, Grayscale, and Sepia.
Saturation
Adjust the color saturation of the clip.Constructor
Saturation multiplier. Values:
1.0= no change0.0= completely desaturated (grayscale)>1.0= more saturated colors<1.0= less saturated colors
Examples
Technical Details
- Converts frame from BGR to HSV color space
- Multiplies the S (saturation) channel by the factor
- Clamps values to valid range [0, 255]
- Converts back to BGR
src/movielite/vfx/color.py:7-43
Brightness
Adjust the brightness of the clip.Constructor
Brightness multiplier. Values:
1.0= no change>1.0= brighter<1.0= darker
Examples
Technical Details
The
Brightness effect uses Numba JIT compilation for optimized performance. Each pixel’s RGB values are multiplied by the factor and clamped to [0, 255].src/movielite/vfx/color.py:45-79
Contrast
Adjust the contrast of the clip.Constructor
Contrast multiplier. Values:
1.0= no change>1.0= more contrast (darker darks, brighter brights)<1.0= less contrast (more washed out)
Examples
Technical Details
The
Contrast effect uses Numba JIT compilation for optimized performance. It adjusts each pixel relative to the middle gray value (128).new_value = (old_value - 128) × factor + 128
Source: src/movielite/vfx/color.py:81-115
BlackAndWhite
Convert the clip to black and white (grayscale).Constructor
Example
Technical Details
- Converts frame to grayscale using OpenCV’s
cvtColor - Converts back to BGR (3-channel) format for consistency
- Uses standard RGB→Gray conversion weights
src/movielite/vfx/color.py:117-136
Grayscale
Alias forBlackAndWhite. Functionally identical.
Constructor
Example
src/movielite/vfx/color.py:138-141
Sepia
Apply a vintage sepia tone effect to the clip.Constructor
Intensity of the sepia effect. Values:
0.0= no effect (original colors)1.0= full sepia tone- Values between 0 and 1 blend between original and sepia
Examples
Technical Details
Applies a sepia transformation matrix to convert RGB values:cv2.addWeighted.
Source: src/movielite/vfx/color.py:143-188
Combining Color Effects
Multiple color effects can be combined for creative results:Color Grading Workflows
Warm and Vibrant
Cool and Muted
Vintage Film
Performance Considerations
Brightness and Contrast use Numba JIT compilation for optimized pixel-level operations. The first frame processed will compile the function, which may add a small delay. Subsequent frames will be very fast.Saturation and Sepia use OpenCV’s color space conversions and matrix transformations, which are highly optimized but slightly slower than pixel-level operations.See Also
- Vignette - Darken edges for cinematic look
- Glitch Effects - Creative distortion effects
- Blur Effects - Depth of field effects