jriker1
8th October 2023, 13:12
I have a MKV with HDR10 and HDR10+ in it. I have extracted the HDR10+ info with:
ffmpeg -i input.mkv -map 0:v:0 -c copy -vbsf hevc_mp4toannexb -f hevc - | hdr10plus_tool extract -o metadata.json -
I then use the dhdr10-info command to put it back but when I put the HEVC output into an MKV container and look at it with mediainfo just HDR10 no HDR10+. Example command I'm doing:
ffmpeg -i input.mkv -sn -an -f yuv4mpegpipe -strict -1 -pix_fmt yuv420p10le - | x265-10b - --input-depth 10 --output-depth 10 --y4m --preset slow --hdr10 --hdr10-opt --high-tier --repeat-headers --crf 17 --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)" --max-cll "1000,401" --chromaloc 2 --no-sao --range limited --keyint 24 --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --dhdr10-info=metadata.json --vbv-bufsize 160000 --vbv-maxrate 160000 <output>.hevc
Note during encode don't see much around HDR10+ but do see a reference to this:
x265 [info]: tools: deblock dhdr10-info
Also if I look at the metadata.json file it does start with HDR10+ info:
{
"JSONInfo": {
"HDR10plusProfile": "B",
"Version": "1.0"
},
"SceneInfo": [
{
"BezierCurveData": {
"Anchors": [
...
My ffmpeg is a nightly from about a month ago. My x265 executables in Windows is from May.
Any thoughts?
ffmpeg -i input.mkv -map 0:v:0 -c copy -vbsf hevc_mp4toannexb -f hevc - | hdr10plus_tool extract -o metadata.json -
I then use the dhdr10-info command to put it back but when I put the HEVC output into an MKV container and look at it with mediainfo just HDR10 no HDR10+. Example command I'm doing:
ffmpeg -i input.mkv -sn -an -f yuv4mpegpipe -strict -1 -pix_fmt yuv420p10le - | x265-10b - --input-depth 10 --output-depth 10 --y4m --preset slow --hdr10 --hdr10-opt --high-tier --repeat-headers --crf 17 --master-display "G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(40000000,50)" --max-cll "1000,401" --chromaloc 2 --no-sao --range limited --keyint 24 --colormatrix bt2020nc --colorprim bt2020 --transfer smpte2084 --dhdr10-info=metadata.json --vbv-bufsize 160000 --vbv-maxrate 160000 <output>.hevc
Note during encode don't see much around HDR10+ but do see a reference to this:
x265 [info]: tools: deblock dhdr10-info
Also if I look at the metadata.json file it does start with HDR10+ info:
{
"JSONInfo": {
"HDR10plusProfile": "B",
"Version": "1.0"
},
"SceneInfo": [
{
"BezierCurveData": {
"Anchors": [
...
My ffmpeg is a nightly from about a month ago. My x265 executables in Windows is from May.
Any thoughts?