Shaka Packager SDK
|
Defines a single input/output stream. More...
#include <packager.h>
Public Attributes | |
std::string | input |
Input/source media file path or network stream URL. Required. | |
std::string | stream_selector |
std::string | output |
std::string | segment_template |
Specifies segment template. Can be empty. | |
std::string | output_format |
bool | skip_encryption = false |
uint32_t | trick_play_factor = 0 |
uint32_t | bandwidth = 0 |
std::string | language |
std::string | hls_name |
std::string | hls_group_id |
std::string | hls_playlist_name |
Defines a single input/output stream.
Definition at line 67 of file packager.h.
uint32_t shaka::StreamDescriptor::bandwidth = 0 |
Optional user-specified content bit rate for the stream, in bits/sec. If specified, this value is propagated to the $Bandwidth$
template parameter for segment names. If not specified, its value may be estimated.
Definition at line 94 of file packager.h.
std::string shaka::StreamDescriptor::hls_group_id |
Required for audio when outputting HLS. It defines the group ID for the output stream. This is used as the GROUP-ID attribute for EXT-X-MEDIA.
Definition at line 104 of file packager.h.
std::string shaka::StreamDescriptor::hls_name |
Required for audio when outputting HLS. It defines the name of the output stream, which is not necessarily the same as output. This is used as the NAME
attribute for EXT-X-MEDIA.
Definition at line 101 of file packager.h.
std::string shaka::StreamDescriptor::hls_playlist_name |
Required for HLS output. It defines the name of the playlist for the stream. Usually ends with .m3u8
.
Definition at line 107 of file packager.h.
std::string shaka::StreamDescriptor::language |
Optional value which contains a user-specified language tag. If specified, this value overrides any language metadata in the input stream.
Definition at line 97 of file packager.h.
std::string shaka::StreamDescriptor::output |
Specifies output file path or init segment path (if segment template is specified). Can be empty for self initialization media segments.
Definition at line 77 of file packager.h.
std::string shaka::StreamDescriptor::output_format |
Optional value which specifies output container format, e.g. "mp4". If not specified, will detect from output / segment template name.
Definition at line 83 of file packager.h.
bool shaka::StreamDescriptor::skip_encryption = false |
If set to true, the stream will not be encrypted. This is useful, e.g. to encrypt only video streams.
Definition at line 86 of file packager.h.
std::string shaka::StreamDescriptor::stream_selector |
Stream selector, can be audio
, video
, text
or a zero based stream index. Required.
Definition at line 73 of file packager.h.
uint32_t shaka::StreamDescriptor::trick_play_factor = 0 |
If set to a non-zero value, will generate a trick play / trick mode stream with frames sampled from the key frames in the original stream. trick_play_factor
defines the sampling rate.
Definition at line 90 of file packager.h.