2022-08-26 15:44:59 +00:00
|
|
|
// Copyright 2014 Google LLC. All rights reserved.
|
2014-02-14 23:21:05 +00:00
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
2013-11-12 20:37:58 +00:00
|
|
|
|
2017-12-20 00:56:36 +00:00
|
|
|
#ifndef PACKAGER_MEDIA_BASE_MUXER_OPTIONS_H_
|
|
|
|
#define PACKAGER_MEDIA_BASE_MUXER_OPTIONS_H_
|
2013-11-12 20:37:58 +00:00
|
|
|
|
2023-10-11 08:49:50 +00:00
|
|
|
#include <cstdint>
|
2013-11-12 20:37:58 +00:00
|
|
|
#include <string>
|
|
|
|
|
2023-10-10 23:51:11 +00:00
|
|
|
#include <packager/media/public/mp4_output_params.h>
|
2017-08-18 18:57:34 +00:00
|
|
|
|
2016-05-20 21:19:33 +00:00
|
|
|
namespace shaka {
|
2013-11-12 20:37:58 +00:00
|
|
|
namespace media {
|
|
|
|
|
2014-01-24 18:46:46 +00:00
|
|
|
/// This structure contains the list of configuration options for Muxer.
|
2013-11-12 20:37:58 +00:00
|
|
|
struct MuxerOptions {
|
2014-01-16 00:52:07 +00:00
|
|
|
MuxerOptions();
|
|
|
|
~MuxerOptions();
|
|
|
|
|
2017-08-18 18:57:34 +00:00
|
|
|
/// MP4 (ISO-BMFF) specific parameters.
|
|
|
|
Mp4OutputParams mp4_params;
|
2016-07-12 20:48:28 +00:00
|
|
|
|
2018-07-03 23:52:05 +00:00
|
|
|
// A positive value, in milliseconds, by which output timestamps are offset to
|
|
|
|
// compensate for negative timestamps in the input.
|
2021-08-04 18:56:44 +00:00
|
|
|
int32_t transport_stream_timestamp_offset_ms = 0;
|
2018-07-03 23:52:05 +00:00
|
|
|
|
2014-01-24 18:46:46 +00:00
|
|
|
/// Output file name. If segment_template is not specified, the Muxer
|
|
|
|
/// generates this single output file with all segments concatenated;
|
|
|
|
/// Otherwise, it specifies the init segment name.
|
2013-11-12 20:37:58 +00:00
|
|
|
std::string output_file_name;
|
|
|
|
|
2014-01-24 18:46:46 +00:00
|
|
|
/// Specify output segment name pattern for generated segments. It can
|
|
|
|
/// furthermore be configured by using a subset of the SegmentTemplate
|
|
|
|
/// identifiers: $RepresentationID$, $Number$, $Bandwidth$ and $Time.
|
|
|
|
/// Optional.
|
2013-11-12 20:37:58 +00:00
|
|
|
std::string segment_template;
|
|
|
|
|
2014-05-08 21:02:36 +00:00
|
|
|
/// Specify temporary directory for intermediate files.
|
|
|
|
std::string temp_dir;
|
2014-06-27 23:07:36 +00:00
|
|
|
|
2014-06-26 01:33:09 +00:00
|
|
|
/// User-specified bit rate for the media stream. If zero, the muxer will
|
|
|
|
/// attempt to estimate.
|
2017-01-07 02:40:37 +00:00
|
|
|
uint32_t bandwidth = 0;
|
2013-11-12 20:37:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace media
|
2016-05-20 21:19:33 +00:00
|
|
|
} // namespace shaka
|
2013-11-12 20:37:58 +00:00
|
|
|
|
2017-12-20 00:56:36 +00:00
|
|
|
#endif // PACKAGER_MEDIA_BASE_MUXER_OPTIONS_H_
|