forked from kenzuya/unshackle
refactor(api): move the server CDM licence cap into one module that measures tracks by the -q rule
This commit is contained in:
@@ -72,7 +72,7 @@ unshackle dl [OPTIONS] SERVICE [SERVICE ARGS...]
|
||||
| Flag | Default | Description |
|
||||
|---|---|---|
|
||||
| `-p`, `--profile` | - | Profile for credentials and cookies. |
|
||||
| `-q`, `--quality` | best | Resolution(s), comma-separated, e.g. `1080,720`. `-q 1080` also matches anamorphic tracks by 16:9 canvas. |
|
||||
| `-q`, `--quality` | best | Resolution(s), comma-separated, e.g. `1080,720`. `-q 1080` also matches anamorphic tracks by 16:9 canvas, and padded encodes by standard resolution. |
|
||||
| `-v`, `--vcodec` | any | Video codec(s). Accepts names or values: `AVC`/`H.264`/`H264`, `HEVC`/`H.265`/`H265`, `VVC`/`H.266`/`H266`, `VC1`/`VC-1`, `VP8`, `VP9`, `AV1`. |
|
||||
| `-a`, `--acodec` | any | Audio codec(s), comma-separated. Accepts `AAC`, `AC3`/`DD`, `EC3`/`DD+`/`eac3`/`ddp`, `AC4`/`AC-4`, `OPUS`, `OGG`/`VORB`/`vorbis`, `DTS`, `DTSX`/`DTS-X`, `ALAC`, `FLAC`, `MP3`. |
|
||||
| `-vb`, `--vbitrate` | highest | Exact video bitrate in kbps. |
|
||||
|
||||
@@ -87,7 +87,9 @@ unshackle dl -q 2160,1080,720 EXAMPLE 81234567
|
||||
!!! note "16:9 canvas matching"
|
||||
Resolution matching is by track **height** first. If no track height matches exactly,
|
||||
unshackle falls back to a 16:9-canvas match, so `-q 1080` also selects an
|
||||
anamorphic `1920×804` track (computed as `int(width × 9 / 16)`). unshackle applies the
|
||||
anamorphic `1920×804` track (computed as `int(width × 9 / 16)`). A padded or cropped encode
|
||||
also matches its standard resolution, the nearest standard height within 10%, so `-q 1080`
|
||||
selects a `2048×1088` track. unshackle applies the
|
||||
fallback to each range and codec on its own. A service that crops only its HDR10 tracks
|
||||
therefore keeps its `3840×1920` HDR10 track, even when another range has an exact
|
||||
`2160` height match.
|
||||
|
||||
Reference in New Issue
Block a user