DASH Media Packaging SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations 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 DEFINE_bool(generate_static_mpd,
12  false,
13  "Set to true to generate static mpd. If segment_template is "
14  "specified in stream descriptors, shaka-packager generates dynamic "
15  "mpd by default; if this flag is enabled, shaka-packager generates "
16  "static mpd instead. Note that if segment_template is not "
17  "specified, shaka-packager always generates static mpd regardless "
18  "of the value of this flag.");
19 // TODO(rkuroiwa, kqyang): Remove the 'Exclusive' statements once
20 // --output_media_info can work together with --mpd_output.
21 DEFINE_bool(output_media_info,
22  false,
23  "Create a human readable format of MediaInfo. The output file name "
24  "will be the name specified by output flag, suffixed with "
25  "'.media_info'. Exclusive with --mpd_output.");
26 DEFINE_string(mpd_output, "",
27  "MPD output file name. Exclusive with --output_media_info.");
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_string(default_language,
55  "",
56  "Any tracks tagged with this language will have "
57  "<Role ... value=\"main\" /> in the manifest. This allows the "
58  "player to choose the correct default language for the content.");
59 DEFINE_bool(generate_dash_if_iop_compliant_mpd,
60  true,
61  "Try to generate DASH-IF IOPv3 compliant MPD. This is best effort "
62  "and does not guarantee compliance.");