Video Capture with sounder Crashed(cupcake 1.5 opencore 2.03)

by Alex » Mon, 17 Aug 2009 21:25:48 GMT


Sponsored Links
 i  everyone

I want to capture videos with sounde, but when I click start button,
the video captrure application crashed, and can not preview, but the
time counter is still run, and if I click button to stop video
capture , the camrecorder can back to preview state.


If I capture audio single ,the mediarecorder can work successfully.
and if I capture video without audio the libopencore_authore.lib and
libopencore_common.lib will shown a poniter error and then crashed.
but If I deleted the statemen:

OSCL_EXPORT_REF
void AndroidCameraInput::setPeer(PvmiMediaTransfer* aPeer)
{
LOGV("setPeer");
if (iPeer || !aPeer) {
if (iPeer) {
LOGE("iPeer already exists");
} else {
LOGE("aPeer is a NULL pointer");
}
// OSCL_LEAVE(OsclErrGeneral); //delete this statement
return;
}

iPeer = aPeer;
}



in android_camera_input.cpp , it can success.




Can someone tell why and how to resolve the error to achieve
capturing video including audio? my error log information is :


V/videocamera( 2245): startVideoRecording
W/AuthorDriverWrapper( 1805): AuthorDriverWrapper::enqueueCommand(int
*max)
W/AuthorDriver( 1805): AuthorDriver::enqueueCommand
W/AuthorDriver( 1805): AuthorDriver::Run
W/AuthorDriver( 1805): AuthorDriver::dequeueCommand()
W/AuthorDriver( 1805): AuthorDriver::handleStart(author_command *ac)

W/audio_input( 1805): Start
W/CameraInput( 1805): ++++++++++AndroidCameraInput::Run()
D/CameraService( 1805): startCameraMode(1)
W/audio_input( 1805): +++++++++DoStart
W/CameraInput( 1805): +++++++postWriteAsync
W/CameraInput( 1805): +++++++ input camera data size =152064
W/CameraInput( 1805): +++++++ RunIfNotReady()
D/ CameraHWInterface( 1805): ----------------------
CameraHWInterface::m_previewThreadFunc
W/audio_input( 1805): create AudioRecord 0x52e48

W/audio_input( 1805): AudioRecord created 0x85618, this 0x52e48
E/ALSALib ( 1805): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidRecord_Off_idle
E/ALSALib ( 1805): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidRecord_Off
E/ALSALib ( 1805): external/alsa-lib/src/pcm/pcm.c:2201:
(snd_pcm_open_noupdate) Unknown PCM AndroidRecord
I/AudioHardwareALSA( 1805): Initialized ALSA CAPTURE device hw:00,0
D/AudioHardwareALSA( 1805): Set CAPTURE PCM format to S16_LE (Signed
16 bit Little Endian)
D/AudioHardwareALSA( 1805): Using 1 channel for CAPTURE.
D/AudioHardwareALSA( 1805): Set CAPTURE sample rate to 8000 HZ
D/AudioHardwareALSA( 1805): Buffer size: 2048
D/AudioHardwareALSA( 1805): Latency: 256000
D/AudioHardwareALSA( 1805): ###In open Input Steam
W/CameraInput( 1805): +++++++postWriteAsync
W/CameraInput( 1805): +++++++ input camera data size =152064
W/CameraInput( 1805): +++++++ RunIfNotReady()
D/ CameraHWInterface( 1805): ----------------------
CameraHWInterface::m_previewThreadFunc
W/CameraInput( 1805): +++++++postWriteAsync
W/CameraInput( 1805): +++++++ input camera data size =152064
W/CameraInput( 1805): +++++++ RunIfNotReady()
D/ CameraHWInterface( 1805): ----------------------
CameraHWInterface::m_previewThreadFunc
W/CameraInput( 1805): +++++++postWriteAsync
W/CameraInput( 1805): +++++++ input camera data size =152064
W/CameraInput( 1805): +++++++ RunIfNotReady()
D/ CameraHWInterface( 1805): ----------------------
CameraHWInterfac



Other Threads

1. Problem with TextView.setText and String lenght

If we use a String of less then 4600 characters to a TextView.setText
it's all right, if we use a String with more character the TextView
result empty.
What could be the problem?

-- 

2. RssFeed Update

HI Folks

           I am currently developing RssFeed app , i have one issue .I
want to implement background service ,but what happen after some times
it throughs Scoket.net exception,this was due to fact wifi goes in
sleep mode and my app can not connect to server,In order to rid of
this i thought of using wake_lock but this may not work  because wifi
can go to sleep mode before i get wake_lock.

Is there way to keep wifi awake or this is the only solution for my
issue.

I want to implement service indefinitely not when my app is active.

any help appreciated

-- 

3. Export logcat from the device

4. creating bindable EditText.

5. How to get a remote logcat on error?

6. Android screen battle, there can be only one winner!

7. Galley of thumbnails from the web running out of memory