vsmuxtools.video.hdr.helpers
Reusable Dolby Vision and HDR10+ metadata sidecar builders.
DolbyVision
Bases: _DynamicMetadata
Build Dolby Vision RPU sidecars with dovi_tool.
Source code in
vsmuxtools/video/hdr/helpers.py
resolved_profile
property
Return the canonical source or explicitly requested Dolby Vision profile.
Returns:
| Type | Description |
|---|---|
str
|
A canonical profile string, preserving unknown Profile 8 compatibility. |
convert_profile
Request an explicit RPU conversion to Dolby Vision Profile 8.1.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
profile
|
Any
|
Target profile; only P5/P7 to 8.1 is supported. |
required |
Returns:
| Type | Description |
|---|---|
Self
|
This helper, with conversion deferred until P5 conversion changes RPU signaling only; the caller must convert pixels separately. P7 FEL handling likewise remains the caller's responsibility. |
Source code in
vsmuxtools/video/hdr/helpers.py
crop_active_area
Reset active-area offsets to zero for all or selected frames.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
frames
|
Any
|
Optional current-timeline ranges receiving the crop. |
None
|
Returns:
| Type | Description |
|---|---|
Self
|
This helper, with the active-area edit queued for |
Source code in
vsmuxtools/video/hdr/helpers.py
active_area
Set explicit active-area offsets for all or selected frames.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
left
|
int
|
Active-area left offset in pixels. |
required |
top
|
int
|
Active-area top offset in pixels. |
required |
right
|
int
|
Active-area right offset in pixels. |
required |
bottom
|
int
|
Active-area bottom offset in pixels. |
required |
frames
|
Any
|
Optional current-timeline ranges receiving the offsets. |
None
|
Returns:
| Type | Description |
|---|---|
Self
|
This helper, with the active-area edit queued for |
Source code in
vsmuxtools/video/hdr/helpers.py
HDR10Plus
Bases: _DynamicMetadata
Build HDR10+ JSON sidecars with hdr10plus_tool.