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.

DM6467: H.264 : How to put encoder and decoder together?

Hi,

I want to test the encoder and decoder on DM6467 platform.
My encoder version is "H.264 1080p@30 BP Encoder (v01.10.02) on DM6467"
My decoder version is "H.264 High Profile Decoder (v01.10.01) on DM6467"

My encoder function can run well by itself. The pseudo code is in below

>> H264FHDVENC_RMAN_setup();
>> H264VDEC_create(...);
>> H264FHDVENC_create(...);
>> for( i = 0 ; i < 300000; i++ )
>> {
>> readOnePicture();
>> H264FHDVENC_encode(...);
>> }
>> H264FHDVENC_delete();
>> H264VDEC_delete();

My decoder function can also run well by itself. The pseudo code is in below

>> H264FHDVENC_RMAN_setup();
>> H264VDEC_create(...);
>> H264FHDVENC_create(...);
>> for( i = 0 ; i < 300000; i++ )
>> {
>> readOneFrameStream();
>> H264VDEC_decode(...);
>> }
>> H264FHDVENC_delete();
>> H264VDEC_delete();

but if I run the encoder and decoder at the same time,
The H264FHDVENC_encode() while be hanged in H264FHDVENC_TI_DMA_Wait() at the 2nd loop(when i==1).

>> H264FHDVENC_RMAN_setup();
>> H264VDEC_create(...);
>> H264FHDVENC_create(...);
>> for( i = 0 ; i < 300000; i++ )
>> {
>> readOnePicture();
>> H264FHDVENC_encode(...); // when i==0, it's ok. when i==1, it will be hanged in H264FHDVENC_TI_DMA_Wait()
>> readOneFrameStream();
>> H264VDEC_decode(...);
>> }
>> H264FHDVENC_delete();
>> H264VDEC_delete();

I am sure that the first frame was encoded and decoded successfully.
The program will stop while to encode the second frame.
What may I missed if I want to put encoder and decoder together?
Can you give some advice on how to solve this problem?

x 出现错误。请重试或与管理员联系。