I have a question in 01_video_encode of tegra_multimedia_api,the write_encoder_output_frame function:
stream->write((char *)buffer->planes[0].data, buffer->planes[0].bytesused);
printf(“buffer->planes[0].bytesused %d\n”, buffer->planes[0].bytesused);
printf(“buffer->planes[0].data[0] %d %d %d %d %d\n”, buffer->planes[0].data[0], buffer->planes[0].data[1], buffer->planes[0].data[2], buffer->planes[0].data[3], buffer->planes[0].data[4]);
I print this,output is
“buffer->planes[0].bytesused 3209
buffer->planes[0].data[0] 0 0 0 1 97”
but there is not “0 0 0 1 97"in the written output file,only h264 nalu,for example " 0 0 0 1 65”,“0 0 0 1 67”.
Please tell me the reason when you know the answer.Thank you very much !!!