The following advisory enumeration values can be use:
typedef enum {
ADVISORY_NONE
= 0,
ADVISORY_MPA_G,
ADVISORY_MPA_PG,
ADVISORY_MPA_PG_13,
ADVISORY_MPA_R,
ADVISORY_MPA_NC_17,
ADVISORY_TV_Y,
ADVISORY_TV_Y7,
ADVISORY_TV_G,
ADVISORY_TV_PGY,
ADVISORY_TV_14,
ADVISORY_TV_MA
} ptool_XDS_Advisory_Type;
During Encoding
Set your desired enumeration option:
int XdsAdvisory;
of the
Line21Params_struc
Running ExpEncodeNextFrame for the length of the video will cause the
selected advisory beacons to be added to the elementary user data every
3 seconds.
To an existing stream
Set the parameter:
int XdsAdvisory;
in the ExpDecFix_str with your enumerated video advisory.
Enable the
bool DecodeFix
bit and set your output file name in the
char DecodeFixName[400];
in the ExpDecFix_str.
Running the ExpDecodeNextFrame for the length of your
source video will cause your ExpDecFix stream to have your selected Advisory
flags set.
Specification
MPEGRepairHD and ExpertHD can add content advisory flags as specified
in the CEA-608 closed captioning specification. The flags are
in the extended data and inserted in user_data of elementary video
streams. The CEA-608 data is wrapped in an SCTE-21 layer and an ATSC
layer. The flags will be inserted every 3 seconds of video data. One
and only one of the following advisory options can be selected.
Motion Picture Association options:
"MPA: G",
"MPA: PG",
"MPA: PG-13",
"MPA: R",
"MPA: NC-17",
"MPA: X",
Television options:
"TV-YG",
"TV-Y7",
"TV-G",
"TV-PG",
"TV-14",
"TV-MA"