Shaka Packager SDK
Loading...
Searching...
No Matches
manifest_flags.cc
1// Copyright 2018 Google LLC. 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#include <packager/app/manifest_flags.h>
8
9ABSL_FLAG(double,
10 time_shift_buffer_depth,
11 1800.0,
12 "Guaranteed duration of the time shifting buffer for HLS LIVE "
13 "playlists and DASH dynamic media presentations, in seconds.");
14ABSL_FLAG(bool,
15 event_to_vod_on_end_of_stream,
16 false,
17 "Set to true to convert an event stream to VOD in place "
18 "once end of stream is detected");
19ABSL_FLAG(
20 uint64_t,
21 preserved_segments_outside_live_window,
22 50,
23 "Segments outside the live window (defined by '--time_shift_buffer_depth') "
24 "are automatically removed except for the most recent X segments defined "
25 "by this parameter. This is needed to accommodate latencies in various "
26 "stages of content serving pipeline, so that the segments stay accessible "
27 "as they may still be accessed by the player."
28 "The segments are not removed if the value is zero.");
29ABSL_FLAG(std::string,
30 default_language,
31 "",
32 "For DASH, any audio/text tracks tagged with this language will "
33 "have <Role ... value=\"main\" /> in the manifest; For HLS, the "
34 "first audio/text rendition in a group tagged with this language "
35 "will have 'DEFAULT' attribute set to 'YES'. This allows the "
36 "player to choose the correct default language for the content."
37 "This applies to both audio and text tracks. The default "
38 "language for text tracks can be overriden by "
39 "'--default_text_language'.");
40ABSL_FLAG(std::string,
41 default_text_language,
42 "",
43 "Same as above, but this applies to text tracks only, and "
44 "overrides the default language for text tracks.");
45ABSL_FLAG(bool,
46 force_cl_index,
47 true,
48 "True forces the muxer to order streams in the order given "
49 "on the command-line. False uses the previous unordered behavior.");
50ABSL_FLAG(
51 bool,
52 per_playlist_target_duration,
53 false,
54 "If true, TARGETDURATION will be calculated locally in MediaPlaylist.");
55ABSL_FLAG(
56 std::string,
57 closed_captions,
58 "",
59 "Specifies one or more CEA-608 closed caption channels. Multiple channels "
60 "can be provided in a single flag, separated by semicolons (;). Each "
61 "channel is defined as a comma-separated list of key-value pairs. "
62 "Supported keys: channel(CC1..CC4, SERVICE1..SERVICE63), name, lang, "
63 "default(yes|no), "
64 "autoselect(yes|no). Example: "
65 "--closed_captions "
66 "channel=CC1,name=English,lang=eng;channel=CC2,name=French,lang=fra");