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. What are the MediaPlayer Class upcoming fixes?

I'm currently trying to plan ahead of time building my code. So in
order to design it properly I need to know the following...

1. Will upcoming release of the SDK have support for an input stream
on the MediaPlayer class?
2. Will http streaming finally be fixed?

Thanks,
Moto
--~--~---------~--~----~------------~-------~--~----~

2. Issue reagrding check out from SVN

i checked out a project from google repositry, svn, and when tried to
run, showing .apk is missing.. also R.java is missing

Any idea, why this porblem occurs..

Nithin




--~--~---------~--~----~------------~-------~--~----~

3. Where, exactly, are Context data files?

4. How to see the documents under Android /frameworks/base/docs?

5. how can I select text from a webpage using webview?

6. Problem setting up SDK

7. Where are the emulator files?