Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rav1e wrong mastering display information and HDR data #3173

Open
jriker1 opened this issue Mar 23, 2023 · 0 comments
Open

Rav1e wrong mastering display information and HDR data #3173

jriker1 opened this issue Mar 23, 2023 · 0 comments
Labels

Comments

@jriker1
Copy link

jriker1 commented Mar 23, 2023

Using Rav1e both the latest build and also the nightly in Windows. I'm having issues with the resulting output as far as mastering-display info.

Here's the source:

Inform : 76.0 Mb/s, 3840*2160 (16:9), at 24.000 FPS, HEVC (Main 10@L5.1@High), HDR10

Info in mediainfo:

HDR format : SMPTE ST 2086
HDR format : SMPTE ST 2086, HDR10 compatible
HDR_Format_Commercial : HDR10
HDR_Format_Compatibility : HDR10
HDR listed in mediainfo

Info from ffprobe:

"side_data_list": [
{
"side_data_type": "Mastering display metadata",
"red_x": "35400/50000",
"red_y": "14600/50000",
"green_x": "8500/50000",
"green_y": "39850/50000",
"blue_x": "6550/50000",
"blue_y": "2300/50000",
"white_point_x": "15635/50000",
"white_point_y": "16450/50000",
"min_luminance": "50/10000",
"max_luminance": "10000000/10000"
},
{
"side_data_type": "Content light level metadata",
"max_content": 832,
"max_average": 166
},


If I try encoding with G(0.17,0.797)B(0.131,0.046)R(0.708,0.292)WP(0.3127,0.329)L(1000.0,0.005):content-light=832,166

Info in mediainfo:

Inform : 1 501 kb/s, 3840*2160 (16:9), at 24.000 FPS, AV1 ([email protected])

No HDR above or variables listed in mediainfo

Info from ffprobe:

"side_data_list": [
{
"side_data_type": "Mastering display metadata",
"red_x": "46399/65536",
"red_y": "19137/65536",
"green_x": "11141/65536",
"green_y": "52232/65536",
"blue_x": "8585/65536",
"blue_y": "3015/65536",
"white_point_x": "20493/65536",
"white_point_y": "21561/65536",
"min_luminance": "82/16384",
"max_luminance": "256000/256"
},
{
"side_data_type": "Content light level metadata",
"max_content": 832,
"max_average": 166
}


If I try encoding with

G(8500,39850)B(6550,2300)R(35400,14600)WP(15635,16450)L(10000000,50):max-cll=832,166

Info in mediainfo:

Inform : 1 501 kb/s, 3840*2160 (16:9), at 24.000 FPS, AV1 ([email protected])

No HDR listed in mediainfo

Info from ffprobe:

"side_data_list": [
{
"side_data_type": "Mastering display metadata",
"red_x": "65535/65536",
"red_y": "65535/65536",
"green_x": "65535/65536",
"green_y": "65535/65536",
"blue_x": "65535/65536",
"blue_y": "65535/65536",
"white_point_x": "65535/65536",
"white_point_y": "65535/65536",
"min_luminance": "819200/16384",
"max_luminance": "-1734967296/256"
},
{
"side_data_type": "Content light level metadata",
"max_content": 832,
"max_average": 166
}

Note I format it appropriately as encoding with ffmpeg piping to rav1e.exe. So basically:

ffmpeg.exe -hide_banner -loglevel quiet -i Movie.mkv -an -pix_fmt yuv420p10le -strict -1 -f yuv4mpegpipe - | rav1e.exe - --quantizer 100 --speed 1 --primaries BT2020 --transfer SMPTE2084 --matrix BT2020NCL --mastering-display "G(0.17,0.797)B(0.131,0.046)R(0.708,0.292)WP(0.3127,0.329)L(1000.0,0.005)" --content-light "832,166" --range limited --level 5.1 --min-keyint 12 --keyint 240 --tiles 16 --output "rav1edirect.ivf"

Any idea what's going on or what I'm doing wrong?

@jriker1 jriker1 added the bug label Mar 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant