Workflow hdr

From damionrashford/media-os · View interactive version

Workflow hdr is an AI agent skill from the GitHub repository damionrashford/media-os. End-to-end HDR authoring — HDR10 (static MDC + MaxCLL/MaxFALL), HDR10+ dynamic metadata JSON, Dolby Vision profiles 5/7/8.1/8.4, HLG, PQ↔HLG conversion, SDR↔HDR tone-mapping (hable/mobius/reinhard/bt2390/aces), dovi_tool + hdr10plus_tool orchestration, and multi-format dual-delivery. Use when the us

How to use this skill

Skill file

Workflow — HDR

What: Author, transcode, tone-map, and deliver HDR content across every major standard without metadata loss.

Skills used

ffmpeg-hdr-color, hdr-dovi-tool, hdr-hdr10plus-tool, hdr-dynmeta-docs, ffmpeg-ocio-colorpro, vfx-oiio, ffmpeg-probe, media-mediainfo, ffmpeg-transcode, ffmpeg-hwaccel, ffmpeg-mxf-imf, media-shaka.

Pipeline

Step 1 — Probe

ffmpeg-probe (moprobe --color) captures: color primaries (bt709 / bt2020), transfer (bt709 / smpte2084 / arib-std-b67), matrix, range, MaxCLL / MaxFALL, DoVi RPU SEI, HDR10+ SEI.

Step 2 — SDR → HDR (up)

ffmpeg-hdr-color sdr-to-hdr --target hlg|hdr10 with a synthetic MDC. Inverse tone-mapping is creative — use sparingly; real HDR grading is preferable.

Step 3 — HDR → SDR (down)

ffmpeg-hdr-color hdr-to-sdr --algo <hable|mobius|reinhard|bt2390|bt2446a|bt2446c|aces>. Try bt2446a first — ITU-standard, predictable.

Step 4 — Cross-format HDR conversion

Between HDR10 and HLG, ALWAYS via the linear-float sandwich:

zscale=t=linear → format=gbrpf32le → zscale=t=<new_transfer>:p=<primaries>:m=<matrix>

Missing the float32 step silently clips highlights.

Step 5 — Dolby Vision RPU ops

hdr-dovi-tool:

For HDR10 → DoVi uplift, dovi_tool generates a synthetic RPU.

Step 6 — HDR10+ metadata ops

hdr-hdr10plus-tool:

Or inline at encode: -x265-params "dhdr10-info=metadata.json".

Step 7 — Author final HEVC

libx265 with:

Step 8 — AV1 Dolby Vision (alternative)

libaom-av1 or libsvtav1 at profile 10.

Step 9 — Deliver / wrap

MP4 (hvc1 tag), MKV, or J2K IMF via ffmpeg-mxf-imf. DASH/HLS packaging via media-shaka.

Variants

Gotchas

Example — HDR10+ with DoVi P8.1 dual delivery

Source HEVC HDR10 base → hdr-dovi-tool generate synthetic RPU P8.1 → hdr-hdr10plus-tool author per-scene JSON → encode fresh HEVC 10-bit with hdr-opt=1 repeat-headers=1 master-display=... max-cll=1000,400 → dovi_tool inject-rpu → hdr10plus_tool inject → MP4 -tag:v hvc1.

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.