Shaka Packager SDK
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  5.0f,
13  "Clear lead in seconds if encryption is enabled. Note that we do "
14  "not support partial segment encryption, so it is rounded up to "
15  "full segments. Set it to a value smaller than segment_duration "
16  "so only the first segment is in clear since the first segment "
17  "could be smaller than segment_duration if there is small "
18  "non-zero starting timestamp.");
19 DEFINE_double(segment_duration,
20  6.0f,
21  "Segment duration in seconds. If single_segment is specified, "
22  "this parameter sets the duration of a subsegment; otherwise, "
23  "this parameter sets the duration of a segment. Actual segment "
24  "durations may not be exactly as requested.");
25 DEFINE_bool(segment_sap_aligned,
26  true,
27  "Force segments to begin with stream access points.");
28 DEFINE_double(fragment_duration,
29  0,
30  "Fragment duration in seconds. Should not be larger than "
31  "the segment duration. Actual fragment durations may not be "
32  "exactly as requested.");
33 DEFINE_bool(fragment_sap_aligned,
34  true,
35  "Force fragments to begin with stream access points. This flag "
36  "implies segment_sap_aligned.");
37 DEFINE_bool(generate_sidx_in_media_segments,
38  true,
39  "For ISO BMFF with DASH live profile only. Indicates whether to "
40  "generate 'sidx' box in media segments. Note that it is required "
41  "by spec if segment template contains $Time$ specifier.");
42 DEFINE_string(temp_dir,
43  "",
44  "Specify a directory in which to store temporary (intermediate) "
45  " files. Used only if single_segment=true.");
46 DEFINE_bool(mp4_include_pssh_in_stream,
47  true,
48  "MP4 only: include pssh in the encrypted stream.");
49 DEFINE_int32(transport_stream_timestamp_offset_ms,
50  100,
51  "A positive value, in milliseconds, by which output timestamps "
52  "are offset to compensate for possible negative timestamps in the "
53  "input. For example, timestamps from ISO-BMFF after adjusted by "
54  "EditList could be negative. In transport streams, timestamps are "
55  "not allowed to be less than zero.");