This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Allowing h.264 stream random access in the DM6467



For allowing H.264 stream random access the h.264 decoder needs and IDR frame to synchronize.

From tests I conducted, It seems that TI's h.264 BP encoder outputs 1 IDR frame at start of encoding process, and no IDR are output later. Only I frames (according to intra-frame interval) and P-frames are output.

Even If I try to force an IDR frame, this does not work and no IDR frame is output from the encoder.

I tried to use a workaround, where I replace a random I-frame in the stream by the first IDR frame output from the encoder, and feed it to the decoder for decoding. This

workaround does not work and the decoder cannot decode it correctly because although there is an IDR which resets the decoder, later P-frames have references to P-frames which were before this IDR frame.

Can you help with this issue?

  • Ignore this issue. It seems that force IDR frame works properly. My mistake.

  • Hello, Nir,

     

    I wonder how did you manage to make force IDR frame option work? I've got the same need for IDR frames for resynchronization for H.264 encoder on DM365 and I also tried to make use of forceFrame in dynamic params structure, but everything I get from the XDM_SETPARAMS call is the error code 41794 ("Unsupported input") and no IDR output from the encode call. What was your mistake you mention above? Perhaps, I'm doing the same mistake...