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.");
52 bool InformRetiredStringFlag(
const char* flagname,
const std::string& value) {
54 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
58 bool InformRetiredDefaultTrueFlag(
const char* flagname,
bool value) {
60 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
64 bool InformRetiredDefaultFalseFlag(
const char* flagname,
bool value) {
66 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
70 bool InformRetiredDefaultDoubleFlag(
const char* flagname,
double value) {
72 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
76 bool InformRetiredDefaultInt32Flag(
const char* flagname, int32_t value) {
78 fprintf(stderr,
"WARNING: %s is deprecated and ignored.\n", flagname);
82 bool InformRetiredPsshGenerationFlag(
const char* flagname,
bool value) {
85 "WARNING: %s is deprecated and ignored. Please switch to " 86 "--protection_systems.\n",
92 DEFINE_validator(profile, &InformRetiredStringFlag);
93 DEFINE_validator(single_segment, &InformRetiredDefaultTrueFlag);
94 DEFINE_validator(webm_subsample_encryption, &InformRetiredDefaultTrueFlag);
95 DEFINE_validator(availability_time_offset, &InformRetiredDefaultDoubleFlag);
96 DEFINE_validator(playready_key_id, &InformRetiredStringFlag);
97 DEFINE_validator(playready_key, &InformRetiredStringFlag);
98 DEFINE_validator(mp4_use_decoding_timestamp_in_timeline,
99 &InformRetiredDefaultFalseFlag);
100 DEFINE_validator(num_subsegments_per_sidx, &InformRetiredDefaultInt32Flag);
101 DEFINE_validator(generate_widevine_pssh, &InformRetiredPsshGenerationFlag);
102 DEFINE_validator(generate_playready_pssh, &InformRetiredPsshGenerationFlag);
103 DEFINE_validator(generate_common_pssh, &InformRetiredPsshGenerationFlag);