7 #ifndef PACKAGER_PACKAGER_H_ 8 #define PACKAGER_PACKAGER_H_ 14 #include "packager/file/public/buffer_callback_params.h" 15 #include "packager/hls/public/hls_params.h" 16 #include "packager/media/public/ad_cue_generator_params.h" 17 #include "packager/media/public/chunking_params.h" 18 #include "packager/media/public/crypto_params.h" 19 #include "packager/media/public/mp4_output_params.h" 20 #include "packager/mpd/public/mpd_params.h" 21 #include "packager/status.h" 46 uint32_t transport_stream_timestamp_offset_ms = 0;
55 bool output_media_info =
false;
92 bool skip_encryption =
false;
101 uint32_t trick_play_factor = 0;
105 uint32_t bandwidth = 0;
144 const std::vector<StreamDescriptor>& stream_descriptors);
155 static std::string GetLibraryVersion();
176 static std::string DefaultStreamLabelFunction(
186 struct PackagerInternal;
187 std::unique_ptr<PackagerInternal> internal_;
192 #endif // PACKAGER_PACKAGER_H_ std::string stream_selector
BufferCallbackParams buffer_callback_params
Buffer callback params.
DASH MPD related parameters.
Defines a single input/output stream.
std::string input
Input/source media file path or network stream URL. Required.
HlsParams hls_params
HLS related parameters.
ChunkingParams chunking_params
Chunking (segmentation) related parameters.
std::string hls_playlist_name
std::string segment_template
Specifies segment template. Can be empty.
Parameters used for testing.
std::string output_format
bool dump_stream_info
Whether to dump input stream info.
All the methods that are virtual are virtual for mocking.
std::string injected_library_version
MpdParams mpd_params
DASH MPD related parameters.
MP4 (ISO-BMFF) output related parameters.
AdCueGeneratorParams ad_cue_generator_params
Out of band cuepoint parameters.
std::string temp_dir
Specify temporary directory for intermediate temporary files.
Cuepoint generator related parameters.
Mp4OutputParams mp4_output_params
MP4 (ISO-BMFF) output related parameters.
EncryptionParams encryption_params
Encryption and Decryption Parameters.
Chunking (segmentation) related parameters.
std::vector< std::string > hls_characteristics
Encrypted stream information that is used to determine stream label.
std::string hls_iframe_playlist_name
std::vector< std::string > dash_accessiblities
Optional for DASH output. It defines Accessibility elements of the stream.
std::vector< std::string > dash_roles
Optional for DASH output. It defines Role elements of the stream.