Deployed 74856d2d with MkDocs version: 1.6.1

This commit is contained in:
2026-11-28 22:37:02 +00:00
parent 3a4a3f8471
commit d56c501138
14 changed files with 205 additions and 73 deletions
+6 -1
View File
@@ -2669,7 +2669,7 @@ license-server handshake. The rest are special cases.</p>
<td>shaka-packager / mp4decrypt</td>
</tr>
<tr>
<td><strong>ClearKey (CENC)</strong>, W3C EME <code>org.w3.clearkey</code></td>
<td><strong>ClearKey (CENC)</strong>, W3C EME <code>org.w3.clearkey</code> or the W3C common PSSH</td>
<td>none</td>
<td>JSON <code>{"kids":[...],"type":"temporary"}</code> → license server returns a JWK Set. No CDM.</td>
<td>shaka-packager / mp4decrypt</td>
@@ -3063,6 +3063,11 @@ EME request of the form:</p>
license hook returns) and reads the JSON Web Key set back. You do not need a device
file. The decrypted file still goes through shaka-packager or mp4decrypt like any
other CENC track, so the <code>decryption</code> setting applies.</p>
<p>A DASH manifest can also give the KID of a ClearKey track with only the W3C common PSSH
(<code>urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b</code>). The common PSSH can name KIDs for any DRM
system, so unshackle reads it as ClearKey (CENC) only when the manifest and the init segment
give no other DRM system. This scheme has no license URL in the manifest, so the content key
must come from the service's ClearKey license hook or from a key vault.</p>
<h3 id="clearkey-over-a-whole-file-aes-ctr">ClearKey over a whole file (AES-CTR)<a class="headerlink" href="#clearkey-over-a-whole-file-aes-ctr" title="Permanent link">&para;</a></h3>
<p>Some services encrypt one whole audio file with AES-128-CTR and give the content key and
the IV with the track. unshackle decrypts the file in-process after the download. There is
+1 -1
View File
@@ -3547,7 +3547,7 @@ requires: <code>series/73871</code> for a show, <code>movies/113</code> for a fi
</tbody>
</table>
<p>With each value, unshackle first normalises the name to Unicode NFC. A title that a service sends in composed form and in decomposed form gives the same name.</p>
<p>Regardless of this setting, unshackle always removes or replaces a set of filesystem-unsafe and structural characters during sanitisation. For example, <code>/</code> and <code>;</code> become <code>&amp;</code>, and unshackle removes characters like <code>\ * ! ? , ' " &lt; &gt; | $ # ~</code>. This is why you must never put path-unsafe characters directly in a template.</p>
<p>Regardless of this setting, unshackle always removes or replaces a set of filesystem-unsafe and structural characters during sanitisation. For example, <code>/</code> and <code>;</code> become <code>&amp;</code>, and unshackle removes characters like <code>\ * ! ? , ' " &lt; &gt; | $ # ~</code>. This is why you must never put path-unsafe characters directly in a template. To change other text in a name, such as <code>&amp;</code> to <code>and</code>, use <a href="../../reference/configuration/output/#filename_replacements"><code>filename_replacements</code></a>.</p>
<p>unshackle warns at startup about a template that contains <code>&lt; &gt; : " / \ | ? *</code>. It examines a folder template per path segment, so you can use <code>/</code> there as a directory separator.</p>
<h2 id="directory-filename-configuration">Directory &amp; filename configuration<a class="headerlink" href="#directory-filename-configuration" title="Permanent link">&para;</a></h2>
<p>The <code>directories</code> config key relocates unshackle's working folders. You can move only the folders in the table below. unshackle protects the core package paths and silently ignores them if you try to override them.</p>
+7 -1
View File
@@ -2750,6 +2750,12 @@
<p><strong>Inspect:</strong> the connection to the CDN host dropped on every attempt. This is almost always the network, the VPN, or the proxy, not the service. Run the download again: unshackle keeps the segments it already has. Over HTTP/2, all segments share one connection, so one drop fails every segment in flight. Set <code>network.http1_only: true</code> (see <a href="../../reference/configuration/network/">Network &amp; proxy</a>) to spread them over separate connections. Operate unshackle with <code>-d</code> to see each retry as a <code>segment_retry</code> entry in the JSON debug log.</p>
</div>
<div class="admonition example">
<p class="admonition-title">The temp directory is nearly full</p>
<p><strong>Symptom:</strong> the failure line ends with the free space of the temp volume, for example <code>CalledProcessError: Command '[...]' returned non-zero exit status 2, 38.0 MB free on C:\unshackle\temp</code>. A tool such as shaka-packager often reports a full disk only as a write failure. A full disk during the mux gives a line like <code>mkvmerge failed (exit 2): An exception occurred when writing the destination file. The drive may be full. ..., 38.0 MB free on C:\unshackle\temp</code>.</p>
<p>Before the track downloads start, a warning can also show the problem, for example <code>Temp volume C:\unshackle\temp has 3.1 GB free, the selected tracks need about 9.4 GB</code>. unshackle gives this warning when the free space is less than two times the estimated size of the video and audio tracks of the title. The factor is two because each encrypted track and its decrypted copy are on the temp volume together. The estimate is the manifest bitrate multiplied by the playing time, so only DASH and ISM tracks get it: an HLS or URL track gives no warning. The warning does not stop the download, and <code>--skip-dl</code> and <code>--sample</code> runs do not check.</p>
<p><strong>Inspect:</strong> unshackle adds this part when the volume of <code>directories.temp</code> has less than 1 GiB free. Make space on that volume, or set <code>directories.temp</code> to a larger volume (see <a href="../../reference/configuration/directories/">Directories</a>), and run the download again. Over the REST API the job error carries the same line, and a full disk in the downloader gives <code>DOWNLOAD_ERROR</code>.</p>
</div>
<div class="admonition example">
<p class="admonition-title">The wrong titles/metadata keep coming back</p>
<p><strong>Symptom:</strong> a service returns outdated titles even after the source changed.</p>
<p><strong>Inspect:</strong> the title cache is likely serving stale data. Clear it with <code>unshackle env clear cache &lt;SERVICE&gt;</code>, or bypass it for one run using the <code>dl</code> no-cache / reset-cache options (see <a href="../downloading/">Downloading</a> and the <a href="../cli-reference/#dl">CLI Reference</a>).</p>
@@ -2796,7 +2802,7 @@
</div>
<div class="admonition tip">
<p class="admonition-title">Let tool runs log themselves</p>
<p>For external-tool calls (FFmpeg, mkvmerge, <code>dovi_tool</code>, and friends), route through <code>run_step</code> / <code>ffprobe</code>, which auto-emit a <code>tool_run</code> entry capturing the binary's version, return code, and duration consistently. Only fall back to calling <code>log_tool_run</code> manually for a direct <code>subprocess.run</code> you genuinely cannot route through <code>run_step</code>. Auto-logging is the preferred path precisely because it captures those fields the same way every time.</p>
<p>For external-tool calls (FFmpeg, mkvmerge, <code>dovi_tool</code>, and friends), route through <code>run_step</code> / <code>run_tool</code> / <code>ffprobe</code>, which auto-emit a <code>tool_run</code> entry capturing the binary's version, return code, and duration consistently. <code>run_tool</code> also raises <code>ToolFailed</code>, whose message names the tool, the exit code and the last lines the tool wrote. Only fall back to calling <code>log_tool_run</code> manually for a direct <code>subprocess.run</code> you genuinely cannot route through those helpers. Auto-logging is the preferred path precisely because it captures those fields the same way every time.</p>
</div>