DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerator
mpd_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 Mpd flags.
8 
9 #include "packager/app/mpd_flags.h"
10 
11 // TODO(rkuroiwa, kqyang): Remove the 'Exclusive' statements once
12 // --output_media_info can work together with --mpd_output.
13 DEFINE_bool(output_media_info,
14  false,
15  "Create a human readable format of MediaInfo. The output file name "
16  "will be the name specified by output flag, suffixed with "
17  "'.media_info'. Exclusive with --mpd_output.");
18 DEFINE_string(mpd_output, "",
19  "MPD output file name. Exclusive with --output_media_info.");
20 DEFINE_string(scheme_id_uri,
21  "urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed",
22  "This flag only applies if output_media_info is true. This value "
23  "will be set in MediaInfo if the stream is encrypted. "
24  "If the stream is encrypted, MPD requires a <ContentProtection> "
25  "element which requires the schemeIdUri attribute. "
26  "Default value is Widevine PSSH system ID, and it is valid only "
27  "for ISO BMFF.");
28 DEFINE_string(base_urls,
29  "",
30  "Comma separated BaseURLs for the MPD. The values will be added "
31  "as <BaseURL> element(s) immediately under the <MPD> element.");
32 DEFINE_double(min_buffer_time,
33  2.0,
34  "Specifies, in seconds, a common duration used in the definition "
35  "of the MPD Representation data rate.");
36 DEFINE_double(availability_time_offset,
37  10.0,
38  "Offset with respect to the wall clock time for MPD "
39  "availabilityStartTime and availabilityEndTime values, in "
40  " seconds. This value is used for live profile only.");
41 DEFINE_double(minimum_update_period,
42  5.0,
43  "Indicates to the player how often to refresh the media "
44  "presentation description in seconds. This value is used for "
45  "live profile only.");
46 DEFINE_double(time_shift_buffer_depth,
47  1800.0,
48  "Guaranteed duration of the time shifting buffer for dynamic "
49  "media presentations, in seconds.");
50 DEFINE_double(suggested_presentation_delay,
51  0.0,
52  "Specifies a delay, in seconds, to be added to the media "
53  "presentation time. This value is used for live profile only.");
54 DEFINE_bool(generate_dash_if_iop_compliant_mpd,
55  false,
56  "Try to generate DASH-IF IOPv3 compliant MPD. This is best effort "
57  "and does not guarantee compliance. Off by default until players "
58  "support IOP MPDs.");