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
|
|
|
|
2014-06-26 17:42:12 +00:00
|
|
|
DEFINE_string(profile,
|
|
|
|
"",
|
|
|
|
"Specify the target DASH profile: on-demand or live. This will "
|
|
|
|
"set proper option values to ensure conformance to the desired "
|
|
|
|
"profile.");
|
2014-05-08 21:02:36 +00:00
|
|
|
DEFINE_double(clear_lead,
|
2014-05-14 23:19:35 +00:00
|
|
|
10.0f,
|
2014-05-08 21:02:36 +00:00
|
|
|
"Clear lead in seconds if encryption is enabled.");
|
|
|
|
DEFINE_bool(single_segment,
|
|
|
|
true,
|
|
|
|
"Generate a single segment for the media presentation. This option "
|
|
|
|
"should be set for on demand profile.");
|
|
|
|
DEFINE_double(segment_duration,
|
|
|
|
10.0f,
|
|
|
|
"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,
|
2014-05-14 23:19:35 +00:00
|
|
|
10.0f,
|
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.");
|
|
|
|
DEFINE_int32(num_subsegments_per_sidx,
|
|
|
|
1,
|
|
|
|
"For ISO BMFF only. Set the number of subsegments in each "
|
|
|
|
"SIDX box. If 0, a single SIDX box is used per segment; if "
|
|
|
|
"-1, no SIDX box is used; Otherwise, the muxer packs N "
|
|
|
|
"subsegments in the root SIDX of the segment, with "
|
|
|
|
"segment_duration/N/fragment_duration fragments per "
|
|
|
|
"subsegment.");
|
|
|
|
DEFINE_string(temp_dir,
|
|
|
|
"",
|
|
|
|
"Specify a directory in which to store temporary (intermediate) "
|
|
|
|
" files. Used only if single_segment=true.");
|
2016-07-27 00:51:08 +00:00
|
|
|
DEFINE_bool(webm_subsample_encryption, true,
|
|
|
|
"Enable WebM subsample encryption.");
|