10 #include "packager/app/retired_flags.h"
14 DEFINE_string(profile,
"",
"This flag is deprecated. Do not use.");
15 DEFINE_bool(single_segment,
true,
"This flag is deprecated. Do not use.");
16 DEFINE_bool(webm_subsample_encryption,
18 "This flag is deprecated. Use vp9_subsample_encryption instead.");
19 DEFINE_double(availability_time_offset,
21 "This flag is deprecated. Use suggested_presentation_delay "
22 "instead which can achieve similar effect.");
23 DEFINE_string(playready_key_id,
25 "This flag is deprecated. Use --enable_raw_key_encryption with "
26 "--generate_playready_pssh to generate PlayReady PSSH.");
27 DEFINE_string(playready_key,
29 "This flag is deprecated. Use --enable_raw_key_encryption with "
30 "--generate_playready_pssh to generate PlayReady PSSH.");
31 DEFINE_bool(mp4_use_decoding_timestamp_in_timeline,
33 "This flag is deprecated. Do not use.");
35 num_subsegments_per_sidx,
37 "This flag is deprecated. Use --generate_sidx_in_media_segments instead.");
38 DEFINE_bool(generate_widevine_pssh,
40 "This flag is deprecated. Use --protection_systems instead.");
41 DEFINE_bool(generate_playready_pssh,
43 "This flag is deprecated. Use --protection_systems instead.");
44 DEFINE_bool(generate_common_pssh,
46 "This flag is deprecated. Use --protection_systems instead.");
47 DEFINE_bool(generate_static_mpd,
49 "This flag is deprecated. Use --generate_static_live_mpd instead.");
55 bool InformRetiredStringFlag(
const char* flagname,
const std::string& value) {
57 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
61 bool InformRetiredDefaultTrueFlag(
const char* flagname,
bool value) {
63 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
67 bool InformRetiredDefaultFalseFlag(
const char* flagname,
bool value) {
69 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
73 bool InformRetiredDefaultDoubleFlag(
const char* flagname,
double value) {
75 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
79 bool InformRetiredDefaultInt32Flag(
const char* flagname, int32_t value) {
81 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
85 bool InformRetiredPsshGenerationFlag(
const char* flagname,
bool value) {
88 "WARNING: %s is deprecated and ignored. Please switch to "
89 "--protection_systems.\n",
95 bool InformRetiredGenerateStaticMpdFlag(
const char* flagname,
bool value) {
98 "WARNING: %s is deprecated and ignored. Please switch to "
99 "--generate_static_live_mpd.\n",
105 DEFINE_validator(profile, &InformRetiredStringFlag);
106 DEFINE_validator(single_segment, &InformRetiredDefaultTrueFlag);
107 DEFINE_validator(webm_subsample_encryption, &InformRetiredDefaultTrueFlag);
108 DEFINE_validator(availability_time_offset, &InformRetiredDefaultDoubleFlag);
109 DEFINE_validator(playready_key_id, &InformRetiredStringFlag);
110 DEFINE_validator(playready_key, &InformRetiredStringFlag);
111 DEFINE_validator(mp4_use_decoding_timestamp_in_timeline,
112 &InformRetiredDefaultFalseFlag);
113 DEFINE_validator(num_subsegments_per_sidx, &InformRetiredDefaultInt32Flag);
114 DEFINE_validator(generate_widevine_pssh, &InformRetiredPsshGenerationFlag);
115 DEFINE_validator(generate_playready_pssh, &InformRetiredPsshGenerationFlag);
116 DEFINE_validator(generate_common_pssh, &InformRetiredPsshGenerationFlag);
117 DEFINE_validator(generate_static_mpd, &InformRetiredGenerateStaticMpdFlag);