Dear,RaviY,
I am glad to get your reply so soon. I tried to log
pvmf_videoenc_node.cpp and pvmf_videoenc_port.cpp, but it
seems that the two files are not included in the building system. I
changed these two files and rebuilt the system.img,
but still get the same log as past. I just get in touch with android
less than two months, so I don't know how it is going on and what to
do to fix this problem.
Thanks again for your help!

On 7月4日, 下午9时13分, RaviY <yend...@pv.com> wrote:
> Connect is failing. It probably is because of mismatched parameters.
> Get the logs of pvmf_videoenc_node.cpp and pvmf_videoenc_port.cpp.
> Also, try to attach the log file. It is easier to download and read.
>
> On Jul 3, 11:23 pm, Jack Little <zhang.sheng...@zte.com.cn> wrote:
>
>
>
> > Dear RaviY,
> > Thank you very much for your help!
> > I logged the file nodes/pvomxvideoencnode/src/
> > pvmf_omx_videoenc_node.cpp, and got the following result:
>
> > E/PVAE    (   55): PVMFVIdeoEncNode::DoPrepare
> > E/PVAE    (   55): PVMFOMXVideoEncNode::DoPrepare: Initializing OMX
> > component and encoder for role video_encoder.h263
> > E/PVAE    (   55): PVMFOMXVideoEncNode::DoPrepare(): There are 0
> > components of role video_encoder.h263
> > E/PVAE    (   55): PVMFOMXVideoEncNode::DoPrepare(): No component can
> > handle role video_encoder.h263 !
> > E/PVAE    (   55): PVMFOMXVideoEncNode::CommandComplete: Id=10005,
> > Type=5, Status=-17, Context=0x0, Data=0x0
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::NodeCommandCompleted
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::NodeCommandCompleted:
> > Command failed - context=0x0, status=0xffffffef
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::CompleteUtilityCmd:
> > aCmd.iType=6,  aStatus=0xffffffef
>
> > So, is that means I had to use a software endocer until an updated
> > version for cupcake released or the hardware suppliers offer a
> > hardware encoder that cupcake supports?
>
> > And I have tried to replace the PVMFOMXVideoEncNode uuid and functions
> > with the corresponding ones from PVMFVideoEncNode, but now I got some
> > error in the
> > initialize process. The application returned some error even before
> > doing prepare().
>
> > Here's the log I got :
> > V/MediaRecorder(  277): setVideoEncoder(1)
> > V/PVMediaRecorder(   55): setVideoEncoder(1)
> > E/PVAE    (   55): PVAuthorEngine::AddMediaTrack:
> > &aDataSource=0x19224, aComposer=0x19800, aConfigInterface=0x0,
> > aContextData=0x19f70
> > E/PVAE    (   55): PVAuthorEngine::Run: Enter
> > E/PVAE    (   55): PVAuthorEngine::DoAddMediaTrack
> > E/PVAE    (   55): PVAuthorEngine::IsCompressedFormatDataSource
> > E/PVAE    (   55): PVAuthorEngine::DoAddMediaTrack:
> > compressedDataSrc=0
> > E/PVAE    (   55): PVAuthorEngine::QueryNodeConfig: Configuration
> > interface available.
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::QueryInterface:
> > &aNodeContainer=0x40508c34, &aUuid=0x40508cbc, aContext=0x0
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::AddCmdToQueue:
> > aCmd.iType=4
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Init: aNode=0x1a638,
> > aContext=0x0
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::AddCmdToQueue:
> > aCmd.iType=5
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Connect:
> > &aMasterNode=0x40508c74, aTag1=0, &aSlaveNode=0x40508c70, aTag2=1
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::AddCmdToQueue:
> > aCmd.iType=1
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Connect:
> > &aMasterNode=0x40508c74, aTag1=1, &aSlaveNode=0x40508c70, aTag2=0
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::AddCmdToQueue:
> > aCmd.iType=1
> > E/PVAE    (   55): PVAuthorEngine::Run: Exit
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Run: Enter
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Run: cmd.iType=4
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::DoQueryInterface
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Run: Exit
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::NodeCommandCompleted
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::CompleteQueryInterface
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::CompleteUtilityCmd:
> > aCmd.iType=4,  aStatus=0x1
> > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted
> > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted cmdType:9
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::GetCommandQueueSize:
> > size=3
> > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted: Exit
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Run: Enter
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Run: cmd.iType=5
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::DoInit
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Run: Exit
> > E/PVAE    (   55): PVAuthorEngine::HandleNodeInformationalEvent
> > E/PVAE    (   55): PVAuthorEngine::HandleNodeInformationalEvent sends
> > unknown eventType:24
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::NodeCommandCompleted
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::CompleteStateTransition
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::CompleteStateTransition:
> > return PVMFSuccess
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::CompleteUtilityCmd:
> > aCmd.iType=5,  aStatus=0x1
> > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted
> > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted cmdType:9
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::GetCommandQueueSize:
> > size=2
> > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted: Exit
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Run: Enter
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Run: cmd.iType=1
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::DoConnect
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::Run: Exit
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::NodeCommandCompleted
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::CompleteConnect
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::NodeCommandCompleted
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::CompleteConnect
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::CompleteUtilityCmd:
> > aCmd.iType=1,  aStatus=0xffffffff
> > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted
> > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted cmdType:9
> > E/PVAE    (   55): PVAuthorEngine::SetPVAEState: aState=5
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::GetCommandQueueSize:
> > size=1
> > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted
> > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted cmdType:9
> > E/PVAE    (   55): PVAuthorEngine::SetPVAEState: aState=5
> > E/PVAE    (   55): PVAuthorEngineNodeUtility::GetCommandQueueSize:
> > size=0
> > E/PVAE    (   55): PVAuthorEngine::CompleteEngineCommand:
> > aStatus=0xffffffff, aResponseData=0x0, aResponseDataSize=0
> > V/AuthorDriver(   55): Command (6) completed with status(-1)
>
> > Could you tell me what's the mistake I made and how to fix it? The
> > more detailed, the better!
> > Thanks again for your help and best regard!- 隐藏被引用文字 -
>
> - 显示引用的文字 -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to