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. Same drawable name

Hi,

I have a button and i put a picture in it. I have a list of pictures
and i want to know what is the best practice to adapt a integer to a
drawable name.

By example, i have :
if (element == 0) {
       button.setBackgroundResource(R.drawable.picture_0);
} else if (element== 1) {
       button.setBackgroundResource(R.drawable.picture_1);
} else if (element == 2) {
       button.setBackgroundResource(R.drawable.picture_2);
} else if (element== 3) {
       button.setBackgroundResource(R.drawable.picture_3);
}

and i want to get something like :
button.setBackgroundResource("R.drawable.picture_" + element);

Thanks
Sylvain MOUQUET

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

2. X-No-Archive:

test

test

test

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

3. Best practice with drawable concept

4. Error during OS 1.5 manual update on ADP1

5. PNG Color Issue

6. How to provide appwidget add capability/automatic adding in user screen

7. highlight part of the word in text view