[myTouch 4G Android Development] sleepyfu:
Looks like the camcorder profile + encodercap = output, the cap is the limit. so i just change them both to the same numbers.

i changed the min bitRate and min fps to match whatever the max i decide to play with, so far i have good results on not dropping frames. the bitRate will effect the output file size for sure, from what i have gathered, 8000000 gets you 1mb per sec (1280x720). +/- some depending on your audio, i've been keeping mine at 4800.

here is the settings from CM7.0.0 *edit

it's different then my stock one for sure. has more profiles and the memcap is lower camId1 is the main cam, 0 is the FFC. and they use acc for audio as well.

DO NOT add the lines that you don't have in your XML. this is for reference only.

[URL="http://xdaforums.com/#"]-[/URL] <MediaSettings>
- <!-- Each camcorder profile defines a set of predefined configuration parameters -->
[URL="http://xdaforums.com/#"]-[/URL] <CamcorderProfiles cameraId="[B]0[/B]">
[URL="http://xdaforums.com/#"]-[/URL] <EncoderProfile quality="[B]hd[/B]" fileFormat="[B]mp4[/B]" duration="[B]60[/B]">
<Video codec="[B]h264[/B]" bitRate="[B]6000000[/B]" width="[B]1280[/B]" height="[B]720[/B]" frameRate="[B]30[/B]" />

<Audio codec="[B]aac[/B]" bitRate="[B]96000[/B]" sampleRate="[B]16000[/B]" channels="[B]1[/B]" />

</EncoderProfile>

[URL="http://xdaforums.com/#"]-[/URL] <EncoderProfile quality="[B]high[/B]" fileFormat="[B]mp4[/B]" duration="[B]60[/B]">
<Video codec="[B]h264[/B]" bitRate="[B]3000000[/B]" width="[B]720[/B]" height="[B]480[/B]" frameRate="[B]30[/B]" />

<Audio codec="[B]aac[/B]" bitRate="[B]96000[/B]" sampleRate="[B]16000[/B]" channels="[B]1[/B]" />

</EncoderProfile>

[URL="http://xdaforums.com/#"]-[/URL] <EncoderProfile quality="[B]low[/B]" fileFormat="[B]3gp[/B]" duration="[B]30[/B]">
<Video codec="[B]m4v[/B]" bitRate="[B]256000[/B]" width="[B]176[/B]" height="[B]144[/B]" frameRate="[B]15[/B]" />

<Audio codec="[B]amrnb[/B]" bitRate="[B]12200[/B]" sampleRate="[B]8000[/B]" channels="[B]1[/B]" />

</EncoderProfile>

<ImageEncoding quality="[B]90[/B]" />

<ImageEncoding quality="[B]80[/B]" />

<ImageEncoding quality="[B]70[/B]" />

</CamcorderProfiles>

[URL="http://xdaforums.com/#"]-[/URL] <CamcorderProfiles cameraId="[B]1[/B]">
[URL="http://xdaforums.com/#"]-[/URL] <EncoderProfile quality="[B]high[/B]" fileFormat="[B]mp4[/B]" duration="[B]60[/B]">
<Video codec="[B]h264[/B]" bitRate="[B]2000000[/B]" width="[B]640[/B]" height="[B]480[/B]" frameRate="[B]24[/B]" />

<Audio codec="[B]aac[/B]" bitRate="[B]96000[/B]" sampleRate="[B]16000[/B]" channels="[B]1[/B]" />

</EncoderProfile>

[URL="http://xdaforums.com/#"]-[/URL] <EncoderProfile quality="[B]low[/B]" fileFormat="[B]3gp[/B]" duration="[B]30[/B]">
<Video codec="[B]m4v[/B]" bitRate="[B]256000[/B]" width="[B]176[/B]" height="[B]144[/B]" frameRate="[B]15[/B]" />

<Audio codec="[B]amrnb[/B]" bitRate="[B]12200[/B]" sampleRate="[B]8000[/B]" channels="[B]1[/B]" />

</EncoderProfile>

<ImageEncoding quality="[B]90[/B]" />

<ImageEncoding quality="[B]80[/B]" />

<ImageEncoding quality="[B]70[/B]" />

<ImageDecoding memCap="[B]10000000[/B]" />

<Camera previewFrameRate="[B]0[/B]" />

</CamcorderProfiles>

<EncoderOutputFileFormat name="[B]3gp[/B]" />

<EncoderOutputFileFormat name="[B]mp4[/B]" />

- <!-- 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="[B]h264[/B]" enabled="[B]true[/B]" minBitRate="[B]64000[/B]" maxBitRate="[B]8000000[/B]" minFrameWidth="[B]176[/B]" maxFrameWidth="[B]1280[/B]" minFrameHeight="[B]144[/B]" maxFrameHeight="[B]720[/B]" minFrameRate="[B]1[/B]" maxFrameRate="[B]30[/B]" />

<VideoEncoderCap name="[B]h263[/B]" enabled="[B]true[/B]" minBitRate="[B]64000[/B]" maxBitRate="[B]6000000[/B]" minFrameWidth="[B]176[/B]" maxFrameWidth="[B]800[/B]" minFrameHeight="[B]144[/B]" maxFrameHeight="[B]480[/B]" minFrameRate="[B]1[/B]" maxFrameRate="[B]30[/B]" />

<VideoEncoderCap name="[B]m4v[/B]" enabled="[B]true[/B]" minBitRate="[B]64000[/B]" maxBitRate="[B]8000000[/B]" minFrameWidth="[B]176[/B]" maxFrameWidth="[B]1280[/B]" minFrameHeight="[B]144[/B]" maxFrameHeight="[B]720[/B]" minFrameRate="[B]1[/B]" maxFrameRate="[B]30[/B]" />

<AudioEncoderCap name="[B]aac[/B]" enabled="[B]true[/B]" minBitRate="[B]8192[/B]" maxBitRate="[B]96000[/B]" minSampleRate="[B]8000[/B]" maxSampleRate="[B]16000[/B]" minChannels="[B]1[/B]" maxChannels="[B]1[/B]" />

<AudioEncoderCap name="[B]amrwb[/B]" enabled="[B]true[/B]" minBitRate="[B]6600[/B]" maxBitRate="[B]23050[/B]" minSampleRate="[B]16000[/B]" maxSampleRate="[B]16000[/B]" minChannels="[B]1[/B]" maxChannels="[B]1[/B]" />

<AudioEncoderCap name="[B]amrnb[/B]" enabled="[B]true[/B]" minBitRate="[B]5525[/B]" maxBitRate="[B]12200[/B]" minSampleRate="[B]8000[/B]" maxSampleRate="[B]8000[/B]" minChannels="[B]1[/B]" maxChannels="[B]1[/B]" />

- <!-- 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="[B]wmv[/B]" enabled="[B]false[/B]" />

<AudioDecoderCap name="[B]wma[/B]" enabled="[B]false[/B]" />

</MediaSettings>