TI中文支持网
TI专业的中文技术问题搜集分享网站

DM6467 H.264 Encoder Problem

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?

Ternence_Hsu:

Hi rui song;

     Do you have any other related print information?

Ternence_Hsu:

Did you tried to put encoding and decoding in 2 separate threads to debug it?

赞(0)
未经允许不得转载:TI中文支持网 » DM6467 H.264 Encoder Problem
分享到: 更多 (0)