[FFmpeg-devel] [PATCH 17/18] cbs_h265: Add functions to turn HDR metadata into SEI

Mark Thompson sw at jkqxz.net
Thu Oct 3 02:21:52 EEST 2019


On 03/10/2019 00:04, Mark Thompson wrote:
> ---
> With intent to add some sort of support for this in H.265 metadata, though it's not in this set.
> 
> Is there any thought on what a human-usable text serialisation of AVMasteringDisplayMetadata should look like?  Ideally it wants to be something which would require no escaping when using it on the command-line.  (This is relevant to video filters as well.)
> 
> 
>  libavcodec/Makefile   |  2 +-
>  libavcodec/cbs_h265.c | 94 +++++++++++++++++++++++++++++++++++++++++++
>  libavcodec/cbs_h265.h | 18 +++++++++
>  3 files changed, 113 insertions(+), 1 deletion(-)
>  create mode 100644 libavcodec/cbs_h265.c
> 
> ...
> +    cll->max_content_light_level     = av_clip_uintp2(clm->MaxCLL, 16);
> +    cll->max_pic_average_light_level = av_clip_uintp2(clm->MaxCLL, 16);

Stupid error is stupid :(

Fixed locally.

- Mark


More information about the ffmpeg-devel mailing list