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