Skip to content

Make sRGB transfer tags optional for ProRes exports - #464

Open
sanyamsingh001 wants to merge 1 commit into
storytold:mainfrom
sanyamsingh001:fix/prores-srgb-transfer
Open

sanyamsingh001 wants to merge 1 commit into
storytold:mainfrom
sanyamsingh001:fix/prores-srgb-transfer

Conversation

@sanyamsingh001

@sanyamsingh001 sanyamsingh001 commented Oct 9, 2026 •

Copy link
Copy Markdown
Contributor

ProRes exports keep transfer characteristic 1 (BT.709) by default. The optional sRGB setting writes characteristic 13 for eligible sRGB color output without changing pixels. Unmanaged Gamma 2.4, managed non-sRGB and alpha-only output retain existing tags.

The setting uses the existing Output Module menu, the CLI's --prores-srgb-transfer flag and the proresSrgbTransfer command option. Older projects leave it off. An existing relative-footage test now sorts expected paths to avoid temporary-directory ordering failures.

Validation status: published head 71470935729299a026165ce1f03f6b7de5e801b5 does not include the unpublished conflict-repair candidate (tree 8185526eb5826abdf7fa5401bf3a65155c30766e). That candidate passed the focused ProRes checks, but required cargo xtask ci has not passed: its latest run failed eight GPU tests. For the separately reproduced dust-threshold failure, the test and CPU/GPU implementation paths are unchanged from the candidate's base and reviewed main f37f20ffd07d0f79e163eef1ad703b87db427dc3. No GPU production fix has been made. The candidate's original three-view native check passed on Linux with Mesa llvmpipe/OpenGL: the ProRes sRGB tag was off by default, showed a checkmark after one toggle, and was absent for H.264. Required full CI still has not passed. The Linux notes below describe earlier reported validation and do not qualify this pending repair.

Linux validation used Mesa llvmpipe, one test thread and disabled release LTO. NVIDIA OpenGL could not create a device in this headless session. Resolve's reported ProRes 4444/XQ alpha import failure (#293) remains unverified.

Refs #340.

Copy link
Copy Markdown
Member

@sanyamsingh001 Thanks for this! The tag does describe the pixels more accurately. We're holding it for one decision, because the project's bar is parity with After Effects: AE tags its ProRes output 1-1-1 (BT.709), and some NLEs and players mishandle transfer 13 (sRGB). Switching to the sRGB tag would make our files behave differently from AE's in those tools. We'll leave this open for the maintainers to decide which behaviour we want (possibly as an option). Everything else in it looked solid.


Generated by Claude Code

@fingertrouble

fingertrouble commented Oct 10, 2026 •

Copy link
Copy Markdown

If it's related to my issue, that's not fixed - because Resolve still chucks out Media Not Found errors on a premulti or straight alpha ProRes 4444 or XQ file, with motion blending on or off.

Oddly Capcut works fine, so something to do with the alpha that's causing issues with Resolve.

Keep BT.709 transfer tags by default and expose opt-in sRGB metadata
through output modules, commands, CLI and the existing render-queue menu.
Retain existing tags for unmanaged Gamma 2.4, non-sRGB and alpha-only
output.

Make the relative-footage regression independent of temporary-root
ordering while retaining its path and missing-footage assertions.

Refs storytold#340.

Co-authored-by: Codex <codex@openai.com>
@sanyamsingh001
sanyamsingh001 force-pushed the fix/prores-srgb-transfer branch from 2f0c38c to 7147093 Compare October 13, 2026 14:57
@sanyamsingh001 sanyamsingh001 changed the title Match ProRes transfer tags to rendered pixels Make sRGB transfer tags optional for ProRes exports Oct 13, 2026
@bflatastic

Copy link
Copy Markdown
Member

Hi @sanyamsingh001, thanks for this PR! main has changed a lot since it was opened, and it now conflicts with main, so it needs a rebase before we can review it for merging.

Most of the conflict comes from the shared module layout (#2491), which moved or split files this PR touches:

  • apps/effectcraft-cli/tests/cli.rs → apps/effectcraft-cli/tests/it/cli.rs
  • crates/engine/src/commands/render_queue.rs → crates/engine/src/cmd/render_queue.rs
  • crates/engine/src/footage_check.rs → crates/engine/src/footage/footage_check.rs
  • crates/export/tests/roundtrip.rs → crates/export/tests/it/roundtrip.rs
  • crates/ui-egui/tests/ui_render_queue.rs → crates/ui-egui/tests/it/ui_render_queue.rs

When you rebase, please also make sure it fits the other recent changes:

CI (cargo xtask ci) now runs on PRs. Once it's green on the rebased branch, we'll take a look. Thank you!

h-a-n-a-s-h-i pushed a commit that referenced this pull request Nov 2, 2026
ProRes renders had no colr atom, so the stream reported no primaries,
transfer or matrix. Write an nclc atom, as FilmCraft does for MOV, with
the codes of what the render path makes: the project's output space when
it has a working space, BT.709 otherwise.

sRGB output stays at transfer 1, which is still open on #340 and #464.
The frames don't change, so the pinned ProRes bytes move by exactly the
atom's 18 bytes.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants