Dear Jack,
Thanks for your reply.
I saw this two hours ago. I confirm I meet the same problem as you.
And I tried to convert RGB565 to RGB24, but failed.
Maybe it's related to my algorithm. What data type do you send to
encoder? RGB12, RGB24 or YUV420? Different types means different
difficulties, I think.
I have to go home now and I will go on studying this part tomorrow.
Another question, do you call mRecordingCallback in previewThread() in
Camerahal.cpp?
Thanks very much for your help.


On 7月20日, 下午12时25分, Jack <[email protected]> wrote:
> Dear xin xing:
> I am sorry that I can not use MSN or reply to you by email because of
> my working place's rule.
> So may be we could talk just in this way--on the group. In the file
> Pvm4vencoder.cpp, you may find
> the format that cupcake_r1 supports encoding now.Thereare only 3
> types including YUV420, rgb12,and rgb24.
> So, convert your video frame format into these 3 types before you send
> them to the encoder or just add your own function to the framework may
> lead you forward.
> I recommend the former one. Wish it can help.
>
> On 7月18日, 下午2时16分, Jack <[email protected]> wrote:
>
>
>
> > Thank you Ravi, I now can record the video and play it in the correct
> > way.
> > Thank you very much for your help!
>
> > On 7月10日, 下午9时58分, RaviY <[email protected]> wrote:
>
> > > pvmi/pvmf/include/pvmf_return_codes.h
>
> > > On Jul 10, 3:21 am, Jack <[email protected]> wrote:
>
> > > > Hi,Ravi
> > > > I tried to fill the functions by myself but still can't fix it. Now I
> > > > can enter the preview mode of video recorder, but the function got
> > > > crushed every time I press the start key.
> > > > And I got the log below:
>
> > > > ......
> > > > D/CameraService(   55): startCameraMode(1)
> > > > D/CameraHardware(   55): CameraHardware startRecording:
> > > > D/CameraHardware(   55): vendor/marvell/marvell_310/libcamera/
> > > > CameraHardware.cpp startRecording 761
> > > > 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=7,  aStatus=0x1
> > > > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted
> > > > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted cmdType:14
> > > > E/PVAE    (   55): PVAuthorEngineNodeUtility::GetCommandQueueSize:
> > > > size=0
> > > > E/PVAE    (   55): PVAuthorEngine::SetPVAEState: aState=3
> > > > E/PVAE    (   55): PVAuthorEngine::CompleteEngineCommand: aStatus=0x1,
> > > > aResponseData=0x0, aResponseDataSize=0
> > > > V/AuthorDriver(   55): Command (14) completed with status(1)
> > > > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted: Exit
> > > > E/PVAE    (   55): PVMFVideoEncPort::HandlePortActivity: type=5
> > > > E/PVAE    (   55): PVMFVideoEncPort::Run
> > > > E/PVAE    (   55): PVMFVideoEncNode::ProcessIncomingMsg: aPort=0x1acc8
> > > > E/PVAE    (   55): PVMFVideoEncPort::HandlePortActivity: type=4
> > > > E/PVAE    (   55): PVMFVideoEncPort::Run
> > > > E/PVAE    (   55): PVMFVideoEncPort::HandlePortActivity: type=5
> > > > E/PVAE    (   55): PVMFVideoEncPort::Run
> > > > E/PVAE    (   55): PVMFVideoEncNode::ProcessIncomingMsg: aPort=0x1acc8
> > > > E/PVAE    (   55): PVMFVideoEncPort::HandlePortActivity: type=4
> > > > E/PVAE    (   55): PVMFVideoEncPort::Run
> > > > E/PVAE    (   55): PVAuthorEngine::HandleNodeErrorEvent
> > > > E/PVAE    (   55): PVAuthorEngine::SetPVAEState: aState=5
> > > > E/AuthorDriver(   55): HandleErrorEvent(-16)
> > > > V/MediaRecorder(  216): message received msg=1, ext1=1, ext2=-16
> > > > V/MediaRecorder(  216): callback application
> > > > V/MediaRecorder(  216): back from callback
> > > > ........
>
> > > > I don't know what's the meaning of  HandleErrorEvent(-16), would you
> > > > please help me to decipher it ?
> > > > Thank you very much!
>
> > > > On 7月8日, 下午5时48分, RaviY <[email protected]> wrote:
>
> > > > > What is the frame size that you are trying to encode? What is the
> > > > > frame rate?
>
> > > > > -Ravi
>
> > > > > On Jul 8, 4:27 am, Jack <[email protected]> wrote:
>
> > > > > > Thank you RaviY! I fix the problem and get into the preview mode 
> > > > > > now!
> > > > > > Thank you very much for your help! But now I get an error when I 
> > > > > > press
> > > > > > start.
> > > > > > Would you please help me to fix it?
>
> > > > > > here is the log:
>
> > > > > > E/PVAE    (   55): PVMFVideoEncNode::Start
> > > > > > E/PVAE    (   55): PVAuthorEngineNodeUtility::Run: Exit
> > > > > > E/PVAE    (   55): PVMFVideoEncNode::Run
> > > > > > E/PVAE    (   55): PVMFVideoEncNode::DoStart
> > > > > > E/PVAE    (   55): PVMFVideoEncNode::DoPrepare:
> > > > > > CommonVideoEncoder::Initialize failed
> > > > > > E/PVAE    (   55): PVMFVideoEncNode::CommandComplete: Id=10006,
> > > > > > Type=6, Status=-1, Context=0x0, Data0x0
> > > > > > E/PVAE    (   55): PVAuthorEngineNodeUtility::NodeCommandCompleted
> > > > > > E/PVAE    (   55): PVAuthorEngineNodeUtility::NodeCommandCompleted:
> > > > > > Command failed - context=0x0, status=0xffffffff
> > > > > > E/PVAE    (   55): PVAuthorEngineNodeUtility::CompleteUtilityCmd:
> > > > > > aCmd.iType=7,  aStatus=0xffffffff
> > > > > > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted
> > > > > > E/PVAE    (   55): PVAuthorEngine::NodeUtilCommandCompleted 
> > > > > > cmdType:14
> > > > > > 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:14
> > > > > > 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 (14) completed with status(-1)
> > > > > > E/MediaRecorder(  285): start failed: -2147483648
>
> > > > > > On 7月7日, 下午9时12分, RaviY <[email protected]> wrote:
>
> > > > > > > All static libraries that you are adding should go inside
> > > > > > > LOCAL_WHOLE_STATIC_LIBRARIES of libopencoreauthor.
>
> > > > > > > On Jul 7, 7:08 am, Jack <[email protected]> wrote:
>
> > > > > > > > Yes,  here's my android.mk in
> > > > > > > > external\opencore\nodes\pvvideoencnode\
> > > > > > > > ......
> > > > > > > > LOCAL_MODULE := libpvvideoencnode
>
> > > > > > > > LOCAL_CFLAGS :=   $(PV_CFLAGS)
>
> > > > > > > > LOCAL_C_INCLUDES := \
> > > > > > > >         $(PV_TOP)//nodes/pvvideoencnode/include \
> > > > > > > >         $(PV_TOP)//nodes/pvvideoencnode/src \
> > > > > > > >         $(PV_INCLUDES) \
> > > > > > > >         $(PV_TOP)//codecs_v2/video/m4v_h263/enc/include
>
> > > > > > > > LOCAL_STATIC_LIBRARIES +=libpvm4vencoder
>
> > > > > > > > # This lib defines the class CPVM4VEncoder
>
> > > > > > > > ......
>
> > > > > > > > On 7月7日, 下午7时49分, RaviY <[email protected]> wrote:
>
> > > > > > > > > Did you check if the library that defines the function 
> > > > > > > > > CPVM4VEncoder
> > > > > > > > > is part of the shared library as well?
>
> > > > > > > > > On Jul 7, 6:47 am, RaviY <[email protected]> wrote:
>
> > > > > > > > > > -----Original Message-----
> > > > > > > > > > From: [email protected] 
> > > > > > > > > > [mailto:[email protected]]
> > > > > > > > > > Sent: Tue 7/7/2009 5:43 AM
> > > > > > > > > > To: Ravi K. Yenduri
> > > > > > > > > > Subject: Re: Prepare failed in MediaRecorder
>
> > > > > > > > > > Dear RaviY,
> > > > > > > > > >         Thanks very much for your selfless help! I tried to 
> > > > > > > > > > modify
> > > > > > > > > > the
> > > > > > > > > > Android.mk you mentioned in the last letter you sent, but 
> > > > > > > > > > these's
> > > > > > > > > > still
> > > > > > > > > > somthing wrong happened and I can not even pass the 
> > > > > > > > > > building system.
> > > > > > > > > > It is
> > > > > > > > > > said that the function named CPVM4VEncoder::New(int) called 
> > > > > > > > > > by Dostart
> > > > > > > > > > ()
> > > > > > > > > > in pvmf_videoenc_node.cpp is undefined. In order to fix the 
> > > > > > > > > > problem, I
> > > > > > > > > > had
> > > > > > > > > > to trouble you again. I will send the files that I changed 
> > > > > > > > > > as an
> > > > > > > > > > attachment in this letter. Would you please to check the 
> > > > > > > > > > mistake out
> > > > > > > > > > and
> > > > > > > > > > tell me how to fix it? You can compare them with the 
> > > > > > > > > > original version
> > > > > > > > > > from
> > > > > > > > > > cupcake_r1 and find the differences.
> > > > > > > > > >         Thank you! And best regards for you!
>
> > > > > > > > > > On Jul 6, 7:56 am, RaviY <[email protected]> wrote:
> > > > > > > > > > > You may start looking 
> > > > > > > > > > > here.http://android.git.kernel.org/?p=platform/external/opencore.git;a=blo...
>
> > > > > > > > > > > On Jul 6, 2:58 am, Jack <[email protected]> wrote:
>
> > > > > > > > > > > > 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 <[email protected]> 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 
> > > > > > > > > > > > > <[email protected]> wrote:
>
> ...
>
> 阅读更多 »- 隐藏被引用文字 -
>
> - 显示引用的文字 -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to