This Answer Record covers the following:
1) 2019.2 Zynq UltraScale+ MPSoC VCU - How do I enable support for HDR10 metadata insertion and extraction with VCU Control Software?
2) The 2019.2 Xilinx Zynq UltraScale+ VCU Control Software includes support for HDR10 metadata insertion and extraction in file to file operations.
However, there is a known issue with the Advanced Video Coding (AVC) Content Light Level (CLL) Supplemental Enhancement Information (SEI) and color description VUI parsing in the Zynq UltraScale+ MPSoC VCU decoder.
The following patch resolves the known issue with AVC CLL SEI and color description VUI parsing in the Zynq UltraScale+ MPSoC VCU decoder allowing for HDR10 metadata insertion and extraction in file to file operations.
Additional Information on HDR10 Support in the Zynq UltraScale+ MPSoC VCU Control Software:
This Answer Record provides information about the HDR10 metadata structure and commands for the VCU control software to insert or extract HDR10 metadata into or from an encoded video file.
The HDR10 metadata structure follows the ITU Series H Supplement 18 standard for HDR and WCG (https://www.itu.int/rec/T-REC-H.Sup18-201710-I).
There are three HDR10 related video usability information (VUI) parameters: color primaries, transfer characteristics, and matrix coefficients.
This VUI metadata is contained in the sequence parameter set (SPS) of the intracoded frames:
In addition to the VUI parameters, there are two HDR10 related supplemental enhancement information (SEI) messages:
Mastering Display Color Volume (MDCV) and Content Light Level (CLL).
These SEI messages are formatted in the following structure:
Control Software Decoder
To extract HDR10 metadata while decoding an encoded file you can use the following:
The file specified in --hdr-file will contain the extracted HDR10 metadata information formatted in the following structure:
To insert HDR10 metadata while encoding a file you can use the following:
The HDR10 specific configurations are:
The HDRSEIs.txt should have the MDCV and CLL SEI information in the following format:
See the attached ZIP file for example configuration files for HDR10 metadata insertion and extraction in file to file operations.