238 lines
9.2 KiB
HTML
238 lines
9.2 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
|
|
|
<title>Design — Shaka Packager documentation</title>
|
|
|
|
<link rel="stylesheet" href="_static/sphinxdoc_new.css" type="text/css" />
|
|
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
|
<link rel="stylesheet" href="_static/table_styling.css" type="text/css" />
|
|
|
|
<script type="text/javascript">
|
|
var DOCUMENTATION_OPTIONS = {
|
|
URL_ROOT: './',
|
|
VERSION: '',
|
|
COLLAPSE_INDEX: false,
|
|
FILE_SUFFIX: '.html',
|
|
HAS_SOURCE: true,
|
|
SOURCELINK_SUFFIX: '.txt'
|
|
};
|
|
</script>
|
|
<script type="text/javascript" src="_static/jquery.js"></script>
|
|
<script type="text/javascript" src="_static/underscore.js"></script>
|
|
<script type="text/javascript" src="_static/doctools.js"></script>
|
|
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
|
|
<link rel="index" title="Index" href="genindex.html" />
|
|
<link rel="search" title="Search" href="search.html" />
|
|
<link rel="next" title="Shaka Packager Library" href="library.html" />
|
|
<link rel="prev" title="FFmpeg piping" href="tutorials/ffmpeg_piping.html" />
|
|
</head>
|
|
<body role="document">
|
|
<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>
|
|
<li class="right" >
|
|
<a href="library.html" title="Shaka Packager Library"
|
|
accesskey="N">next</a> |</li>
|
|
<li class="right" >
|
|
<a href="tutorials/ffmpeg_piping.html" title="FFmpeg piping"
|
|
accesskey="P">previous</a> |</li>
|
|
<li class="nav-item nav-item-0"><a href="index.html">Shaka Packager documentation</a> »</li>
|
|
</ul>
|
|
</div>
|
|
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
|
|
<div class="sphinxsidebarwrapper">
|
|
<h3><a href="index.html">Table Of Contents</a></h3>
|
|
<ul>
|
|
<li><a class="reference internal" href="#">Design</a><ul>
|
|
<li><a class="reference internal" href="#architecture-diagram">Architecture diagram</a></li>
|
|
<li><a class="reference internal" href="#media-handler-data-flow">Media handler data flow</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
<h4>Previous topic</h4>
|
|
<p class="topless"><a href="tutorials/ffmpeg_piping.html"
|
|
title="previous chapter">FFmpeg piping</a></p>
|
|
<h4>Next topic</h4>
|
|
<p class="topless"><a href="library.html"
|
|
title="next chapter">Shaka Packager Library</a></p>
|
|
<div role="note" aria-label="source link">
|
|
<h3>This Page</h3>
|
|
<ul class="this-page-menu">
|
|
<li><a href="_sources/design.rst.txt"
|
|
rel="nofollow">Show Source</a></li>
|
|
</ul>
|
|
</div>
|
|
<div id="searchbox" style="display: none" role="search">
|
|
<h3>Quick search</h3>
|
|
<form class="search" action="search.html" method="get">
|
|
<div><input type="text" name="q" /></div>
|
|
<div><input type="submit" value="Go" /></div>
|
|
<input type="hidden" name="check_keywords" value="yes" />
|
|
<input type="hidden" name="area" value="default" />
|
|
</form>
|
|
</div>
|
|
<script type="text/javascript">$('#searchbox').show(0);</script>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="document">
|
|
<div class="documentwrapper">
|
|
<div class="bodywrapper">
|
|
<div class="body" role="main">
|
|
|
|
<div class="section" id="design">
|
|
<h1>Design<a class="headerlink" href="#design" title="Permalink to this headline">¶</a></h1>
|
|
<div class="section" id="architecture-diagram">
|
|
<h2>Architecture diagram<a class="headerlink" href="#architecture-diagram" title="Permalink to this headline">¶</a></h2>
|
|
<img src="_images/graphviz-3d064d3d3c78c2f86da25ace49db3e3c4e03a691.png" alt="digraph shaka_packager {
|
|
label=<<u>Shaka Packager Architecture</u>>
|
|
labelloc=t
|
|
|
|
subgraph cluster_media {
|
|
label=<<u>Media Processing Pipeline</u>>
|
|
|
|
Demuxer, ChunkingHandler, EncryptionHandler, Replicator,
|
|
TrickplayHandler, Muxer [shape=rectangle]
|
|
|
|
Demuxer -> ChunkingHandler [style=bold headlabel="many" taillabel="1"]
|
|
ChunkingHandler -> EncryptionHandler -> Replicator -> TrickplayHandler
|
|
-> Muxer [style=bold]
|
|
ChunkingHandler -> Replicator -> Muxer [style=bold]
|
|
}
|
|
|
|
MuxerListener, MpdNotifyMuxerListener, HlsNotifyMuxerListener,
|
|
MpdNotifier, HlsNotifier [shape=rectangle style=rounded]
|
|
|
|
Muxer -> MuxerListener
|
|
MuxerListener -> MpdNotifyMuxerListener, HlsNotifyMuxerListener
|
|
[dir=back arrowtail=onormal]
|
|
|
|
subgraph cluster_manifest {
|
|
label=<<u>Manifest Generation</u>>
|
|
|
|
HlsNotifyMuxerListener -> HlsNotifier [headlabel="1" taillabel="many"]
|
|
MpdNotifyMuxerListener -> MpdNotifier [headlabel="1" taillabel="many"]
|
|
|
|
MasterPlaylist, MediaPlaylist, MpdBuilder, AdaptationSet,
|
|
Representation [shape=trapezium]
|
|
|
|
HlsNotifier -> MasterPlaylist
|
|
MasterPlaylist -> MediaPlaylist
|
|
[dir=back arrowtail=diamond headlabel="many" taillabel="1"]
|
|
MpdNotifier -> MpdBuilder
|
|
MpdBuilder -> AdaptationSet -> Representation
|
|
[dir=back arrowtail=diamond headlabel="many" taillabel="1"]
|
|
|
|
{rank=same; MasterPlaylist, MpdBuilder}
|
|
{rank=same; MediaPlaylist, Representation}
|
|
}
|
|
}" />
|
|
<img src="_images/graphviz-d08592da92fae1a4929d96c1cb6e446e05714101.png" alt="digraph shaka_packager {
|
|
subgraph cluster_demuxer {
|
|
style=rounded
|
|
label=<<u> </u>>
|
|
|
|
Demuxer2 [label="Demuxer" shape=rectangle]
|
|
Demuxer2 -> MediaParser
|
|
[dir=back arrowtail=diamond headlabel="1" taillabel="1"]
|
|
MediaParser -> Mp4MediaParser, WebMMediaParser, Mp2tMediaParser,
|
|
WvmMediaParser [dir=back arrowtail=onormal]
|
|
}
|
|
|
|
subgraph cluster_muxer {
|
|
style=rounded
|
|
label=<<u> </u>>
|
|
|
|
Muxer2 [label="Muxer" shape=rectangle]
|
|
Muxer2 -> Mp4Muxer, WebMMuxer, Mp2tMuxer [dir=back arrowtail=onormal]
|
|
}
|
|
}" />
|
|
<img src="_images/graphviz-426ceb00b0739eba2ed2de6d0d71f24a0021c268.png" alt="digraph shaka_packager {
|
|
subgraph cluster_legend {
|
|
style=rounded
|
|
label=<<u>Legend</u>>
|
|
|
|
node [shape=plaintext]
|
|
|
|
blank1 [label="" height=0]
|
|
blank2 [label="" height=0]
|
|
blank3 [label="" height=0]
|
|
|
|
"Composition" -> blank1 [dir=back arrowtail=diamond]
|
|
"Inheritance" -> blank2 [dir=back arrowtail=onormal]
|
|
"MediaHandler data flow" -> blank3 [style=bold]
|
|
|
|
"Bridge Class" [shape=rectangle style=rounded]
|
|
"Manifest Class" [shape=trapezium]
|
|
MediaHandler [shape=rectangle]
|
|
}
|
|
}" />
|
|
</div>
|
|
<div class="section" id="media-handler-data-flow">
|
|
<h2>Media handler data flow<a class="headerlink" href="#media-handler-data-flow" title="Permalink to this headline">¶</a></h2>
|
|
<img src="_images/graphviz-787838559a989a01982bde69df7d1ba50dba3dae.png" alt="digraph g {
|
|
rankdir=LR
|
|
|
|
StreamData [
|
|
label="{... | SegmentInfo | MediaSample ... | SegmentInfo | MediaSample ... | StreamInfo}"
|
|
shape=record
|
|
style=rounded
|
|
];
|
|
|
|
MediaHandler [shape=rectangle]
|
|
MediaHandler2 [shape=rectangle, label=MediaHandler]
|
|
MediaHandler -> StreamData -> MediaHandler2
|
|
}" />
|
|
<p class="plantuml">
|
|
<img src="_images/plantuml-d388f7ab1eb3f4d70c57feb299c189351a097db9.png" alt="MediaHandler -> MediaHandler2 : StreamInfo
|
|
MediaHandler -> MediaHandler2 : MediaSample
|
|
MediaHandler -> MediaHandler2 : MediaSample
|
|
MediaHandler -> MediaHandler2 : ...
|
|
MediaHandler -> MediaHandler2 : MediaSample
|
|
MediaHandler -> MediaHandler2 : SegmentInfo
|
|
MediaHandler -> MediaHandler2 : MediaSample
|
|
MediaHandler -> MediaHandler2 : MediaSample
|
|
MediaHandler -> MediaHandler2 : ...
|
|
MediaHandler -> MediaHandler2 : MediaSample
|
|
MediaHandler -> MediaHandler2 : SegmentInfo
|
|
MediaHandler -> MediaHandler2 : ..." />
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<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>
|
|
<li class="right" >
|
|
<a href="library.html" title="Shaka Packager Library"
|
|
>next</a> |</li>
|
|
<li class="right" >
|
|
<a href="tutorials/ffmpeg_piping.html" title="FFmpeg piping"
|
|
>previous</a> |</li>
|
|
<li class="nav-item nav-item-0"><a href="index.html">Shaka Packager documentation</a> »</li>
|
|
</ul>
|
|
</div>
|
|
<div class="footer" role="contentinfo">
|
|
© Copyright 2017, Google.
|
|
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.5.3.
|
|
</div>
|
|
</body>
|
|
</html> |