Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
LeeDroid
Old
#1  
LeeDroid's Avatar
Recognized Developer - OP
Thanks Meter 11427
Posts: 12,450
Join Date: Jan 2007
Location: Darlington

 
DONATE TO ME
Question Camcorder in Froyo (Logcat).. any ideas?

Hi all, any devs out there fancy a look into the issues with the camcorder in current froyo builds?

I have had a go at modding media_profiles.xml as suggested by a previous user but no such luck.

Below is the logcat produced whenn trying to start video capture, it seems the initial issue is with audio, although it has been suggested that the issue may be with the kernal others have said this may me user space related.

Quote:
D/dalvikvm( 84): GC_EXPLICIT freed 3536 objects / 152008 bytes in 87ms
D/dalvikvm( 311): GC_FOR_MALLOC freed 10291 objects / 522040 bytes in 53ms
I/ActivityManager( 84): Starting activity: Intent { act=android.media.action.V
IDEO_CAMERA flg=0x6000000 cmp=com.google.android.camera/com.android.camera.Video
Camera }
V/camera ( 733): stopPreview
D/dalvikvm( 84): GC_EXPLICIT freed 3684 objects / 168768 bytes in 101ms
V/videocamera( 733): startPreview
D/Camera ( 733): app passed NULL surface
D/dalvikvm( 311): GC_FOR_MALLOC freed 10317 objects / 523472 bytes in 91ms
V/GLRootView( 733): onSurfaceChanged: 673x445, gl10: com.google.android.gles_jn
i.GLImpl@44ae11c0
V/GLRootView( 733): layout content pane 673x445
I/ActivityManager( 84): Displayed activity com.google.android.camera/com.andro
id.camera.VideoCamera: 611 ms (total 611 ms)
V/videocamera( 733): initializeRecorder
E/audio_input( 60): unsupported parameter: x-pvmf/media-input-node/cap-config-
interface;valtype=key_specific_value
E/audio_input( 60): VerifyAndSetParameter failed
E/CameraInput( 60): Unsupported parameter(x-pvmf/media-input-node/cap-config-i
nterface;valtype=key_specific_value)
E/CameraInput( 60): VerifiyAndSetParameter failed on parameter #0
D/AuthorDriver( 60): setParamVideoEncodingBitrate() 3000000
V/videocamera( 733): Current camera video filename: /mnt/sdcard/DCIM/Camera/VID
_20100614_003031.3gp
I/MediaRecorderJNI( 733): prepare: surface=0x244728 (id=3)
E/PVOMXEncNode( 60): PVMFOMXEncNode-Video_AVC:oPrepare(): Got Component OMX.
qcom.video.encoder.avc handle
W/CameraInput( 60): refCount 0
E/VENC_ENC( 60): VENC_ERROR update_param_port_def::1643 Frame rate is for inpu
t port (refer to OMX IL spec)
E/VENC_ENC( 60): VENC_ERROR get_parameter::952 unsupported index 0x700000b
E/VENC_ENC( 60): VENC_ERROR set_parameter::2720 unsupported index 0x700000b
E/VENC_ENC( 60): Bitrate 3000000
E/VENC_ENC( 60): VENC_ERROR get_parameter::952 unsupported index 0x6000005
E/VENC_ENC( 60): VENC_ERROR set_parameter::2720 unsupported index 0x6000005
E/VENC_ENC( 60): VENC_ERROR get_parameter::952 unsupported index 0x6000008
E/VENC_ENC( 60): VENC_ERROR set_parameter::2720 unsupported index 0x6000008
E/PVOMXEncNode( 60): PVMFOMXEncNode-Audio_AMRNB:oPrepare(): Got Component OM
X.PV.amrencnb handle
D/CameraInput( 60): Intended mFrameWidth=720, mFrameHeight=480
D/CameraInput( 60): Actual mFrameWidth=720, mFrameHeight=480
Android Rom & Kernel Developer
HTC Desire, Desire HD, Sensation, EVO 3D, Flyer, One S & The One X
And yes.. I have them all, I only work on devices I can test on (perks of my job )

