7 #ifndef PACKAGER_MEDIA_FORMATS_MP2T_TS_SEGMENTER_H_
8 #define PACKAGER_MEDIA_FORMATS_MP2T_TS_SEGMENTER_H_
11 #include "packager/file/file.h"
12 #include "packager/media/base/muxer_options.h"
13 #include "packager/media/formats/mp2t/pes_packet_generator.h"
14 #include "packager/media/formats/mp2t/ts_writer.h"
15 #include "packager/status.h"
68 std::unique_ptr<PesPacketGenerator> generator);
74 Status StartSegmentIfNeeded(int64_t next_pts);
83 Codec codec_ = kUnknownCodec;
84 std::vector<uint8_t> audio_codec_config_;
86 const uint32_t transport_stream_timestamp_offset_ = 0;
89 double timescale_scale_ = 1.0;
92 uint64_t segment_number_ = 0;
94 std::unique_ptr<TsWriter> ts_writer_;
100 bool segment_started_ =
false;
101 std::unique_ptr<PesPacketGenerator> pes_packet_generator_;
103 int64_t segment_start_timestamp_ = -1;
All the methods that are virtual are virtual for mocking.