mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-01 21:45:10 +00:00
feat(core): add HDR Vivid hybrids and a MonaLisa command builder
This commit is contained in:
@@ -156,7 +156,7 @@ class TrackRequest:
|
||||
```
|
||||
|
||||
!!! note "`generate_dv` and a hand-made HYBRID"
|
||||
A service that fetches the HYBRID variants itself (HDR10 and DV) must also fetch
|
||||
A service that fetches the HYBRID variants itself (HDR10 or HDR Vivid, and DV) must also fetch
|
||||
HDR10P when `track_request.generate_dv` is set and the title has no DV track.
|
||||
unshackle prefers an HEVC HDR10+ track as the base, and measures an HDR10 base from the decoded video.
|
||||
`get_tracks_for_variants` does this for you.
|
||||
@@ -528,7 +528,7 @@ Each exposes `from_url(url, session=...)` (or `from_text(text, url)`) and then
|
||||
|
||||
Some services deliver a **separate manifest per codec/range**. The base class
|
||||
provides `get_tracks_for_variants(title, fetch_fn)` to fan out over every
|
||||
codec×range in the `TrackRequest`, including `HYBRID` (fetch HDR10 + DV and
|
||||
codec×range in the `TrackRequest`, including `HYBRID` (fetch HDR10, or HDR Vivid when there is no HDR10, + DV and
|
||||
merge) and `--best-available` skip-on-error handling:
|
||||
|
||||
```python
|
||||
|
||||
@@ -340,7 +340,7 @@ When you give both `season` and `episode`, the server combines them into a `"{se
|
||||
"bitrate": 8000, "bitrate_bps": 8000000, "width": 3840, "height": 2160,
|
||||
"resolution": "2160p", "fps": "24", "range": "HDR10",
|
||||
"range_display": "HDR", "scan_type": null, "closed_captions": [],
|
||||
"dv_compatible_bitstream": false, "hdr10plus": false, "hdr10_base": false, "stereo": false, "language": "en",
|
||||
"dv_compatible_bitstream": false, "hdr10plus": false, "hdr10_base": false, "hlg_base": false, "stereo": false, "language": "en",
|
||||
"is_original_lang": true,
|
||||
"name": null, "track_name": "English", "needs_repack": false, "edition": [], "note": null, "data": null,
|
||||
"drm": [], "descriptor": "DASH"
|
||||
|
||||
@@ -302,8 +302,8 @@ closed-caption descriptors. The relevant enums:
|
||||
|
||||
- **`Video.Codec`**: `AVC` (H.264), `HEVC` (H.265), `VC1`, `VP8`, `VP9`, `AV1`, `LCEVC`.
|
||||
- **`Video.Range`**: `SDR`, `HLG`, `HDR10`, `HDR10P` (HDR10+), `VIVID` (HDR Vivid), `DV` (Dolby
|
||||
Vision), and `HYBRID`. `HYBRID` is special: it tells the pipeline to select both an HDR10(+) base and
|
||||
a DV track and merge the DV RPU onto the HDR10 track with `dovi_tool` (see
|
||||
Vision), and `HYBRID`. `HYBRID` is special: it tells the pipeline to select both an HDR10(+) or PQ HDR Vivid base and
|
||||
a DV track and merge the DV RPU onto the base track with `dovi_tool` (see
|
||||
[Dolby Vision hybrid](#dolby-vision-and-hybrid)).
|
||||
|
||||
!!! note "Bitrate units"
|
||||
@@ -429,7 +429,7 @@ service to talk to the platform's license server. unshackle recognizes seven DRM
|
||||
| `PlayReady` | PlayReady | CDM challenge (WRM header) → license server → content keys (`.prd` device) |
|
||||
| `ClearKeyCENC` | W3C `org.w3.clearkey` or W3C common PSSH over CENC | JSON KID request → JWK set; no CDM |
|
||||
| `ClearKey` | HLS AES-128 | content key fetched directly from a URI; no CDM, no challenge |
|
||||
| `MonaLisa` | Proprietary WASM DRM | keys extracted locally; no license server |
|
||||
| `MonaLisa` | Proprietary WASM DRM | keys extracted locally; no license server. `command_builder` sets the command of the decryption backend, and `segment_decrypt=False` runs it once on the merged file |
|
||||
| `BlowfishStripe` | Blowfish CBC stripe cipher | the service gives the per-track key; no CDM, no license server |
|
||||
| `ClearKeyCTR` | AES-128-CTR over a whole file | the service gives the IV and licenses the content key at the licence step; no CDM, no license server |
|
||||
|
||||
@@ -533,9 +533,9 @@ HLS and DASH streams that carry a valid DV RPU but advertise plain HEVC, with DV
|
||||
supplemental codecs (`dv_compatible_bitstream`). `--list` shows such a track as `HDR10+DV` or `HDR10P+DV`.
|
||||
A service sets `hdr10_base` on a DV track that has an HDR10 base layer (DV profile 8.1), and `--list` shows it as `DV+HDR10`.
|
||||
The HLS and DASH parsers set `stereo` on a stereoscopic 3D (MV-HEVC) track: an HLS `REQ-VIDEO-LAYOUT` that names `CH-STEREO`, or a DV profile 20 codec. `--list` shows it as `3D`.
|
||||
**Hybrid** processing (`Video.Range.HYBRID`) selects an HDR10(+) base and a DV donor,
|
||||
**Hybrid** processing (`Video.Range.HYBRID`) selects an HDR10(+) or PQ HDR Vivid base and a DV donor,
|
||||
extracts the RPU with `dovi_tool`, and injects it onto the base layer, to make a single
|
||||
track that carries both HDR10 metadata and the DV RPU. Both are automatic once the
|
||||
track that carries both the base metadata and the DV RPU. Both are automatic once the
|
||||
pipeline selects the right tracks. A service only needs to give accurate ranges.
|
||||
|
||||
The fixup replaces the track file with a raw HEVC file. A raw HEVC file has no duration and
|
||||
|
||||
Reference in New Issue
Block a user