2014-05-08 21:02:36 +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
|
|
|
|
//
|
|
|
|
// Defines Muxer flags.
|
|
|
|
|
2014-10-01 22:10:21 +00:00
|
|
|
#include "packager/app/muxer_flags.h"
|
2014-05-08 21:02:36 +00:00
|
|
|
|
|
|
|
DEFINE_double(clear_lead,
|
2018-08-13 21:59:11 +00:00
|
|
|
5.0f,
|
|
|
|
"Clear lead in seconds if encryption is enabled. Note that we do "
|
|
|
|
"not support partial segment encryption, so it is rounded up to "
|
|
|
|
"full segments. Set it to a value smaller than segment_duration "
|
|
|
|
"so only the first segment is in clear since the first segment "
|
|
|
|
"could be smaller than segment_duration if there is small "
|
|
|
|
"non-zero starting timestamp.");
|
2014-05-08 21:02:36 +00:00
|
|
|
DEFINE_double(segment_duration,
|
2018-07-28 00:29:53 +00:00
|
|
|
6.0f,
|
2014-05-08 21:02:36 +00:00
|
|
|
"Segment duration in seconds. If single_segment is specified, "
|
|
|
|
"this parameter sets the duration of a subsegment; otherwise, "
|
|
|
|
"this parameter sets the duration of a segment. Actual segment "
|
|
|
|
"durations may not be exactly as requested.");
|
|
|
|
DEFINE_bool(segment_sap_aligned,
|
|
|
|
true,
|
|
|
|
"Force segments to begin with stream access points.");
|
|
|
|
DEFINE_double(fragment_duration,
|
2018-07-28 00:29:53 +00:00
|
|
|
0,
|
2014-05-08 21:02:36 +00:00
|
|
|
"Fragment duration in seconds. Should not be larger than "
|
|
|
|
"the segment duration. Actual fragment durations may not be "
|
|
|
|
"exactly as requested.");
|
|
|
|
DEFINE_bool(fragment_sap_aligned,
|
|
|
|
true,
|
|
|
|
"Force fragments to begin with stream access points. This flag "
|
|
|
|
"implies segment_sap_aligned.");
|
2018-06-15 18:59:02 +00:00
|
|
|
DEFINE_bool(generate_sidx_in_media_segments,
|
|
|
|
true,
|
|
|
|
"For ISO BMFF with DASH live profile only. Indicates whether to "
|
|
|
|
"generate 'sidx' box in media segments. Note that it is required "
|
|
|
|
"by spec if segment template contains $Time$ specifier.");
|
2014-05-08 21:02:36 +00:00
|
|
|
DEFINE_string(temp_dir,
|
|
|
|
"",
|
|
|
|
"Specify a directory in which to store temporary (intermediate) "
|
|
|
|
" files. Used only if single_segment=true.");
|
2017-03-15 19:42:00 +00:00
|
|
|
DEFINE_bool(mp4_include_pssh_in_stream,
|
|
|
|
true,
|
|
|
|
"MP4 only: include pssh in the encrypted stream.");
|
2018-07-03 23:52:05 +00:00
|
|
|
DEFINE_int32(transport_stream_timestamp_offset_ms,
|
|
|
|
100,
|
|
|
|
"A positive value, in milliseconds, by which output timestamps "
|
|
|
|
"are offset to compensate for possible negative timestamps in the "
|
|
|
|
"input. For example, timestamps from ISO-BMFF after adjusted by "
|
|
|
|
"EditList could be negative. In transport streams, timestamps are "
|
|
|
|
"not allowed to be less than zero.");
|