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

HDR Metadata Missing #10363

Closed
WilliamsGomes1 opened this issue Mar 13, 2024 · 7 comments · Fixed by #10373
Closed

HDR Metadata Missing #10363

WilliamsGomes1 opened this issue Mar 13, 2024 · 7 comments · Fixed by #10373

Comments

@WilliamsGomes1
Copy link

Operating System Info

Windows 11

Other OS

No response

OBS Studio Version

30.1.0

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/ODa2WnwU5iRmtFBX

OBS Studio Crash Log URL

No response

Expected Behavior

In the previous OBS Version (30.0.2) the recorded files would show correctly set as HDR10 compatible and contain the mastering display metadata.
Media Info Export 1.txt

Current Behavior

In the current OBS Version (30.1.0) the recorded file is missing the mastering display metadata, causing playback issues in MPC-HC and potentially in other softwares as well.
Media Info Export 2.txt

Steps to Reproduce

  1. Run a HDR recording in the latest OBS Version.
  2. Verify the files using MediaInfo or...
  3. Play the recording back using MPC-HC.

Anything else we should know?

I guess that's something related to the Lavf version used in the new OBS, as it was the only change I could see in both files info.
I also tested with HEVC and changed the container to MP4, same behaviour.

@RytoEX
Copy link
Member

RytoEX commented Mar 13, 2024

The files you linked result in 404 errors for me.

@WilliamsGomes1
Copy link
Author

WilliamsGomes1 commented Mar 13, 2024

I will write both the files here

OBS 30.0.2 file MediaInfo

General
Unique ID : 65812388882538435021608254321626222353 (0x3183014AB2BC3610F33F7317E4B48F11)
Complete name : D:\Gravações\2024-03-12 23-28-44 Teste.mkv
Format : Matroska
Format version : Version 4
File size : 18.7 MiB
Duration : 5 s 504 ms
Overall bit rate : 28.4 Mb/s
Frame rate : 60.000 FPS
Writing application : Lavf60.3.100
Writing library : Lavf60.3.100
ErrorDetectionType : Per level 1

Video
ID : 1
Format : AV1
Format/Info : AOMedia Video 1
Format profile : Main@L5.1
HDR format : SMPTE ST 2086, HDR10 compatible
Codec ID : V_AV1
Duration : 5 s 500 ms
Bit rate : 24.8 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.050
Stream size : 16.3 MiB (87%)
Default : No
Forced : No
Color range : Full
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : Display P3
Mastering display luminance : min: 0.0000 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 1000
Maximum Frame-Average Light Level : 1000

Audio
ID : 2
Format : PCM
Format settings : Little
Codec ID : A_PCM/FLOAT/IEEE
Duration : 5 s 504 ms
Bit rate mode : Constant
Bit rate : 3 072 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 32 bits
Stream size : 2.02 MiB (11%)
Title : Track1
Default : No
Forced : No

OBS 30.1.0 file MediaInfo

General
Unique ID : 53668587275501111255810074856433215199 (0x286031A570FCA2C70E861F8B8C2966DF)
Complete name : D:\Gravações\2024-03-12 23-47-06 Game.mkv
Format : Matroska
Format version : Version 4
File size : 8.15 MiB
Duration : 2 s 197 ms
Overall bit rate : 31.1 Mb/s
Frame rate : 60.000 FPS
Writing application : Lavf60.16.100
Writing library : Lavf60.16.100
ErrorDetectionType : Per level 1

Video
ID : 1
Format : AV1
Format/Info : AOMedia Video 1
Format profile : Main@L5.1
Codec ID : V_AV1
Duration : 2 s 184 ms
Bit rate : 27.4 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 60.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Bits/(Pixel*Frame) : 0.055
Stream size : 7.14 MiB (88%)
Default : No
Forced : No
Color range : Full
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant

Audio
ID : 2
Format : PCM
Format settings : Little
Codec ID : A_PCM/FLOAT/IEEE
Duration : 2 s 197 ms
Bit rate mode : Constant
Bit rate : 3 072 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 32 bits
Stream size : 824 KiB (10%)
Title : Track1
Default : No
Forced : No

@RytoEX
Copy link
Member

RytoEX commented Mar 13, 2024

Please provide a test video created with OBS Studio 30.0.2 and one produced with OBS Studio 30.1.0.

@RytoEX
Copy link
Member

RytoEX commented Mar 13, 2024

I can confirm that checking with ffprobe 6.1.1, HDR recordings from OBS Studio 30.0.2 seem to have HDR metadata (CLL, luminance, mastering, etc.) while recordings from OBS Studio 30.1.0 do not. We'll investigate. Thanks.

@WilliamsGomes1
Copy link
Author

Sorry for the late response. If you guys need anything else for troubleshoot, I can provide. Thanks for the amazing work.

@RytoEX
Copy link
Member

RytoEX commented Mar 13, 2024

It looks like this might be specific to NVENC. When encoding HDR with QSV or AMF, it works fine.

@WilliamsGomes1
Copy link
Author

Tested also with both AOM AV1 and SVT-AV1. Same behaviour, no metadata using the latest obs version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants