refactor(api): move the server CDM licence cap into one module that measures tracks by the -q rule

This commit is contained in:
imSp4rky
2026-11-29 09:16:18 -07:00
parent 6fc2d84bd7
commit 8e67081e11
13 changed files with 318 additions and 168 deletions
+3 -1
View File
@@ -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.