quietvoid / hdr10plus_tool

CLI utility to work with HDR10+ in HEVC files.
MIT License
297 stars 33 forks source link

Compute metadata scene related information #32

Closed quietvoid closed 3 years ago

quietvoid commented 3 years ago

Samsung's HDR10+ tools expect scene information to be present for a valid JSON file.

Should be present for every metadata frame in SceneInfo:

SceneFrameIndex: Index of the frame relative to the current scene (starting from metadata change) SceneId: Incremented scene index (Id) when metadata changes SequenceFrameIndex: Metadata frame index (total length should be number of frames)

Should be present at the JSON root:

"SceneInfoSummary": {
    "SceneFirstFrameIndex": Array of `SequenceFrameIndex` where a metadata's `SceneFrameIndex` is 0
    "SceneFrameNumbers": Array of the number of frames (length) of every scene
}