Where can I find more information setting the H.264 encoder for the DM365 to output the NALU stream format? I don't see it referenced in sprueu9. I'd like to know specifically what's the method of demarcating NAL Units?
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.
All the TI H.264 encoders produce discrete NAL packets, delimited by the 4 byte identifier 0x00000001.
JerryJohns said:All the TI H.264 encoders produce discrete NAL packets, delimited by the 4 byte identifier 0x00000001.
So referring to the code fragment below from the encode demo, when Venc1_process returns, hDstBuf will contain one NALU or does it contain one or more NALUs?
/* Decode the video buffer */
if (Venc1_process(hVe1, hCapBuf, hDstBuf) < 0) {
ERR("Failed to encode video buffer\n");
cleanup(THREAD_FAILURE);
}
/* Send encoded buffer to writer thread for filesystem output */
if (Fifo_put(envp->hWriterInFifo, hDstBuf) < 0) {
ERR("Failed to send buffer to display thread\n");
cleanup(THREAD_FAILURE);
I believe that an entire frame is one NALU. Also at the beginning of the stream when the SPS/PPS is created you may get multiple NALUs in one call to the encoder. I'm not sure about that because my software works either way. But now that think about it I should check. I'll report back when I get the results.