Hello everyone!
I use the dm6467 encode demo to encode the video data and i find the sps and pps only at the begin of the
h264 stream and the player can not display the video if the player restart.i want the h264 codec send the sps and
pps at regular time.I have readed the url
http://e2e.ti.com/support/dsp/davinci_digital_media_processors/f/100/p/7826/31442.aspx and modify the
static IH264VENC_DynamicParams extDynParams = {
{
sizeof(IVIDENC1_DynamicParams), /* size */
720, /* inputHeight */
1280, /* inputWidth */
30000, /* refFrameRate */
30000, /* targetFrameRate */
6000000, /* targetBitRate (override in app) */
30, /* intraFrameInterval */
XDM_DECODE_AU, /* generateHeader */
0, /* captureWidth */
IVIDEO_NA_FRAME, /* forceFrame */
1, /* interFrameInterval */
0 /* mbDataFlag */
},
18, /* QPISlice */
20, /* QPSlice */
51, /* RateCtrlQpMax */
0, /* RateCtrlQpMin */
0, /* NumRowsInSlice */
0, /* LfDisableIdc */
0, /* LFAlphaC0Offset */
0, /* LFBetaOffset */
0, /* ChromaQPOffset */
0, /* SecChromaQPOffset */
};
IVIDEO_NA_FRAME to IVIDEO_IDR_FRAME, the idr frame appears in the h264 stream,but not the sps and pps.
so what should i do to add the sps and pps in h264 stream?
Thank you very much!