Aim:
This is for all people/dev/noob for posting and suggest a new media_profiles.xml configuration that suit our x8 the most...
The desired configuration must be,
1. No lag during recording, delay, stuck, Video/Audio interleave (Video and audio does not match each other).
2. Can be played on our x8 stock player.
3. Must be high quality enough/fine to be viewed.
4. The highest bit-rate available.
Note: This configuration is for Class 4 Sdcard only! Class 10 Sdcard would have higher write that could accept higher rate of incoming data... or
Our phone is limited to 2.5 MB/s due to CPU/GPU speed
-For who after edit got a bootloop, video recording gone white, there's is something wrong with your value...
-For who is going a bootloop, you got two option
-Restore
-Adb replace the file
For who is lazy enough Click thanks and download this
6/3/12 media_profile.zip
All people in xda is welcomed to use my mod as it credited and link to it.
Change Logs:
6/3/12
-Fixed no audio issue, it turn out i put 96000 sampling rate instead of 48000 Sorry guys
-Now you can record and play 2.5 mb/s @ 128 kb/s video audio without any problem...
5/3/12
-Added MMS low profile support to enable mms sending...
-The video will have very low quality to ensure video can keep up to 30 sec of recording.
-Blame GSM & 3GPP
-MMS low profile recording can record up to 30s (Thanks my effort for rebooting my phone a thousand time )
-Average bitrate for MMS low profile recording... 80 KB/s
-Link to this page and give credit pls
This is for all people/dev/noob for posting and suggest a new media_profiles.xml configuration that suit our x8 the most...
The desired configuration must be,
1. No lag during recording, delay, stuck, Video/Audio interleave (Video and audio does not match each other).
2. Can be played on our x8 stock player.
3. Must be high quality enough/fine to be viewed.
4. The highest bit-rate available.
Okay, here is it, the media_profiles.xml configuration for all our X8
Code:<MediaSettings> <CamcorderProfiles> <EncoderProfile quality="high" fileFormat="mp4" duration="60"> <Video codec="[COLOR="Red"]h264[/COLOR]" bitRate="[COLOR="Red"]2500000[/COLOR]" width="[COLOR="Red"]640[/COLOR]" height="[COLOR="Red"]480[/COLOR]" frameRate="[COLOR="Red"]30[/COLOR]" /> <Audio codec="[COLOR="Red"]aac[/COLOR]" bitRate="[COLOR="Red"]128000[/COLOR]" sampleRate="[COLOR="Red"]48000[/COLOR]" channels="[COLOR="Red"]1[/COLOR]" /> </EncoderProfile> <EncoderProfile quality="low" fileFormat="3gp" duration="30"> <Video codec="[COLOR="Red"]h263[/COLOR]" bitRate="[COLOR="Red"]70500[/COLOR]" width="[COLOR="Red"]176[/COLOR]" height="[COLOR="Red"]144[/COLOR]" frameRate="[COLOR="Red"]15[/COLOR]" /> <Audio codec="[COLOR="Red"]armnb[/COLOR]" bitRate="[COLOR="Red"]12200[/COLOR]" sampleRate="[COLOR="Red"]8000[/COLOR]" channels="[COLOR="Red"]1[/COLOR]" /> </EncoderProfile> <ImageEncoding quality="[COLOR="Red"]99[/COLOR]" /> <ImageEncoding quality="[COLOR="Red"]99[/COLOR]" /> <ImageEncoding quality="[COLOR="Red"]99[/COLOR]" /> <ImageDecoding memCap="[COLOR="Red"]80000000[/COLOR]" /> <Camera previewFrameRate="0" /> </CamcorderProfiles> <!--AAC and HQ encorder for shakira--> <EncoderOutputFileFormat name="mp4" /> <EncoderOutputFileFormat name="3gp" /> <VideoEncoderCap name="[COLOR="Red"]h264[/COLOR]" enabled="true" minBitRate="[COLOR="Red"]2500000[/COLOR]" maxBitRate="[COLOR="Red"]2500000[/COLOR]" minFrameWidth="[COLOR="Red"]640[/COLOR]" maxFrameWidth="[COLOR="Red"]640[/COLOR]" minFrameHeight="[COLOR="Red"]480[/COLOR]" maxFrameHeight="[COLOR="Red"]480[/COLOR]" minFrameRate="[COLOR="Red"]30[/COLOR]" maxFrameRate="[COLOR="Red"]30[/COLOR]" /> <VideoEncoderCap name="[COLOR="Red"]h263[/COLOR]" enabled="true" minBitRate="[COLOR="Red"]70500[/COLOR]" maxBitRate="[COLOR="Red"]70500[/COLOR]" minFrameWidth="[COLOR="Red"]176[/COLOR]" maxFrameWidth="[COLOR="Red"]176[/COLOR]" minFrameHeight="[COLOR="Red"]144[/COLOR]" maxFrameHeight="[COLOR="Red"]144[/COLOR]" minFrameRate="[COLOR="Red"]15[/COLOR]" maxFrameRate="[COLOR="Red"]15[/COLOR]" /> <AudioEncoderCap name="[COLOR="Red"]aac[/COLOR]" enabled="[COLOR="Red"]true[/COLOR]" minBitRate="[COLOR="Red"]128000[/COLOR]" maxBitRate="[COLOR="Red"]128000[/COLOR]" minSampleRate="[COLOR="Red"]48000[/COLOR]" maxSampleRate="[COLOR="Red"]48000[/COLOR]" minChannels="[COLOR="Red"]1[/COLOR]" maxChannels="[COLOR="Red"]1[/COLOR]" /> <AudioEncoderCap name="[COLOR="Red"]amrnb[/COLOR]" enabled="[COLOR="Red"]true[/COLOR]" minBitRate="[COLOR="Red"]12200[/COLOR]" maxBitRate="[COLOR="Red"]12200[/COLOR]" minSampleRate="[COLOR="Red"]8000[/COLOR]" maxSampleRate="8000" minChannels="[COLOR="Red"]1[/COLOR]" maxChannels="[COLOR="Red"]1[/COLOR]" />
Note: This configuration is for Class 4 Sdcard only! Class 10 Sdcard would have higher write that could accept higher rate of incoming data... or
Our phone is limited to 2.5 MB/s due to CPU/GPU speed
-For who after edit got a bootloop, video recording gone white, there's is something wrong with your value...
-For who is going a bootloop, you got two option
-Restore
-Adb replace the file
For who is lazy enough Click thanks and download this
6/3/12 media_profile.zip
All people in xda is welcomed to use my mod as it credited and link to it.
Change Logs:
6/3/12
-Fixed no audio issue, it turn out i put 96000 sampling rate instead of 48000 Sorry guys
-Now you can record and play 2.5 mb/s @ 128 kb/s video audio without any problem...
5/3/12
-Added MMS low profile support to enable mms sending...
-The video will have very low quality to ensure video can keep up to 30 sec of recording.
-Blame GSM & 3GPP
-MMS low profile recording can record up to 30s (Thanks my effort for rebooting my phone a thousand time )
-Average bitrate for MMS low profile recording... 80 KB/s
-Link to this page and give credit pls
Attachments
Last edited: