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 > Stream descriptors — 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 = "" > Stream descriptors< / 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 = "stream-descriptors" >
2017-09-20 02:35:05 +00:00
< h1 > Stream descriptors< a class = "headerlink" href = "#stream-descriptors" title = "Permalink to this headline" > ¶< / a > < / h1 >
2018-02-10 23:37:42 +00:00
< p > There can be multiple < em > stream_descriptor< / em > with input from the same “file” or
multiple different “files”.< / p >
2017-10-24 22:51:02 +00:00
< p > Stream descriptor is of the form:< / p >
2020-01-22 00:59:16 +00:00
< div class = "highlight-default notranslate" > < div class = "highlight" > < pre > < span > < / span > < span class = "o" > < < / span > < span class = "n" > field< / span > < span class = "o" > > =< < / span > < span class = "n" > value< / span > < span class = "o" > > < / span > < span class = "p" > [,< / span > < span class = "o" > < < / span > < span class = "n" > field< / span > < span class = "o" > > =< < / span > < span class = "n" > value< / span > < span class = "o" > > < / span > < span class = "p" > ]< / span > < span class = "o" > ...< / span >
2017-09-20 02:35:05 +00:00
< / pre > < / div >
< / div >
< p > These are the available fields:< / p >
2021-04-10 04:00:37 +00:00
< dl class = "field-list" >
2020-01-22 00:59:16 +00:00
< dt class = "field-odd" > input (in)< / dt >
< dd class = "field-odd" > < p > input/source media “file” path, which can be regular files, pipes, udp
2017-09-20 02:35:05 +00:00
streams. See < a class = "reference internal" href = "udp_file_options.html" > < span class = "doc" > UDP file options< / span > < / a > on additional options for UDP
2020-01-22 00:59:16 +00:00
files.< / p >
< / dd >
< dt class = "field-even" > stream_selector (stream)< / dt >
< dd class = "field-even" > < p > Required field with value ‘ audio’ , ‘ video’ , ‘ text’ or stream number (zero
based).< / p >
< / dd >
< dt class = "field-odd" > output (out)< / dt >
< dd class = "field-odd" > < p > Required output file path (single file).< / p >
< / dd >
< dt class = "field-even" > init_segment< / dt >
< dd class = "field-even" > < p > initialization segment path (multiple file).< / p >
< / dd >
< dt class = "field-odd" > segment_template (segment)< / dt >
< dd class = "field-odd" > < p > Optional value which specifies the naming pattern for the segment files,
2017-09-20 02:35:05 +00:00
and that the stream should be split into multiple files. Its presence should
be consistent across streams. See
2020-01-22 00:59:16 +00:00
< a class = "reference internal" href = "segment_template_formatting.html" > < span class = "doc" > Segment template formatting< / span > < / a > .< / p >
< / dd >
< dt class = "field-even" > bandwidth (bw)< / dt >
< dd class = "field-even" > < p > Optional value which contains a user-specified maximum bit rate for the
2017-09-20 02:35:05 +00:00
stream, in bits/sec. If specified, this value is propagated to (HLS)
EXT-X-STREAM-INF:BANDWIDTH or (DASH) Representation@ bandwidth and the
$Bandwidth$ template parameter for segment names. If not specified, the
bandwidth value is estimated from content bitrate. Note that it only affects
the generated manifests/playlists; it has no effect on the media content
2020-01-22 00:59:16 +00:00
itself.< / p >
< / dd >
< dt class = "field-odd" > language (lang)< / dt >
< dd class = "field-odd" > < p > Optional value which contains a user-specified language tag. If specified,
this value overrides any language metadata in the input stream.< / p >
< / dd >
< dt class = "field-even" > output_format (format)< / dt >
< dd class = "field-even" > < p > Optional value which specifies the format of the output files (MP4 or WebM).
2017-09-20 02:35:05 +00:00
If not specified, it will be derived from the file extension of the output
2020-01-22 00:59:16 +00:00
file.< / p >
2021-04-10 04:00:37 +00:00
< p > For subtitles in MP4, you can specify ‘ vtt+mp4’ or ‘ ttml+mp4’ to control
which text format is used.< / p >
2020-01-22 00:59:16 +00:00
< / dd >
< dt class = "field-odd" > trick_play_factor (tpf)< / dt >
< dd class = "field-odd" > < p > Optional value which specifies the trick play, a.k.a. trick mode, stream
2017-10-24 22:51:02 +00:00
sampling rate among key frames. If specified, the output is a trick play
2020-01-22 00:59:16 +00:00
stream.< / p >
< / dd >
2021-04-10 04:00:37 +00:00
< dt class = "field-even" > cc_index< / dt >
< dd class = "field-even" > < p > Optional value which specifies the index/ID of the subtitle stream to use
for formats where multiple exist within the same stream. For example,
CEA allows specifying up to 4 streams within a single video stream. If not
specified, all subtitles will be merged together.< / p >
< / dd >
2020-01-22 00:59:16 +00:00
< / dl >
2021-06-22 00:16:40 +00:00
< / section >
< section id = "drm-related-stream-descriptor-fields" >
2017-10-24 22:51:02 +00:00
< h1 > DRM related Stream descriptor fields< a class = "headerlink" href = "#drm-related-stream-descriptor-fields" title = "Permalink to this headline" > ¶< / a > < / h1 >
2020-01-22 00:59:16 +00:00
< dl class = "field-list simple" >
< dt class = "field-odd" > skip_encryption=0|1< / dt >
< dd class = "field-odd" > < p > Optional. Defaults to 0 if not specified. If it is set to 1, no encryption
of the stream will be made.< / p >
< / dd >
< dt class = "field-even" > drm_label< / dt >
< dd class = "field-even" > < p > Optional value for custom DRM label, which defines the encryption key
2017-10-24 22:51:02 +00:00
applied to the stream. Typically values include AUDIO, SD, HD, UHD1, UHD2.
2018-02-10 23:37:42 +00:00
For raw key, it should be a label defined in – keys. If not provided, the
2017-10-24 22:51:02 +00:00
DRM label is derived from stream type (video, audio), resolutions, etc.
2020-01-22 00:59:16 +00:00
Note that it is case sensitive.< / p >
< / dd >
< / dl >
2021-06-22 00:16:40 +00:00
< / section >
< section id = "dash-specific-stream-descriptor-fields" >
2018-12-20 22:38:40 +00:00
< h1 > DASH specific stream descriptor fields< a class = "headerlink" href = "#dash-specific-stream-descriptor-fields" title = "Permalink to this headline" > ¶< / a > < / h1 >
2020-01-22 00:59:16 +00:00
< dl class = "field-list simple" >
< dt class = "field-odd" > dash_accessibilities (accessibilities)< / dt >
< dd class = "field-odd" > < p > Optional semicolon separated list of values for DASH Accessibility element.
The value should be in the format: scheme_id_uri=value, which propagates
to the Accessibility element in the result DASH manifest. See DASH
(ISO/IEC 23009-1) specification for details.< / p >
< / dd >
< dt class = "field-even" > dash_roles (roles)< / dt >
< dd class = "field-even" > < p > Optional semicolon separated list of values for DASH Role element. The
value should be one of: < strong > caption< / strong > , < strong > subtitle< / strong > , < strong > main< / strong > , < strong > alternate< / strong > ,
< strong > supplementary< / strong > , < strong > commentary< / strong > and < strong > dub< / strong > . See DASH (ISO/IEC 23009-1)
specification for details.< / p >
< / dd >
< / dl >
2021-06-22 00:16:40 +00:00
< / section >
< section id = "hls-specific-stream-descriptor-fields" >
2017-09-20 02:35:05 +00:00
< h1 > HLS specific stream descriptor fields< a class = "headerlink" href = "#hls-specific-stream-descriptor-fields" title = "Permalink to this headline" > ¶< / a > < / h1 >
2020-01-22 00:59:16 +00:00
< dl class = "field-list simple" >
< dt class = "field-odd" > hls_name< / dt >
< dd class = "field-odd" > < p > Used for HLS audio to set the NAME attribute for EXT-X-MEDIA.
Defaults to the base of the playlist name.< / p >
< / dd >
< dt class = "field-even" > hls_group_id< / dt >
< dd class = "field-even" > < p > Used for HLS audio to set the GROUP-ID attribute for EXT-X-MEDIA.
Defaults to ‘ audio’ if not specified.< / p >
< / dd >
< dt class = "field-odd" > playlist_name< / dt >
< dd class = "field-odd" > < p > The HLS playlist file to create. Usually ends with ‘ .m3u8’ , and is
2018-02-10 23:37:42 +00:00
relative to hls_master_playlist_output (see below). If unspecified,
defaults to something of the form ‘ stream_0.m3u8’ , ‘ stream_1.m3u8’ ,
2020-01-22 00:59:16 +00:00
‘ stream_2.m3u8’ , etc.< / p >
< / dd >
< dt class = "field-even" > iframe_playlist_name< / dt >
< dd class = "field-even" > < p > The optional HLS I-Frames only playlist file to create. Usually ends with
2018-02-10 23:37:42 +00:00
‘ .m3u8’ , and is relative to hls_master_playlist_output (see below). Should
only be set for video streams. If unspecified, no I-Frames only playlist is
2020-01-22 00:59:16 +00:00
created.< / p >
< / dd >
< dt class = "field-odd" > hls_characteristics (charcs)< / dt >
< dd class = "field-odd" > < p > Optional colon or semi-colon separated list of values for the
2018-12-20 22:38:40 +00:00
CHARACTERISTICS attribute for EXT-X-MEDIA. See CHARACTERISTICS attribute in
2020-01-22 00:59:16 +00:00
< a class = "reference external" href = "http://bit.ly/2OOUkdB" > http://bit.ly/2OOUkdB< / a > for details.< / 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" >
< h3 > < a href = "../index.html" > Table of Contents< / a > < / h3 >
< ul >
< li > < a class = "reference internal" href = "#" > Stream descriptors< / a > < / li >
< li > < a class = "reference internal" href = "#drm-related-stream-descriptor-fields" > DRM related Stream descriptor fields< / a > < / li >
< li > < a class = "reference internal" href = "#dash-specific-stream-descriptor-fields" > DASH specific stream descriptor fields< / a > < / li >
< li > < a class = "reference internal" href = "#hls-specific-stream-descriptor-fields" > HLS specific stream descriptor fields< / a > < / li >
< / ul >
< div role = "note" aria-label = "source link" >
< h3 > This Page< / h3 >
< ul class = "this-page-menu" >
< li > < a href = "../_sources/options/stream_descriptors.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 = "" > Stream descriptors< / 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 >