mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-02 22:15:12 +00:00
feat(hdr): find HDR Vivid and HDR10+ SEI in MPEG-TS and VVC tracks, read local HLS playlists and accept a 200 probe body
This commit is contained in:
@@ -568,7 +568,7 @@ for a thorough demonstration.
|
||||
HDR10+ is a **bitstream (SEI)** feature, and many manifests label an HDR10+
|
||||
variant as plain HDR10. Before unshackle lists or selects tracks, the
|
||||
[`hdr10plus_probe`](../reference/configuration/download.md#hdr10plus_probe)
|
||||
reads the first fragment of each HEVC HDR10 track and changes `video.range` to
|
||||
reads the first fragment of each HEVC and VVC HDR10 track and changes `video.range` to
|
||||
HDR10+ when the fragment carries HDR10+ metadata. Set `video.range` yourself
|
||||
only when the probe cannot read the fragment, for example an ISM track whose
|
||||
SEI is encrypted, or when the platform gives a reliable signal of its own.
|
||||
|
||||
@@ -463,7 +463,8 @@ dual_multi_mode: strict
|
||||
- **Type:** `bool` · **Default:** `true`
|
||||
|
||||
Find the HDR10+ tracks that a service labels as HDR10. Before unshackle lists or selects tracks, it
|
||||
reads the first fragment of HEVC HDR10 tracks from DASH, HLS fMP4 and one-file sources. A track
|
||||
reads the first fragment of HEVC and VVC (H.266) HDR10 tracks from DASH, HLS (fMP4 and MPEG-TS) and one-file
|
||||
sources. A track
|
||||
whose first frame carries HDR10+ (SMPTE ST 2094-40) metadata becomes `HDR10P`. Then `-r HDR10P`,
|
||||
`--list` and [`--generate-dv`](../../guide/downloading.md#dolby-vision-without-a-dv-track) use it.
|
||||
|
||||
@@ -482,17 +483,19 @@ probes the two highest and the two lowest bitrates first:
|
||||
| Some carry HDR10+ | The title has HDR10 and HDR10+ encodes side by side, so unshackle probes every track. |
|
||||
| None carry HDR10+ | Every track stays `HDR10`. |
|
||||
|
||||
The probe also finds HDR Vivid in HEVC HDR10 and HLG tracks. A track becomes `VIVID`, so
|
||||
The probe also finds HDR Vivid in HEVC and VVC HDR10 and HLG tracks. A track becomes `VIVID`, so
|
||||
`-r VIVID` selects it, when its first frame carries CUVA HDR Vivid metadata, or when its MPEG-TS
|
||||
program map table (PMT) has the `cuvv` registration. An HLG track never becomes `HDR10P`,
|
||||
and an HDR Vivid track with an HLG base never makes a hybrid. An audio
|
||||
track with no codec gets its codec from the PMT of an MPEG-TS first segment: the `AVSA`
|
||||
registration or `stream_type` `0xD5` gives `Audio Vivid`. The probe has no HDR10+ result for an
|
||||
MPEG-TS track.
|
||||
registration or `stream_type` `0xD5` gives `Audio Vivid`. In an MPEG-TS segment, the probe reads the SEI of the
|
||||
first video frame, so it also finds HDR10+ and HDR Vivid metadata in a track with no `cuvv` registration.
|
||||
|
||||
A probe that fails, or a fragment whose metadata is encrypted, keeps the label from the service.
|
||||
unshackle does not probe ISM tracks. Each probe makes one to three small requests: the 64 KiB
|
||||
fragment, plus the playlist of an HLS track or the header of a one-file track. The probes run in
|
||||
fragment, plus the playlist of an HLS track or the header of a one-file track. An HLS playlist that the service
|
||||
saved as a local file needs no request. When a server sends the whole file for a request from byte 0, unshackle
|
||||
reads only the first 64 KiB and closes the connection. The probes run in
|
||||
parallel, with no more at a time than `--workers` (or `dl.workers`) sets for a track download.
|
||||
|
||||
```yaml
|
||||
|
||||
Reference in New Issue
Block a user