2018-02-10 23:37:42 +00:00
|
|
|
|
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<!DOCTYPE html>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<html>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<head>
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<meta charset="utf-8" />
|
2021-06-22 00:16:40 +00:00
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
|
|
|
|
|
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<title>Raw key encryption options — Shaka Packager documentation</title>
|
2021-06-22 00:16:40 +00:00
|
|
|
|
<link rel="stylesheet" type="text/css" href="../_static/pygments.css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="../_static/sphinxdoc_new.css" />
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<link rel="stylesheet" type="text/css" href="../_static/graphviz.css" />
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="../_static/table_styling.css" />
|
2021-06-22 00:16:40 +00:00
|
|
|
|
<script data-url_root="../" id="documentation_options" src="../_static/documentation_options.js"></script>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<script src="../_static/jquery.js"></script>
|
|
|
|
|
<script src="../_static/underscore.js"></script>
|
|
|
|
|
<script src="../_static/doctools.js"></script>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<link rel="index" title="Index" href="../genindex.html" />
|
|
|
|
|
<link rel="search" title="Search" href="../search.html" />
|
2020-01-22 00:59:16 +00:00
|
|
|
|
</head><body>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<div class="related" role="navigation" aria-label="related navigation">
|
|
|
|
|
<h3>Navigation</h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="right" style="margin-right: 10px">
|
|
|
|
|
<a href="../genindex.html" title="General Index"
|
|
|
|
|
accesskey="I">index</a></li>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<li class="nav-item nav-item-0"><a href="../index.html">Shaka Packager documentation</a> »</li>
|
|
|
|
|
<li class="nav-item nav-item-this"><a href="">Raw key encryption options</a></li>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
</ul>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
</div>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
|
|
|
|
|
<div class="document">
|
|
|
|
|
<div class="documentwrapper">
|
|
|
|
|
<div class="bodywrapper">
|
|
|
|
|
<div class="body" role="main">
|
|
|
|
|
|
2021-06-22 00:16:40 +00:00
|
|
|
|
<section id="raw-key-encryption-options">
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<h1>Raw key encryption options<a class="headerlink" href="#raw-key-encryption-options" title="Permalink to this headline">¶</a></h1>
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<dl class="option-list">
|
|
|
|
|
<dt><kbd><span class="option">--enable_raw_key_encryption</span></kbd></dt>
|
|
|
|
|
<dd><p>Enable encryption with raw key (keys provided in command line)). This
|
2018-08-16 00:35:22 +00:00
|
|
|
|
generates <a class="reference external" href="https://goo.gl/s8RIhr">Common protection system</a> if neither
|
|
|
|
|
–pssh nor –protection_systems is specified. Use –pssh to provide custom
|
|
|
|
|
protection systems or use –protection_systems to generate protection
|
2020-01-22 00:59:16 +00:00
|
|
|
|
systems automatically.</p>
|
|
|
|
|
</dd>
|
|
|
|
|
<dt><kbd><span class="option">--enable_raw_key_decryption</span></kbd></dt>
|
|
|
|
|
<dd><p>Enable decryption with raw key (keys provided in command line).</p>
|
|
|
|
|
</dd>
|
|
|
|
|
<dt><kbd><span class="option">--keys <var><key_info_string[,key_info_string][,key_info_string]…></var></span></kbd></dt>
|
|
|
|
|
<dd><p><strong>key_info_string</strong> is of the form:</p>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">label</span><span class="o">=<</span><span class="n">label</span><span class="o">></span><span class="p">:</span><span class="n">key_id</span><span class="o">=<</span><span class="n">key_id</span><span class="o">></span><span class="p">:</span><span class="n">key</span><span class="o">=<</span><span class="n">key</span><span class="o">></span><span class="p">[:</span><span class="n">iv</span><span class="o">=<</span><span class="n">initialization_vector</span><span class="o">></span><span class="p">]</span>
|
2017-10-24 22:51:02 +00:00
|
|
|
|
</pre></div>
|
|
|
|
|
</div>
|
|
|
|
|
<p><em>label</em> can be an arbitrary string or a predefined DRM label like AUDIO,
|
|
|
|
|
SD, HD, etc. Label with an empty string indicates the default key and
|
|
|
|
|
key_id. The <em>drm_label</em> in <a class="reference internal" href="stream_descriptors.html"><span class="doc">Stream descriptors</span></a>,
|
|
|
|
|
which can be implicit, determines which key info is applied to the stream
|
|
|
|
|
by matching the <em>drm_label</em> with the <em>label</em> in key info.</p>
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<p><em>key_id</em> and <em>key</em> should be 32-digit hex strings.</p>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<p><em>initialization_vector</em> is an optional IV with the same format and semantics
|
|
|
|
|
as the parameter for the <em>–iv</em> option below. This is mutually exclusive with
|
|
|
|
|
that option.</p>
|
2020-01-22 00:59:16 +00:00
|
|
|
|
</dd>
|
|
|
|
|
<dt><kbd><span class="option">--iv <var><16-digit or 32-digit hex string></var></span></kbd></dt>
|
|
|
|
|
<dd><p>IV in hex string format. If not specified, a random IV will be generated.
|
2017-09-20 02:35:05 +00:00
|
|
|
|
This flag should only be used for testing. IV must be either 8 bytes
|
2020-01-22 00:59:16 +00:00
|
|
|
|
(16 digits HEX) or 16 bytes (32 digits in HEX).</p>
|
|
|
|
|
</dd>
|
|
|
|
|
<dt><kbd><span class="option">--pssh <var><hex string></var></span></kbd></dt>
|
|
|
|
|
<dd><p>One or more concatenated PSSH boxes in hex string format. If neither this
|
2018-08-16 00:35:22 +00:00
|
|
|
|
flag nor –protection_systems is specified, a
|
2020-01-22 00:59:16 +00:00
|
|
|
|
<a class="reference external" href="https://goo.gl/s8RIhr">v1 common PSSH box</a> will be generated.</p>
|
|
|
|
|
</dd>
|
|
|
|
|
</dl>
|
2021-06-22 00:16:40 +00:00
|
|
|
|
</section>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
|
|
|
|
|
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<div class="clearer"></div>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
|
|
|
|
<div class="sphinxsidebarwrapper">
|
|
|
|
|
<div role="note" aria-label="source link">
|
|
|
|
|
<h3>This Page</h3>
|
|
|
|
|
<ul class="this-page-menu">
|
|
|
|
|
<li><a href="../_sources/options/raw_key_encryption_options.rst.txt"
|
|
|
|
|
rel="nofollow">Show Source</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="searchbox" style="display: none" role="search">
|
|
|
|
|
<h3 id="searchlabel">Quick search</h3>
|
|
|
|
|
<div class="searchformwrapper">
|
|
|
|
|
<form class="search" action="../search.html" method="get">
|
|
|
|
|
<input type="text" name="q" aria-labelledby="searchlabel" />
|
|
|
|
|
<input type="submit" value="Go" />
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<script>$('#searchbox').show(0);</script>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
<div class="clearer"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="related" role="navigation" aria-label="related navigation">
|
|
|
|
|
<h3>Navigation</h3>
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="right" style="margin-right: 10px">
|
|
|
|
|
<a href="../genindex.html" title="General Index"
|
|
|
|
|
>index</a></li>
|
2021-04-10 04:00:37 +00:00
|
|
|
|
<li class="nav-item nav-item-0"><a href="../index.html">Shaka Packager documentation</a> »</li>
|
|
|
|
|
<li class="nav-item nav-item-this"><a href="">Raw key encryption options</a></li>
|
2017-09-20 02:35:05 +00:00
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="footer" role="contentinfo">
|
|
|
|
|
© Copyright 2017, Google.
|
2021-06-22 00:16:40 +00:00
|
|
|
|
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 4.0.2.
|
2017-09-20 02:35:05 +00:00
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|