---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://framesfield.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: "AI Video Color Match, Film Grain and Master Export"
description: "Turn mismatched raw clips from Google Gemini Omni Flash, Kling 4.0, Runway Gen-4 Turbo, and Alibaba Wan 2.2 into one cohesive commercial master for $0 extra API cost: conform every clip to uniform 24fps 1080p, neutralize exposure/saturation cast, apply unified 35mm temporal film grain (`noise=alls=7:allf=t+u`), append a sharp static PNG end-card, and normalize audio to -14 LUFS."
canonical: "https://framesfield.com/workflows/ai-video-color-match-and-film-grain-finishing"
---

# AI Video Color Match, Film Grain and Master Export

> Turn mismatched raw clips from Google Gemini Omni Flash, Kling 4.0, Runway Gen-4 Turbo, and Alibaba Wan 2.2 into one cohesive commercial master for $0 extra API cost: conform every clip to uniform 24fps 1080p, neutralize exposure/saturation cast, apply unified 35mm temporal film grain (`noise=alls=7:allf=t+u`), append a sharp static PNG end-card, and normalize audio to -14 LUFS.

- **Canonical URL:** https://framesfield.com/workflows/ai-video-color-match-and-film-grain-finishing
- **Difficulty:** Intermediate
- **Estimated Time:** 15 – 20 min
- **Estimated Cost:** $0 extra API spend (local finishing)
- **Last Verified:** 2026-12-01
- **Tools Used:** Google Gemini Omni 1.2 Flash (https://framesfield.com/specs/gemini-omni-flash), Kling 4.0 (https://framesfield.com/specs/kling-4), Runway Gen-4 Turbo (https://framesfield.com/specs/runway-gen-4), Alibaba Wan 2.2 (A14B MoE) (https://framesfield.com/specs/wan-2-2)

## Pipeline Architecture

01. **Mixed Raw Clips** (Gemini Omni / Kling / Runway / Wan): Collect approved shots + 1920x1080 static PNG card
02. **24fps & Neutral Grade** (Resolve / FFmpeg eq): Lock 24fps CFR, match black floor & neutral cast
03. **Unified 35mm Grain** (noise=alls=7:allf=t+u): Apply shared temporal grain across entire sequence
04. **Broadcast MP4 Master** (H.264 yuv420p / -14 LUFS): Export +faststart MP4 and run ffprobe QC check

## Playbook

## Why 15 minutes of finishing outperforms 10 extra video retries

Creators regularly burn `$10–$20` re-rolling AI video clips hoping two different models magically match in contrast and saturation. Even inside a single model family, cutting from a sunlit wide shot to an interior macro introduces tiny exposure and sharpness discrepancies.

Treating raw AI renders as **camera originals** rather than finished deliverables flips the math completely. Using free DaVinci Resolve or the single-pass FFmpeg master script below costs `$0` in API credits and binds mixed footage from [Google Gemini Omni Flash](/specs/gemini-omni-flash), [Kling 4.0](/specs/kling-4), [Runway Gen-4 Turbo](/specs/runway-gen-4), and [Alibaba Wan 2.2](/specs/wan-2-2)—or any other generator such as [ByteDance Seedance 2.5](/specs/seedance-2-5), [MiniMax H3](/specs/minimax-h3), [PixVerse V6](/specs/pixverse-v6), [Pika H3 Flex](/specs/pika-h3-flex), or [Vidu Q4](/specs/vidu-q4)—into one cohesive film look.

## Step 1: Trim temporal drift and conform frame rates cleanly

Before touching color, fix cadence and duration flaws that immediately betray AI origin:
- Lock every sequence to **constant `24.000 fps`** (`fps=24`)—mixing `30fps` and `24fps` clips causes visible judder on smooth pans.
- Do not assume a source frame rate. Gemini Omni Flash and Runway Gen-4 Turbo list `24 fps`, but the Kling 4.0 resellers do not state one, so run `ffprobe -v error -select_streams v:0 -show_entries stream=r_frame_rate,width,height -of csv=p=0 clip.mp4` on each clip before you conform.
- Trim the first `4–8` frames whenever a model pauses slightly before camera motion starts, and trim the tail `10–18` frames before subtle object morphing creeps in.
- Keep intermediate cuts in high-bitrate ProRes or CRF `16` until final export so you never compound compression artifacts.

## Step 2: Balance primary contrast before applying any shared look

Clips from different generators rarely share the same contrast, saturation, and midtone balance, and native resolution differs too: Gemini Omni Flash and Runway Gen-4 Turbo render at 720p natively (Gemini's 1080p is an upscale), so judge each clip on scopes instead of by eye. Pull overly saturated clips back by `-5%` (`saturation=0.95`) and align shadow floors on scopes first. Once clips sit neutrally side-by-side, apply one restrained shared curve across the whole timeline.

## Step 3: Add temporal 35mm grain and crisp static overlays

Execute `finish-ai-video-master.sh` from the copy box below (tested live on FFmpeg 9.0.1). The `noise=alls=7:allf=t+u` filter overlays fine temporal cinema grain across every frame while `scale=...:flags=lanczos` keeps 720p upscales crisp without ringing.

Whenever your edit needs speaker titles, callout bars, or a 4-second logo end-card, composite razor-sharp static PNGs rather than prompting titles inside video models—follow [Skill 38: FFmpeg Motion Titles and Safe End-Card Skill](/skills/motion-graphics-lower-thirds-ffmpeg-skill).

## Step 4: Inspect final delivery compliance

Always run `ffprobe` (or delegate the rendered `.mp4` to [Skill 11: Video Delivery QC Subagent](/skills/video-qc-delivery-agent)) to confirm `h264`, `yuv420p`, `24/1`, `48000 Hz` stereo AAC, and `-14 LUFS`. Dive deeper into codecs, ProRes archives, and Remotion batch motion graphics in [Guide 11: AI Video Post-Production: Grading, VFX and Motion](/guides/ai-video-post-production-color-and-motion-guide).

## Copyable Asset: Verified One-Pass FFmpeg Color Match, 35mm Grain & -14 LUFS Conform Script (finish-ai-video-master.sh)

```bash
#!/usr/bin/env bash
set -euo pipefail

# Usage: ./finish-ai-video-master.sh joined_cut.mp4 final_master.mp4
IN="${1:?Provide joined input MP4}"
OUT="${2:-final_master.mp4}"

# Verify duration for clean 0.35s tail fade
DUR=$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$IN")
FADE_OUT=$(awk -v d="$DUR" 'BEGIN { printf "%.2f", (d > 0.5 ? d - 0.35 : 0) }')

# Single-pass Rec.709 neutral tone pull + temporal 35mm grain + -14 LUFS loudness
ffmpeg -y -i "$IN" \
  -vf "scale=1920:1080:force_original_aspect_ratio=increase:flags=lanczos,crop=1920:1080,fps=24,eq=contrast=1.04:saturation=0.95:brightness=-0.01,noise=alls=7:allf=t+u,fade=t=in:st=0:d=0.25,fade=t=out:st=${FADE_OUT}:d=0.35" \
  -af "loudnorm=I=-14:TP=-1.0:LRA=7" \
  -c:v libx264 -crf 18 -preset slow -pix_fmt yuv420p -movflags +faststart \
  -c:a aac -b:a 192k -ar 48000 \
  "$OUT"

echo "Master complete: $OUT"
ffprobe -v error -select_streams v:0 -show_entries stream=codec_name,pix_fmt,width,height,r_frame_rate -of csv=p=0 "$OUT"
```

## FAQ

### Why apply temporal film grain AFTER joining clips rather than per clip?

Applying grain globally across the assembled timeline gives every generator—whether 720p Runway Gen-4 Turbo or upscaled 1080p Gemini Omni Flash—an identical photographic emulsion density and continuous temporal motion, hiding texture mismatches immediately.

### What does noise=alls=7:allf=t+u do in FFmpeg?

alls=7 adds conservative level-7 luma/chroma grain (subtle enough to look like fine 35mm cinema stock without turning muddy), while allf=t+u generates temporally varying uniform noise so the grain moves organically frame-to-frame rather than sticking frozen like dirty glass.

### Will this script work if one of my AI clips is silent?

Ensure every silent B-roll clip (such as Runway Gen-4 Turbo or Luma Ray 3.2, which output no audio) receives a 48kHz stereo anullsrc audio stream during concat before running loudnorm—see Skill 02 (FFmpeg Loudness Conform) for exact silent-clip padding.
