Thanks Deva. Now I solve the h264 decode issue. But have others matter. So far the stage-fright with *.flv already have play FLV ( audio / video ). But the seek faction is not right. If I operated seek action, the stage-fright caused crash. So I play *.mp4 in SDCARD, the same issue caused. So I think that the stage-fright could not support seek function as well. Okay or not?
I am work on Freescale imx53-smd board on android 2.3. The below is error position when seek with *.mp4 in SDCARD. bool OMXCodec::flushPortAsync(OMX_U32 portIndex) { CHECK(mState == EXECUTING || mState == RECONFIGURING || mState == EXECUTING_TO_IDLE); CODEC_LOGV("flushPortAsync(%ld): we own %d out of %d buffers already.", portIndex, countBuffersWeOwn(mPortBuffers[portIndex]), mPortBuffers[portIndex].size()); CHECK_EQ(mPortStatus[portIndex], ENABLED); mPortStatus[portIndex] = SHUTTING_DOWN; if ((mQuirks & kRequiresFlushCompleteEmulation) && countBuffersWeOwn(mPortBuffers[portIndex]) == mPortBuffers[portIndex].size()) { // No flush is necessary and this component fails to send a // flush-complete event in this case. return false; } status_t err = mOMX->sendCommand(mNode, OMX_CommandFlush, portIndex); CHECK_EQ(err, OK); /////////////////////////////////////////////////////////////////// here is crash position return true; } Mark.Liu Uniview-tech.com -----邮件原件----- 发件人: android-porting@googlegroups.com [mailto:android-porting@googlegroups.com] 代表 Deva R (TI) 发送时间: 2011年11月8日 17:25 收件人: android-porting 主题: [android-porting] Re: Porting FLV in stagefright Can you share log and error details? probably codec is not comfortable with the bit stream pattern parser returned.. On Nov 2, 11:08 pm, Mark Liu <mark.liu.ch...@gmail.com> wrote: > Hi Guys: > > I am working on porting flv in stagefright. audio is aac, video is > h264 codec. Now the streaming is okay, aac decode is okay. But h264 es > is not playback. OMXCodec cause error. I put avcc data to omx from > flv, extradata. and add start-code for each es. > > Can you tell me what is wrong for the video playback? > > Mark. -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting