DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
muxer_flags.cc
1 // Copyright 2014 Google Inc. All rights reserved.
2 //
3 // Use of this source code is governed by a BSD-style
4 // license that can be found in the LICENSE file or at
5 // https://developers.google.com/open-source/licenses/bsd
6 //
7 // Defines Muxer flags.
8 
9 #include "packager/app/muxer_flags.h"
10 
11 DEFINE_string(profile,
12  "",
13  "Specify the target DASH profile: on-demand or live. This will "
14  "set proper option values to ensure conformance to the desired "
15  "profile.");
16 DEFINE_double(clear_lead,
17  10.0f,
18  "Clear lead in seconds if encryption is enabled.");
19 DEFINE_bool(single_segment,
20  true,
21  "Generate a single segment for the media presentation. This option "
22  "should be set for on demand profile.");
23 DEFINE_double(segment_duration,
24  10.0f,
25  "Segment duration in seconds. If single_segment is specified, "
26  "this parameter sets the duration of a subsegment; otherwise, "
27  "this parameter sets the duration of a segment. Actual segment "
28  "durations may not be exactly as requested.");
29 DEFINE_bool(segment_sap_aligned,
30  true,
31  "Force segments to begin with stream access points.");
32 DEFINE_double(fragment_duration,
33  10.0f,
34  "Fragment duration in seconds. Should not be larger than "
35  "the segment duration. Actual fragment durations may not be "
36  "exactly as requested.");
37 DEFINE_bool(fragment_sap_aligned,
38  true,
39  "Force fragments to begin with stream access points. This flag "
40  "implies segment_sap_aligned.");
41 DEFINE_int32(num_subsegments_per_sidx,
42  1,
43  "For ISO BMFF only. Set the number of subsegments in each "
44  "SIDX box. If 0, a single SIDX box is used per segment; if "
45  "-1, no SIDX box is used; Otherwise, the muxer packs N "
46  "subsegments in the root SIDX of the segment, with "
47  "segment_duration/N/fragment_duration fragments per "
48  "subsegment.");
49 DEFINE_string(temp_dir,
50  "",
51  "Specify a directory in which to store temporary (intermediate) "
52  " files. Used only if single_segment=true.");
53