Shaka Packager SDK
|
#include <multi_segment_segmenter.h>
Public Member Functions | |
MultiSegmentSegmenter (const MuxerOptions &options, std::unique_ptr< FileType > ftyp, std::unique_ptr< Movie > moov) | |
Segmenter implementation overrides. | |
bool | GetInitRange (size_t *offset, size_t *size) override |
bool | GetIndexRange (size_t *offset, size_t *size) override |
std::vector< Range > | GetSegmentRanges () override |
Public Member Functions inherited from shaka::media::mp4::Segmenter | |
Segmenter (const MuxerOptions &options, std::unique_ptr< FileType > ftyp, std::unique_ptr< Movie > moov) | |
Status | Initialize (const std::vector< std::shared_ptr< const StreamInfo >> &streams, MuxerListener *muxer_listener, ProgressListener *progress_listener) |
Status | Finalize () |
Status | AddSample (size_t stream_id, const MediaSample &sample) |
Status | FinalizeSegment (size_t stream_id, const SegmentInfo &segment_info) |
int32_t | GetReferenceTimeScale () const |
double | GetDuration () const |
int64_t | sample_duration () const |
Additional Inherited Members | |
Protected Member Functions inherited from shaka::media::mp4::Segmenter | |
void | UpdateProgress (uint64_t progress) |
Update segmentation progress using ProgressListener. | |
void | SetComplete () |
Set progress to 100%. | |
const MuxerOptions & | options () const |
FileType * | ftyp () |
Movie * | moov () |
BufferWriter * | fragment_buffer () |
SegmentIndex * | sidx () |
MuxerListener * | muxer_listener () |
uint64_t | progress_target () |
const std::vector< KeyFrameInfo > & | key_frame_infos () const |
void | set_progress_target (uint64_t progress_target) |
Segmenter for MP4 live, main and simple profiles. There can be multiple media segments, which can contain multiple fragments. The generated segments are written to files defined by MuxerOptions.segment_template if specified; otherwise, the segments are appended to the main output file specified by MuxerOptions.output_file_name.
Definition at line 24 of file multi_segment_segmenter.h.
|
overridevirtual |
Implements shaka::media::mp4::Segmenter.
Definition at line 51 of file multi_segment_segmenter.cc.
|
overridevirtual |
Implements shaka::media::mp4::Segmenter.
Definition at line 45 of file multi_segment_segmenter.cc.