[Dev]Media_profiles.xml Configuration Values/Mod For Our X8 6/3/12

Search This thread

CKKnot

Senior Member
Oct 20, 2011
644
517
Kuching
Very thanks, i thinks its best configuration for custom rom :) but i still prefer to original x8 vid rec :D
like this (just for reference)
Code:
General
Complete name                    : G:\DCIM\100MSDCF\MOV00005.3gp
Format                           : MPEG-4
Format profile                   : 3GPP Media Release 4
Codec ID                         : 3gp4
File size                        : 73.4 MiB
Duration                         : 5mn 8s
Overall bit rate                 : 1 998 Kbps
Law rating                       : (empty)
Released date                    : 0
Classification                   : (empty)

Video
ID                               : 1
Format                           : MPEG-4 Visual
Format profile                   : Simple@L2
Format settings, BVOP            : Yes
Format settings, QPel            : No
Format settings, GMC             : No warppoints
Format settings, Matrix          : Default (H.263)
Codec ID                         : 20
Duration                         : 5mn 8s
Bit rate mode                    : Constant
Bit rate                         : 2 000 Kbps
Width                            : 640 pixels
Height                           : 480 pixels
Display aspect ratio             : 4:3
Frame rate mode                  : Variable
Frame rate                       : 29.321 fps
Minimum frame rate               : 1.767 fps
Maximum frame rate               : 40.000 fps
Color space                      : YUV
Bit depth                        : 8 bits
Scan type                        : Progressive
Compression mode                 : Lossy
Bits/(Pixel*Frame)               : 0.222
Stream size                      : 72.8 MiB (99%)
Language                         : English
mdhd_Duration                    : 308034

Audio
ID                               : 2
Format                           : AMR
Format/Info                      : Adaptive Multi-Rate
Format profile                   : Narrow band
Codec ID                         : samr
Duration                         : 5mn 7s
Bit rate mode                    : Variable
Bit rate                         : 12.8 Kbps
Channel(s)                       : 1 channel
Sampling rate                    : 8 000 Hz
Bit depth                        : 13 bits
Stream size                      : 480 KiB (1%)
Writing library                  : pvmm
Language                         : English
mdhd_Duration                    : 307020

sory my english very bad

The quality are enough but, these are for small size and the audio are in low bitrate too. Thanks for posting but i think i have to stick with mine:)
 

zephiel

Senior Member
Jul 22, 2011
486
40
www.facebook.com
I just flashed this and I can't play the recorded video by using Hardware Decoding on MX Video Player. I can play it on Software Decoding but it is lagging like hell, its not synced with the audio. Maybe it is because of the app's Software Decoder.

Is it just me having this problem? I'll flash PrimeHD over my ROM again to get the old media profiles. Its smooth but I don't like the audio so I tried this one.

EDIT: I just extracted "media_profiles.xml" of PrimeHD then placed it on "system/etc" then set permission.

PNY 16GB Class 4 SD Card.
 
Last edited:

CKKnot

Senior Member
Oct 20, 2011
644
517
Kuching
I just flashed this and I can't play the recorded video by using Hardware Decoding on MX Video Player. I can play it on Software Decoding but it is lagging like hell, its not synced with the audio. Maybe it is because of the app's Software Decoder.

Is it just me having this problem? I'll flash PrimeHD over my ROM again to get the old media profiles. Its smooth but I don't like the audio so I tried this one.

EDIT: I just extracted "media_profiles.xml" of PrimeHD then placed it on "system/etc" then set permission.

PNY 16GB Class 4 SD Card.

So, it is your problem or mine @@?:eek:
 

zephiel

Senior Member
Jul 22, 2011
486
40
www.facebook.com
I used MX Video Player. I tried Hardware Decoding but it just stated that the video cannot be played. When I tried it in Software Decoding it is working but not smooth. :l
 

CKKnot

Senior Member
Oct 20, 2011
644
517
Kuching
Omg now i noticed.... i taken a wrong version and post it ..... please go check for the value now for immediate fix....

PS: Having some problem @linux@lousy and very slow netbook.... Ziparchiver error:mad:
 

CKKnot

Senior Member
Oct 20, 2011
644
517
Kuching
it work but video form camera cant be playback :/

What rom are you using? some rom cannot hardware decode h264/acc/m4v

If you used software to play EG: moboplayer play using software decoding... ur rom does not support h264/acc/m4v hardware decoding...

Always try use stock player of the rom, because it used hardware decoding... you can try quickpic ;)
 

n1kolaa

Inactive Recognized Developer
Oct 21, 2011
3,367
4,062
Zrenjanin
OnePlus Nord
What rom are you using? some rom cannot hardware decode h264/acc/m4v

If you used software to play EG: moboplayer play using software decoding... ur rom does not support h264/acc/m4v hardware decoding...

Always try use stock player of the rom, because it used hardware decoding... you can try quickpic ;)

minicm 2.1.9 and only dont work with your media_profiles
 

Top Liked Posts

  • There are no posts matching your filters.
  • 30
    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.

    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:confused:
    -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 :D Click thanks and download this :D
    6/3/12 media_profile.zip

    All people in xda is welcomed to use my mod as it credited and link to it.:D

    Change Logs:
    6/3/12
    -Fixed no audio issue, it turn out i put 96000 sampling rate instead of 48000 Sorry guys:D
    -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 :D:D:D
    -MMS low profile recording can record up to 30s (Thanks my effort for rebooting my phone a thousand time :D:D:D)
    -Average bitrate for MMS low profile recording... 80 KB/s
    -Link to this page and give credit pls ;)
    3
    Hi CKKnot,

    Is this working good for the X8? Good enough to be in the next MiniCM build?

    Thanks.
    1
    Thanks, this is a much welcomed initiative!
    1
    thank you my friend
    I test it on miniCM & GingerDX ROM .
    Good work !

    Your welcomed!:)
    1
    Ohh, I think that's it. I'm using a Custom ROM and Kernel. Maybe you should state that on the first page.

    some custom doesn't contain lib to hardware decoding acc...

    i will add support for other rom that do not decode by hardware soon