mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
docs(config): make the configuration reference the one owner of every option table
This commit is contained in:
+23
-31
@@ -112,19 +112,15 @@ appropriate one for each track.
|
||||
|
||||
## Providing a device with the `wvd` and `prd` commands
|
||||
|
||||
Device files live in dedicated directories, by default:
|
||||
|
||||
| Kind | Default directory |
|
||||
|------|-------------------|
|
||||
| Widevine `.wvd` | `data/WVDs` |
|
||||
| PlayReady `.prd` | `data/PRDs` |
|
||||
|
||||
You can move these with the `directories` section of your `unshackle.yaml`:
|
||||
Device files live in two directories: `.wvd` files in `directories.wvds` and `.prd` files
|
||||
in `directories.prds`. Their defaults are in the
|
||||
[Directories reference](../reference/configuration/directories.md). To move them, set
|
||||
them under `directories` in your `unshackle.yaml`:
|
||||
|
||||
```yaml title="unshackle.yaml"
|
||||
directories:
|
||||
wvds: /home/george/unshackle-data/WVDs
|
||||
prds: /home/george/unshackle-data/PRDs
|
||||
wvds: ~/unshackle-data/WVDs
|
||||
prds: ~/unshackle-data/PRDs
|
||||
```
|
||||
|
||||
### Widevine devices: the `wvd` command
|
||||
@@ -250,10 +246,10 @@ cdm:
|
||||
Lookups are case-insensitive.
|
||||
|
||||
!!! tip "The device name is the file name"
|
||||
A device named `chromecdm_l3` in the config resolves to `chromecdm_l3.wvd` in the
|
||||
WVDs directory (or `chromecdm_l3.prd` in the PRDs directory). It may also be the
|
||||
`name` of a remote CDM defined in `remote_cdm`. See
|
||||
[Remote CDMs](#remote-cdms) below.
|
||||
A device named `chromecdm_l3` in the config resolves to a remote CDM of that `name` in
|
||||
`remote_cdm` (see [Remote CDMs](#remote-cdms) below), else to a device file such as
|
||||
`chromecdm_l3.wvd` in the device directories. The
|
||||
[`cdm` reference](../reference/configuration/drm.md#cdm) gives the lookup order.
|
||||
|
||||
### Advanced selection: by quality, DRM, or profile
|
||||
|
||||
@@ -340,9 +336,8 @@ cdm:
|
||||
default: my_wv_remote
|
||||
```
|
||||
|
||||
`security_level` defaults to `3000` if omitted. unshackle reads field names
|
||||
case-insensitively, so `Device Type`/`device_type`, `System ID`/`system_id`, and the
|
||||
other field names are all accepted.
|
||||
The [`remote_cdm` reference](../reference/configuration/drm.md#remote_cdm) gives the default
|
||||
of each field and the two spellings of each field name.
|
||||
|
||||
### PlayReady remote CDM
|
||||
|
||||
@@ -387,10 +382,9 @@ decrypt_labs_api_key: your-decrypt-labs-key
|
||||
|
||||
unshackle sends the API key as the `decrypt-labs-api-key` header. If you do not write
|
||||
`secret` on the entry, unshackle falls back to the global `decrypt_labs_api_key` value.
|
||||
If neither is present it raises an error. The `host` defaults to
|
||||
`https://keyxtractor.decryptlabs.com`. PlayReady devices (`SL2`/`SL3`) default to
|
||||
security level `2000`/`3000` respectively. Widevine devices default to
|
||||
`system_id: 26830`, `security_level: 3`.
|
||||
If neither is present it raises an error. The
|
||||
[`decrypt_labs` fields](../reference/configuration/drm.md#remote-cdm-decrypt-labs) give the host,
|
||||
system ID and security level that unshackle uses when you leave them out.
|
||||
|
||||
### Custom API (`custom_api`)
|
||||
|
||||
@@ -471,9 +465,10 @@ globally, or a per-service mapping:
|
||||
```
|
||||
|
||||
!!! info "How the value is interpreted"
|
||||
The default is `shaka`. Only the exact value `mp4decrypt` selects mp4decrypt.
|
||||
**Anything else** (including `shaka`) selects shaka-packager. Per-service lookups
|
||||
are case-insensitive, with the `default`/`DEFAULT` entry used as the fallback.
|
||||
The default is `shaka`. `mp4decrypt` selects mp4decrypt, and **anything else**
|
||||
(including `shaka`) selects shaka-packager. The
|
||||
[`decryption` reference](../reference/configuration/drm.md#decryption) gives how unshackle
|
||||
reads the value, and the tracks that use mp4decrypt whatever this setting says.
|
||||
|
||||
The two backends give equivalent output for a standard CENC title. In most
|
||||
conditions shaka-packager is the better backend. Switch a specific service to
|
||||
@@ -668,13 +663,10 @@ See [key vaults](vaults.md) for how to configure vault backends.
|
||||
|
||||
## Debugging DRM issues
|
||||
|
||||
A few configuration toggles help when a title will not decrypt:
|
||||
|
||||
| Config key | Default | Effect |
|
||||
|------------|---------|--------|
|
||||
| `debug` | `false` | Global debug output. |
|
||||
| `debug_keys` | `false` | Log decryption keys. |
|
||||
| `debug_requests` | `false` | Log HTTP requests to the console with `-d`, each request to the [JSON debug log](troubleshooting.md#debug-requests), and the request and response bodies as files in a folder beside it. The folder holds tokens and content keys as sent and received. |
|
||||
A few configuration toggles help when a title will not decrypt: `debug`, `debug_keys` (logs
|
||||
the content keys) and `debug_requests` (logs each HTTP request, see
|
||||
[Debugging HTTP traffic](troubleshooting.md#debug-requests)). Their defaults and effects are in
|
||||
the [logging and debug reference](../reference/configuration/misc.md#logging-privacy-debug).
|
||||
|
||||
```yaml title="unshackle.yaml"
|
||||
debug_keys: true
|
||||
|
||||
Reference in New Issue
Block a user