2014-02-14 23:21:05 +00:00
|
|
|
// Copyright 2014 Google Inc. All rights reserved.
|
|
|
|
//
|
|
|
|
// 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
|
|
|
|
2014-09-30 23:52:58 +00:00
|
|
|
#include <stdint.h>
|
2014-06-26 01:33:09 +00:00
|
|
|
|
2013-11-12 20:37:58 +00:00
|
|
|
#include <string>
|
|
|
|
|
2017-08-18 18:57:34 +00:00
|
|
|
#include "packager/media/public/mp4_output_params.h"
|
|
|
|
|
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.
|
|
|
|
uint32_t transport_stream_timestamp_offset_ms = 0;
|
|
|
|
|
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_
|