[android-porting] Re: video recorder only can capture 2s ?

2009-02-10 Thread Dave Sparks
You are posting in the android-porting list. You need to be more explicit about your situation. Which hardware platform? Which branch of the Android tree? Do you have a log? On Feb 10, 12:40 am, forest wrote: > when set DEBUG=true in packages/apps/Camera/src/com/android/camera/ > VideoCamera.ja

[android-porting] Re: video recorder only can capture 2s ?

2009-02-12 Thread forest
xscale, ipp the log: V/videocamera( 688): initializeVideo V/videocamera( 688): Releasing media recorder. V/videocamera( 688): SurfaceHolder is null I/VideoPreview( 688): ar 1.666 setting size: 400x240 V/videocamera( 688): stopVideoRecording V/videocamera( 688): initializeVideo V/videocam

[android-porting] Re: video recorder only can capture 2s ?

2009-02-13 Thread Dave Sparks
I see this in the log: I/OpenCore( 684): --leave It happens right after an allocator call. My guess is that your CPU can't keep up with audio and video encode at the same time and the MIO is running out of buffers. You can probably work around this problem by keeping count of buffers in the

[android-porting] Re: video recorder only can capture 2s ?

2009-02-17 Thread forest
the problem maybe occurs in the function bool PVMFOMXVideoEncNode::SendInputBufferToOMXComponent() if( (current_msg_seq_num - iInPacketSeqNum) > 1 ) in the file externl/opencore/nodes/pvomxvideoencnode/src/ pvmf_omx_videoenc_node.cpp, because when force variable iKeepDroppingMsgsUntilMarkerBit =