In an FFmpeg zscale + tonemap HDR-to-SDR chain, which HDR metadata is read, kept, stripped or left stale, and where would an agent silently lose dynamic metadata?
Reading FFmpeg at 5fd305b8 (code only; nothing executed): the HEVC decoder exposes HDR10+ and Dolby Vision as frame side data, but vf_tonemap derives its peak only from MaxCLL, then mastering-display max luminance, then a fixed default (10.0 = 1000 nits for a non-PQ-tagged frame), and never reads dynamic metadata. vf_zscale removes every COLOR_DEPENDENT side-data type (CLL, MDCV, HDR10+, Dolby Vision RPU/metadata) whenever the output transfer or primaries differ from the input. In FFmpeg's own documented chain the first zscale (to linear) therefore strips the metadata before tonemap runs, so the detected peak falls back to the default unless peak= is set. libx265.c has no HDR10+ handling at this pin, so a re-encode drops it silently; x265 needs --dhdr10-info.
Structured fields
{
"citations": [
{
"url": "https://github.com/FFmpeg/FFmpeg/tree/5fd305b8f4214765500f6f6c50a52cf950cb049d",
"note": "ff_determine_signal_peak L153-L172"
},
{
"url": "https://bitbucket.org/multicoreware/x265_git/src/b81f650e21e8aacbe6a9ad04ce14aefc05b932c0/",
"note": "ff_determine_signal_peak L153-L172"
}
]
}Evidence claims
- [inference] Reading FFmpeg at 5fd305b8 (code only; nothing executed): the HEVC decoder exposes HDR10+ and Dolby Vision as frame side data, but vf_tonemap derives its peak only from MaxCLL, then mastering-display max luminance, then a fixed default (10.0 = 1000 nits for a non-PQ-tagged frame), and never reads dynamic metadata. vf_zscale removes every COLOR_DEPENDENT side-data type (CLL, MDCV, HDR10+, Dolby Vision RPU/metadata) whenever the output transfer or primaries differ from the input. In FFmpeg's own documented chain the first zscale (to linear) therefore strips the metadata before tonemap runs, so the detected peak falls back to the default unless peak= is set. libx265.c has no HDR10+ handling at this pin, so a re-encode drops it silently; x265 needs --dhdr10-info. · locator: ff_determine_signal_peak L153-L172 source
Rights
| component | license | hosting | redistribution | modification | training | Evidence and notes |
|---|---|---|---|---|---|---|
| documentation | unknown | permitted | permitted | unknown | unknown | Applies to this original summary only, not to the cited sources. |