DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations 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_double(clear_lead,
12  10.0f,
13  "Clear lead in seconds if encryption is enabled.");
14 DEFINE_double(segment_duration,
15  10.0f,
16  "Segment duration in seconds. If single_segment is specified, "
17  "this parameter sets the duration of a subsegment; otherwise, "
18  "this parameter sets the duration of a segment. Actual segment "
19  "durations may not be exactly as requested.");
20 DEFINE_bool(segment_sap_aligned,
21  true,
22  "Force segments to begin with stream access points.");
23 DEFINE_double(fragment_duration,
24  10.0f,
25  "Fragment duration in seconds. Should not be larger than "
26  "the segment duration. Actual fragment durations may not be "
27  "exactly as requested.");
28 DEFINE_bool(fragment_sap_aligned,
29  true,
30  "Force fragments to begin with stream access points. This flag "
31  "implies segment_sap_aligned.");
32 DEFINE_int32(num_subsegments_per_sidx,
33  1,
34  "For ISO BMFF only. Set the number of subsegments in each "
35  "SIDX box. If 0, a single SIDX box is used per segment; if "
36  "-1, no SIDX box is used; Otherwise, the muxer packs N "
37  "subsegments in the root SIDX of the segment, with "
38  "segment_duration/N/fragment_duration fragments per "
39  "subsegment.");
40 DEFINE_string(temp_dir,
41  "",
42  "Specify a directory in which to store temporary (intermediate) "
43  " files. Used only if single_segment=true.");
44 DEFINE_bool(mp4_include_pssh_in_stream,
45  true,
46  "MP4 only: include pssh in the encrypted stream.");