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