If you like my work and appreciate the 1000's of hours i have put in, please consider a small donation


Donate Via >> << Many Thanks

Please be aware, if you select the market option, Google take 30%


Follow me Twitter:@LeeDrOiD or LeeDrOiD ROMs on Facebook | To view my kernel source, visit @GitHub.com: LeeDroid-
Lee Bailey, Android ROM & Kernel developer!
 
LeeDroid
Old
#2  
LeeDroid's Avatar
Recognized Developer - OP
Thanks Meter 11427
Posts: 12,450
Join Date: Jan 2007
Location: Darlington

 
DONATE TO ME
Default media_profiles.xml

here is the media_profiles.xml file that defines profiles for the encoders

Quote:

-->
<!DOCTYPE MediaSettings (View Source for full doctype...)>
- <!-- This file is used to declare the multimedia profiles and capabilities
on an android-powered device.

-->
- <MediaSettings>
- <!-- Each camcorder profile defines a set of predefined configuration parameters
-->
- <CamcorderProfiles>
- <EncoderProfile quality="high" fileFormat="mp4" duration="60">
<Video codec="h264" bitRate="3000000" width="720" height="480" frameRate="24" />
<Audio codec="amrnb" bitRate="12200" sampleRate="8000" channels="1" />
</EncoderProfile>
- <EncoderProfile quality="low" fileFormat="3gp" duration="30">
<Video codec="m4v" bitRate="256000" width="176" height="144" frameRate="15" />
<Audio codec="amrnb" bitRate="12200" sampleRate="8000" channels="1" />
</EncoderProfile>
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" />
<Camera previewFrameRate="0" />
</CamcorderProfiles>
<EncoderOutputFileFormat name="3gp" />
<EncoderOutputFileFormat name="mp4" />
- <!-- If a codec is not enabled, it is invisible to the applications
In other words, the applications won't be able to use the codec
or query the capabilities of the codec at all if it is disabled

-->
<VideoEncoderCap name="h264" enabled="true" minBitRate="64000" maxBitRate="3000000" minFrameWidth="176" maxFrameWidth="800" minFrameHeight="144" maxFrameHeight="480" minFrameRate="1" maxFrameRate="24" />
<VideoEncoderCap name="h263" enabled="true" minBitRate="64000" maxBitRate="1000000" minFrameWidth="176" maxFrameWidth="800" minFrameHeight="144" maxFrameHeight="480" minFrameRate="1" maxFrameRate="24" />
<VideoEncoderCap name="m4v" enabled="true" minBitRate="64000" maxBitRate="2000000" minFrameWidth="176" maxFrameWidth="800" minFrameHeight="144" maxFrameHeight="480" minFrameRate="1" maxFrameRate="24" />
<AudioEncoderCap name="amrnb" enabled="true" minBitRate="5525" maxBitRate="12200" minSampleRate="8000" maxSampleRate="8000" minChannels="1" maxChannels="1" />
- <!-- FIXME:
We do not check decoder capabilities at present
At present, we only check whether windows media is visible
for TEST applications. For other applications, we do
not perform any checks at all.

-->
<VideoDecoderCap name="wmv" enabled="false" />
<AudioDecoderCap name="wma" enabled="false" />
</MediaSettings>
Android Rom & Kernel Developer
HTC Desire, Desire HD, Sensation, EVO 3D, Flyer, One S & The One X
And yes.. I have them all, I only work on devices I can test on (perks of my job )

If you like my work and appreciate the 1000's of hours i have put in, please consider a small donation


Donate Via >> << Many Thanks

Please be aware, if you select the market option, Google take 30%


Follow me Twitter:@LeeDrOiD or LeeDrOiD ROMs on Facebook | To view my kernel source, visit @GitHub.com: LeeDroid-
Lee Bailey, Android ROM & Kernel developer!
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...