Regarding VPU Decoder

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Regarding VPU Decoder

3,253件の閲覧回数
admin
Specialist II

Hi ,

                I am trying to integrate the ffmpeg with VPU codec . I am able to play some H264 files now
 When I try to play *.mp4 file I am getting the Error like below ..

vpu_DecGetOutputInfo failed. Error code is -1 .

Problem is once I got this error I am not able to play any files until I restart the board .

Could you suggest the exact reason for the cause. I am using the same method of  bluewind.it..

Expecting an early reply..

Thanks
Nimesh Kanoth


0 件の賞賛
返信
2 返答(返信)

1,093件の閲覧回数
jetic
Contributor I
Not sure which platform Linux/WinCE and BSP(i.MX27?) you are using.
Normally it should return like that.
Please check:
1. At initInfo, is the video bitstream header correctly parsed by VPU?
2. Which mode file or stream mode are using by you? For file mode, it should always input
    one frame data, in stream mode, it should input at least one frame date.
3. You can try with unit-test code released with ltib package first if using Linux BSP.

Hope will do some help to you

B.R
Jetic
0 件の賞賛
返信

1,093件の閲覧回数
admin
Specialist II
Hi Jectic ,

Thanks for your immediate reply..

I am trying this on the iMX27 ADS - Linux . We need to play both audio and video. The example given by the freescale doesn't contain the audio support . And the Gstreamer is too heavy for our requirement . So we are trying to use the VPU and ffmpeg with emma support to play movie files.

Now I am trying with file play only ... Currently I am able to some H264 files... but when I try to play MP4 I am getting the vpu_DecGetOutputInfo failed . when I dig in the vpu lib code  failure is exactly from

if ((VpuReadReg(RET_DEC_PIC_SUCCESS) & 0x01) == 0) {
                printf("VpuReadReg--->%d\n",ret);
                pendingInst = 0;
                return RETCODE_FAILURE;
}

I attached the files I using with ffmpeg ...
1) h263_dec.c
2) vpu_codec.c

There is no changes in the VPU library .. I am using the latest one ...

Thanks
Nimesh Kanoth





0 件の賞賛
返信