I am experimenting with a new app to do Time Lapse Video Recording for
API level 11 (Android 3.0 and newer).
I am following the API Guide for Camera (to do time lapse recording),
here:
http://developer.android.com/guide/topics/media/camera.html#time-lapse-video

I am using the Profiles of the CamcorderProfile class, both for normal
and time lapse recording.

Normal video recording works fine.

But when I try to do time lapse recording - just by adding a few lines
of code - exactly as described in the API Guide - I start having
problems.

The time lapse recording works OFTEN - but not always. Sometimes it
fails when I stop the recording. Then the MediaRecorder seems to be
locked (in some way) at the currently used profile, e.g.
CamcorderProfile.QUALITY_HIGH. Afterwards the recorder will not start
again using that particular profile (neither using normal nor time
lapse recording), but it will start using other profiles, e.g.
CamcorderProfile.QUALITY_LOW. A device power cycle is required to be
able to record again at these "locked" profiles.

When this happens, the native/built-in camera app of the device can be
used to take pictures, but NOT to record video.

I am not showing any code here, as it is almost identical to that of
the API Guide referred to.

I have googled a lot to see if this issue has been discussed
elsewhere, but it seems that very litte has been written about time
lapse recording yet.

This is part of the log I get when the time lapse recording fails when
the recording stops:

09-20 09:28:22.189: W/IMediaDeathNotifier(4719): media server died
09-20 09:28:22.189: E/MediaPlayer(4719): error (100, 0)
09-20 09:28:22.189: W/AudioSystem(5360): AudioFlinger server died!
09-20 09:28:22.189: W/IMediaDeathNotifier(5360): media server died
09-20 09:28:22.189: I/ServiceManager(132): service
'media.audio_flinger' died
09-20 09:28:22.189: I/ServiceManager(132): service 'media.player' died
09-20 09:28:22.189: I/ServiceManager(132): service 'media.camera' died
09-20 09:28:22.189: I/ServiceManager(132): service
'media.cameraextension' died
09-20 09:28:22.189: I/ServiceManager(132): service
'media.audio_policy' died
09-20 09:28:22.189: W/IMediaDeathNotifier(4933): media server died
09-20 09:28:22.189: W/Camera(4933): Camera server died!
09-20 09:28:22.189: I/BootReceiver(309): Copying /data/tombstones/
tombstone_01 to DropBox (SYSTEM_TOMBSTONE)
09-20 09:28:22.199: W/MediaMetadataRetriever(3401):
MediaMetadataRetriever server died!
09-20 09:28:22.199: W/Camera(4933): ICamera died
09-20 09:28:22.199: W/AudioEffect(309): IEffect died
09-20 09:28:22.199: E/MediaPlayer(4719): Error (100,0)
09-20 09:28:22.199: D/kernel(146): [19950.840118] binder: release
5071:5071 transaction 566682 in, still active
09-20 09:28:22.199: D/kernel(146): [19950.840148] binder: send failed
reply for transaction 566682 to 4933:5926
09-20 09:28:22.199: D/kernel(146): [19950.840423] binder: 4933:5926
transaction failed 29189, size 60-0
09-20 09:28:22.199: E/Camera(4933): Error 100
09-20 09:28:22.199: W/AudioSystem(309): AudioFlinger server died!
09-20 09:28:22.199: E/AudioEffectService(309): binderDied :
AudioFlinger is dead.
09-20 09:28:22.199: W/AudioEffects-JNI(309): EVENT_ERROR
09-20 09:28:22.199: W/AudioSystem(309): AudioPolicyService server
died!
09-20 09:28:22.209: E/kernel(146): [19950.843841]
[audpp.c:audpp_disable] Didn't receive CFG_MSG DISABLE message from
ADSP
09-20 09:28:22.209: D/kernel(146): [19950.843872]
[audpp.c:audpp_dsp_event] DISABLE
09-20 09:28:22.209: D/kernel(146): [19950.843872]
[adsp.c:msm_adsp_put] closing module AUDPPTASK

I shall appreciate any suggestions as to solve this issue.

Terry

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" 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-developers?hl=en

Reply via email to