video-4k-normalization
Skill202 starsChanged 14 days agoMITView on GitHub
Normalizes a single video clip to unified 3840×2160 60FPS H.265 Main10 40Mbps + AAC 320kbps BT.709 SDR MP4 4K master (FFmpeg re-encode, HDR tone-mapped). Use before hard-cut merge when 4K (or near-4K) clips differ in color space, HDR/SDR, fps, or size. Triggers: video-4k-normalization, 4K normalization, video normalization, media conform, unify encode, color conform, tone map HDR, prepare for video-merge, mixed HDR/SDR.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- godot-fun/godot-agentword for word, first seen Nov 1, 2026
Other versions1 project uses a version of this.
Word for word · 1
- godot-fun/godot-agent★ 202100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository37 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/AGENTS.mdAGENTS.md
- ai-text-to-speechSkill
- audio-denoiseSkill
- audio-fadeSkill
- audio-loudness-normalizationSkill
- audio-sample-rate-standardizeSkill
- audio-splitSkill
- audio-to-oggSkill
- audio-to-textSkill
- audio-to-wavSkill
- audio-trimSkill
- audio-volume-adjustSkill
- file-naming-normalizationSkill
- git-commit-messageSkill
- image-inpaint-regionSkill
- image-region-remove-key-color-appSkill
- image-remove-backgroundSkill
- image-remove-white-backgroundSkill
- image-resizeSkill
- image-sprite-sheet-splitSkill
- image-to-pngSkill
- image-to-textSkill
- image-trimSkill
- storyboard-av-mixSkill
- storyboard-shot-to-htmlSkill
- storyboardSkill
- storyboard-ttsSkill
- video-compress-to-sizeSkill
- video-merge-gpuSkill
- video-mergeSkill
- video-publishSkill
- video-remove-audioSkill
- video-to-4kSkill
- video-to-60fpsSkill
- video-to-ogvSkill
- video-to-wavSkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 40
When this skill applies, read and follow dependency-manager — run scripts as documented, install missing tools into .dependency/.
- Very specific: line 42
Run normalize.py through .dependency/python/python.
- Distinctive: line 44
Use the bundled script — do not hand-write equivalent FFmpeg commands.
- Distinctive: line 90
Use the bundled script only.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Video 4K Normalization
Re-encode a clip to one merge-safe 4K master (same delivery specs as
video-to-4k, plus unified BT.709 SDR color):
| Spec | Value |
| Resolution | 3840×2160 |
| Frame rate | 60 FPS |
| Video | H.265 Main10 (libx265, yuv420p10le) |
| Video bitrate | 40 Mbps |
| Audio | AAC 320 kbps |
| Color | BT.709 / bt709 / tv (HDR → tone-mapped SDR) |
| Container | MP4 (.mp4, hvc1 tag) |
Not AI upscaling — use video-to-4k first when
SD/HD needs Real-ESRGAN quality. This skill uses FFmpeg scale + encode only.
Why
Hard-cut video-merge is stream-copy. Mixed
HDR (BT.2020 + PQ) and SDR (BT.709) clips look fine alone, but after
concat the player often applies the first clip's HDR tags to later SDR →
oversaturated cuts. Normalization unifies pixels and color tags first.
Rules
When this skill applies, read and follow dependency-manager — run scripts as documented, install missing tools into .dependency/.
- Run
normalize.pythrough.dependency/python/python. Never use hostpython/ffmpeg. - Never overwrite sources. Outputs go under
video-4k-normalization/. - Use the bundled script — do not hand-write equivalent FFmpeg commands.
- One file per run — pass
--videowith a single file; repeat for each clip in a batch.
Quick Start
.dependency/python/python .ai/video-4k-normalization/normalize.py --video path/to/clip.mp4Example:
assets/shots/01.mp4 (HDR)
→ assets/shots/video-4k-normalization/01.mp4
assets/shots/10.mp4 (SDR)
→ assets/shots/video-4k-normalization/10.mp4Then hard-cut merge the video-4k-normalization/ folder:
.dependency/python/python .ai/video-merge/merge.py --folder path/to/clips/video-4k-normalizationDefaults
| Setting | Default | Notes |
| Target color | BT.709 SDR limited (tv) | HDR (PQ/HLG/BT.2020) → hable tone map |
| Scale | FFmpeg lanczos to 3840×2160 | No Video2X |
| FPS | Forced 60 | Frame dup/drop, not RIFE |
Common Flags
--video · -o / --output
.dependency/python/python .ai/video-4k-normalization/normalize.py --video clip.mp4
.dependency/python/python .ai/video-4k-normalization/normalize.py --video clip.mp4 -o out/masters/clip.mp4Never overwrite source files. Input must be a single video file (--video), not a directory. Supported inputs: .mp4, .mkv, .mov, .avi, .webm, .wmv, .flv, .m4v, .mpeg, .mpg, .ts, .mts, .m2ts, .3gp, .ogv.
Agent Notes
- Use the bundled script only.
- Missing Python / FFmpeg → populate
.dependency/, setpopulated: true, retry. - Tell the user
video-4k-normalization/paths; they runvideo-mergeon that folder when stitching. - For low-res quality upscale →
video-to-4k, then optionally re-normalize if color still mixed. - Pipeline / filter details: reference.md
Tests
From repo root:
.dependency/python/python .ai/video-4k-normalization/test_normalize.pyManual CLI examples: cli/video-4k-normalization.md
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

