This video-specific structure sends out-of-band DCI for MPEG-4 and H.264 endpoints.
Use msp_ENDPOINT_RTPFDX_OUT_OF_BAND_DCI with the MSP_CMD_RTPFDX_OUT_OF_BAND_DCI command, which is described in Inserting out-of-band DCI into the video bit stream.
typedef struct
{
DWORD len; // Length of DCI
U8 mode; // 0: Mode for how to use DCI
U8 data[MAX_DCI_BUF_SIZE]; // Buffer for saving the out_of_band_dci data.
} msp_ENDPOINT_RTPFDX_OUT_OF_BAND_DCI;
|
Field name |
Default |
Description |
|---|---|---|
|
len |
N/A |
Length of the out-of-band DCI, in bytes. Range is 0 to 255 bytes. |
|
mode |
0 |
Indicates what in-band DCI to replace with out-of-band DCI. Valid values are: 0 - No change. 1 - Uses out-of-band DCI to replace only the initial DCI at the beginning of the bit stream. 2 - Replaces all in-band DCI with the one received out-of-band. 3 - Same as value 2, but additionally inserts one out-of-band DCI before every I-frame. |
|
data |
N/A |
Out-of-band DCI to be sent to the RTP endpoint. For MPEG-4, the data stream is raw VO/VOL data. For H.264, the data stream is sets of SPS/PPS NAL units separated by start codes per the byte stream format of Annex B of H.264. |