[MOD][ICS&GB][4/26/12]Camera HQ Mod: Extreme vs High (UPD: MDPI GB version updated)

Search This thread

hansip87

Senior Member
Jan 14, 2011
2,916
2,242
Jakarta
[MOD][ICS&GB][4/26/12]Camera HQ Mod: Extreme vs High (UPD: MDPI GB version updated)

So, after searching around, i finally modded sony camera ui to have higher 10mbps bitrate @ 720p. It was not editable with media_profiles.xml because of the apk predefines the profile by itself, thanks to user Xperia-Ray user feedback on the next thread :). So i altered the profile it needs for 720p. I chose at 10mbps to reduce hiccup or dropped frames and to comply with media_profiles.xml default bitrate cap.

As for photo quality, I think ics beta camera apk already gives you 90% compression value (file size@2.4MB) and think it can be modified simply from media_profiles.xml (since the apk only have 3 stepping of level, and after that the quality of 1-100 is determined by native code so no APK editing will solve that)

UPDATE: Added modified one for Gingerbread. Taken & Modded from Larut mod here. Thanks to him for 100% JPEQ Quality Mod :)
UPDATE 2: Added modified one for MDPI-devices Gingerbread.
UPDATE 3: MDPI Gingerbread updated, added override in JPEG Quality to 100%. apparently Gingerbread ignores media_profiles.xml.
UPDATE 4: Added Alternative Xperia Pro GB version.
UPDATE 5: Added new ICS 562 Leaked version based camera apk and 14Mbps quality.
UPDATE 6: Added new ICS 562 Official Nordic version with improvement of 14Mbps for 720p and 4Mbps for 480p.
UPDATE 7: ICS version Official is split into 2 option, Extreme Quality and High Quality, Extreme supports 14Mbps 720p + 6Mbps VGA Quality. while high is set at 10Mbps 720p + 4mbps VGA Quality.
UPDATE 7: Gingerbread version is split into 2 option, Extreme Quality and High Quality, Extreme supports 14Mbps 720p + 6Mbps VGA Quality. while high is set at 10Mbps 720p + 4mbps VGA Quality.
UPDATE 8: Added 5MP Option for 8MP module. Thanks to Xperia-Ray for the tips! :)
UPDATE 9: Added Alternative Version for ICS which reduce (or eliminate?) choppiness while recording HD. Please Try and give me feedback. Thanks to Xperia-Ray for the tips!
UPDATE 10: MDPI version is split into Extreme and High version.

DOWNLOADS
Gingerbread MDPI Version Download link:
http://www.mediafire.com/?03uqm3ktyzcv7rk Extreme: For 14Mbps quality + 6Mbps VGA Quality + 100% JPEG Quality
http://www.mediafire.com/?ao5wnia6cmanv4d High: For 10Mbps quality + 4Mbps VGA Quality + 100% JPEG Quality
https://www.box.com/s/81039f09e6b3de792181 Stock File. Thanks to Till-Kruspe

Gingerbread HDPI Version Download link:
http://www.mediafire.com/?apnu5jm4fu8en6x Extreme: For 14Mbps quality + 6Mbps VGA Quality + 100% JPEG Quality
http://xdaforums.com/showpost.php?p=25165187&postcount=161 High: For 10Mbps quality + 4Mbps VGA Quality + 100% JPEG Quality + 5MP Still Capture, thanks to Xperia-Ray!
http://xdaforums.com/attachment.php?attachmentid=1007250&d=1334589298 Stock File. Thanks to Lightspeed_x

ICS Official HDPI Version Download link:
http://www.mediafire.com/?deuzi41qakbmljd Extreme: For 14Mbps quality + 6Mbps VGA Quality + 5MP Still Capture
http://www.mediafire.com/?goy888j58fystt9 High: For 10Mbps quality + 4Mbps VGA Quality + 5MP Still Capture
http://www.mediafire.com/?59tw5c5mfdrlmp2 Normal: For stock quality + 5MP Still Capture

ICS Official Version Alternate Video Codec Download link:
http://www.mediafire.com/?tbeg1yh1uk0laa3

G'day!

FAQ:
Q: My Recording is only up to 10Mbps even though i use 14Mbps pack
A: Change the following in etc/media_profiles.xml from:
Code:
<VideoEncoderCap name="h264" enabled="true"
minBitRate="96000" maxBitRate="10000000"
minFrameWidth="176" maxFrameWidth="1280"
minFrameHeight="144" maxFrameHeight="720"
minFrameRate="1" maxFrameRate="30" />

<VideoEncoderCap name="m4v" enabled="true"
minBitRate="96000" maxBitRate="10000000"
minFrameWidth="176" maxFrameWidth="1280"
minFrameHeight="144" maxFrameHeight="720"
minFrameRate="1" maxFrameRate="30" />
to
Code:
<VideoEncoderCap name="h264" enabled="true"
minBitRate="96000" maxBitRate="[COLOR="Red"]14000000[/COLOR]"
minFrameWidth="176" maxFrameWidth="1280"
minFrameHeight="144" maxFrameHeight="720"
minFrameRate="1" maxFrameRate="30" />

<VideoEncoderCap name="m4v" enabled="true"
minBitRate="96000" maxBitRate="[COLOR="Red"]14000000[/COLOR]"
minFrameWidth="176" maxFrameWidth="1280"
minFrameHeight="144" maxFrameHeight="720"
minFrameRate="1" maxFrameRate="30" />

Q: In ICS it's choppy!
A: Turn Off Video Stabilization, seems like the stabilization is done in software, causing stuttering. Hope somebody can fix the camera driver for that.

Q: The Sound is only mono? Help!
A: Change media_profiles.xml from
Code:
<AudioEncoderCap name="aac" enabled="true"
        minBitRate="128000" maxBitRate="128000"
        minSampleRate="48000" maxSampleRate="48000"
        minChannels="1" maxChannels="1" />
to
Code:
<AudioEncoderCap name="aac" enabled="true"
        minBitRate="128000" maxBitRate="128000"
        minSampleRate="48000" maxSampleRate="48000"
        minChannels="1" maxChannels="[COLOR="Red"]2[/COLOR]" />

Q: How to change JPEG Compression value in ICS?
A: Change the following in etc/media_profiles.xml from:
Code:
<ImageEncoding quality="90" />
<ImageEncoding quality="80" />
<ImageEncoding quality="70" />
<ImageDecoding memCap="20000000" />
to
Code:
<ImageEncoding quality="[COLOR="Red"]100[/COLOR]" />
<ImageEncoding quality="[COLOR="Red"]90[/COLOR]" />  [I]// This is the medium quality, u can set it to 100% to override if you wish[/I]
<ImageEncoding quality="[COLOR="Red"]80[/COLOR]" /> [I]// This is the low quality, u can set it to 100% to override if you wish[/I]
<ImageDecoding memCap="[COLOR="Red"]30000000[/COLOR]" />

These lines depend on how many cameras you get. There will be 2 camera setting if your device has front cam, so if you want to improve the front one, set the above twice to the respective parent tag.

sent from my white ray using XDA App :)
 
Last edited:

hjf9259

Member
Nov 28, 2011
10
0
Foshan
So, after searching around, i finally modded sony camera ui to have higher 10mbps bitrate @ 720p. It was not editable with media_profiles.xml because of the apk predefines the profile by itself. So i altered the profile it needs for 720p. I chose at 10mbps to reduce hiccup or dropped frames and to comply with media_profiles.xml default bitrate cap.

As for photo quality, I think ics beta camera apk already gives you 90% compression value (file size@2.4MB) and think it can be modified simply from media_profiles.xml (since the apk only have 3 stepping of level, and after that the quality of 1-100 is determined by native code so no APK editing will solve that)

Ok it's uploaded now, flash thru CWM & have a fun time! :)

G'day!

sent from my white ray using XDA App :)

great work!!thx!
but can it run in 2.3 firmware??
 

sirkay

Senior Member
Mar 24, 2011
1,642
2,129
KL
yeah he just got nothing to do .. he definitely do OVERTIME :p
c'mon give him the apk!
 

Xperia-Ray

Senior Member
Jan 16, 2012
349
338
Unfortunately no. But I can build one if someone lend me the apk.

sent from my white ray using XDA App :)

Finally!! Thank you, please check my post on same subject
http://xdaforums.com/showpost.php?p=24138141&postcount=6

There is the link for the moded camera with quality mod (2.4 mb pics) pliz mod it to use 10Mbs

The phone can support up to 13mbs with lgcamera apk@ 30fps.
10Mbs will be enough.

P.s do you know what would happen if you enable wmv,wma in the media_profiles?
Can we record at this format?
I didnt try to enable it because I read someone got boot loop. I still dont have backup and flash tools.
 
Last edited:
  • Like
Reactions: keekokeeko

hansip87

Senior Member
Jan 14, 2011
2,916
2,242
Jakarta
Finally!! Thank you, please check my post on same subject
http://xdaforums.com/showpost.php?p=24138141&postcount=6

There is the link for the moded camera with quality mod (2.4 mb pics) pliz mod it to use 10Mbs

The phone can support up to 13mbs with lgcamera apk@ 30fps.
10Mbs will be enough.

P.s do you know what would happen if you enable wmv,wma in the media_profiles?
Can we record at this format?
I didnt try to enable it because I read someone got boot loop. I still dont have backup and flash tools.
Ok already added now :) Please try and report back if there's an issue with that.
 

JoHnNy08PL

Senior Member
Oct 11, 2010
453
132
Bydgoszcz
On the EXIF's there is no change. Everything is the same.
On Neo V photos are approximately 3 times bigger (0.5MB->1.5MB)

At videos there is change in info only about bitrate
Stock Bit rate : 5 993 Kbps
Custom Bit rate : 9 986 Kbps
And the size of videos is approximately 2 times bigger - in my test 15 sec movie at stock was ~11MB, at custom it was ~20MB.
Differences... I just did one shot of photo and video and weather sucks so there is no very good visible details.
 

hansip87

Senior Member
Jan 14, 2011
2,916
2,242
Jakarta
On the EXIF's there is no change. Everything is the same.
On Neo V photos are approximately 3 times bigger (0.5MB->1.5MB)

At videos there is change in info only about bitrate
Stock Bit rate : 5 993 Kbps
Custom Bit rate : 9 986 Kbps
And the size of videos is approximately 2 times bigger - in my test 15 sec movie at stock was ~11MB, at custom it was ~20MB.
Differences... I just did one shot of photo and video and weather sucks so there is no very good visible details.

Jpeg has incomplete details, lacking the compression value. So the only parameter left, is the file size.

The video, well at least the metadata tells you the truth, so please report back if you can spot the differences.
Me myself is not a quality nitpicker (6mbps is quite good actually for me) so i'll give it to you all to decide ;)

sent from my white ray using XDA App :)
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 138
    [MOD][ICS&GB][4/26/12]Camera HQ Mod: Extreme vs High (UPD: MDPI GB version updated)

    So, after searching around, i finally modded sony camera ui to have higher 10mbps bitrate @ 720p. It was not editable with media_profiles.xml because of the apk predefines the profile by itself, thanks to user Xperia-Ray user feedback on the next thread :). So i altered the profile it needs for 720p. I chose at 10mbps to reduce hiccup or dropped frames and to comply with media_profiles.xml default bitrate cap.

    As for photo quality, I think ics beta camera apk already gives you 90% compression value (file size@2.4MB) and think it can be modified simply from media_profiles.xml (since the apk only have 3 stepping of level, and after that the quality of 1-100 is determined by native code so no APK editing will solve that)

    UPDATE: Added modified one for Gingerbread. Taken & Modded from Larut mod here. Thanks to him for 100% JPEQ Quality Mod :)
    UPDATE 2: Added modified one for MDPI-devices Gingerbread.
    UPDATE 3: MDPI Gingerbread updated, added override in JPEG Quality to 100%. apparently Gingerbread ignores media_profiles.xml.
    UPDATE 4: Added Alternative Xperia Pro GB version.
    UPDATE 5: Added new ICS 562 Leaked version based camera apk and 14Mbps quality.
    UPDATE 6: Added new ICS 562 Official Nordic version with improvement of 14Mbps for 720p and 4Mbps for 480p.
    UPDATE 7: ICS version Official is split into 2 option, Extreme Quality and High Quality, Extreme supports 14Mbps 720p + 6Mbps VGA Quality. while high is set at 10Mbps 720p + 4mbps VGA Quality.
    UPDATE 7: Gingerbread version is split into 2 option, Extreme Quality and High Quality, Extreme supports 14Mbps 720p + 6Mbps VGA Quality. while high is set at 10Mbps 720p + 4mbps VGA Quality.
    UPDATE 8: Added 5MP Option for 8MP module. Thanks to Xperia-Ray for the tips! :)
    UPDATE 9: Added Alternative Version for ICS which reduce (or eliminate?) choppiness while recording HD. Please Try and give me feedback. Thanks to Xperia-Ray for the tips!
    UPDATE 10: MDPI version is split into Extreme and High version.

    DOWNLOADS
    Gingerbread MDPI Version Download link:
    http://www.mediafire.com/?03uqm3ktyzcv7rk Extreme: For 14Mbps quality + 6Mbps VGA Quality + 100% JPEG Quality
    http://www.mediafire.com/?ao5wnia6cmanv4d High: For 10Mbps quality + 4Mbps VGA Quality + 100% JPEG Quality
    https://www.box.com/s/81039f09e6b3de792181 Stock File. Thanks to Till-Kruspe

    Gingerbread HDPI Version Download link:
    http://www.mediafire.com/?apnu5jm4fu8en6x Extreme: For 14Mbps quality + 6Mbps VGA Quality + 100% JPEG Quality
    http://xdaforums.com/showpost.php?p=25165187&postcount=161 High: For 10Mbps quality + 4Mbps VGA Quality + 100% JPEG Quality + 5MP Still Capture, thanks to Xperia-Ray!
    http://xdaforums.com/attachment.php?attachmentid=1007250&d=1334589298 Stock File. Thanks to Lightspeed_x

    ICS Official HDPI Version Download link:
    http://www.mediafire.com/?deuzi41qakbmljd Extreme: For 14Mbps quality + 6Mbps VGA Quality + 5MP Still Capture
    http://www.mediafire.com/?goy888j58fystt9 High: For 10Mbps quality + 4Mbps VGA Quality + 5MP Still Capture
    http://www.mediafire.com/?59tw5c5mfdrlmp2 Normal: For stock quality + 5MP Still Capture

    ICS Official Version Alternate Video Codec Download link:
    http://www.mediafire.com/?tbeg1yh1uk0laa3

    G'day!

    FAQ:
    Q: My Recording is only up to 10Mbps even though i use 14Mbps pack
    A: Change the following in etc/media_profiles.xml from:
    Code:
    <VideoEncoderCap name="h264" enabled="true"
    minBitRate="96000" maxBitRate="10000000"
    minFrameWidth="176" maxFrameWidth="1280"
    minFrameHeight="144" maxFrameHeight="720"
    minFrameRate="1" maxFrameRate="30" />
    
    <VideoEncoderCap name="m4v" enabled="true"
    minBitRate="96000" maxBitRate="10000000"
    minFrameWidth="176" maxFrameWidth="1280"
    minFrameHeight="144" maxFrameHeight="720"
    minFrameRate="1" maxFrameRate="30" />
    to
    Code:
    <VideoEncoderCap name="h264" enabled="true"
    minBitRate="96000" maxBitRate="[COLOR="Red"]14000000[/COLOR]"
    minFrameWidth="176" maxFrameWidth="1280"
    minFrameHeight="144" maxFrameHeight="720"
    minFrameRate="1" maxFrameRate="30" />
    
    <VideoEncoderCap name="m4v" enabled="true"
    minBitRate="96000" maxBitRate="[COLOR="Red"]14000000[/COLOR]"
    minFrameWidth="176" maxFrameWidth="1280"
    minFrameHeight="144" maxFrameHeight="720"
    minFrameRate="1" maxFrameRate="30" />

    Q: In ICS it's choppy!
    A: Turn Off Video Stabilization, seems like the stabilization is done in software, causing stuttering. Hope somebody can fix the camera driver for that.

    Q: The Sound is only mono? Help!
    A: Change media_profiles.xml from
    Code:
    <AudioEncoderCap name="aac" enabled="true"
            minBitRate="128000" maxBitRate="128000"
            minSampleRate="48000" maxSampleRate="48000"
            minChannels="1" maxChannels="1" />
    to
    Code:
    <AudioEncoderCap name="aac" enabled="true"
            minBitRate="128000" maxBitRate="128000"
            minSampleRate="48000" maxSampleRate="48000"
            minChannels="1" maxChannels="[COLOR="Red"]2[/COLOR]" />

    Q: How to change JPEG Compression value in ICS?
    A: Change the following in etc/media_profiles.xml from:
    Code:
    <ImageEncoding quality="90" />
    <ImageEncoding quality="80" />
    <ImageEncoding quality="70" />
    <ImageDecoding memCap="20000000" />
    to
    Code:
    <ImageEncoding quality="[COLOR="Red"]100[/COLOR]" />
    <ImageEncoding quality="[COLOR="Red"]90[/COLOR]" />  [I]// This is the medium quality, u can set it to 100% to override if you wish[/I]
    <ImageEncoding quality="[COLOR="Red"]80[/COLOR]" /> [I]// This is the low quality, u can set it to 100% to override if you wish[/I]
    <ImageDecoding memCap="[COLOR="Red"]30000000[/COLOR]" />

    These lines depend on how many cameras you get. There will be 2 camera setting if your device has front cam, so if you want to improve the front one, set the above twice to the respective parent tag.

    sent from my white ray using XDA App :)
    7
    Wow that's nice :) could you teach me how? :) would like to have it in ics thanks. Credit will be added to you ofc. ;) in a mean while, still figuring out how to have iso value. Turns out we need to search outside this apk..

    sent from my white ray using XDA App :)

    found easier way:

    just add the resulution you like in \res\values\arrays.xml

    Update: new version of GB 10Mbs with 8mp,6mp,5mp,2mp,2mp 16:9 options

    can't add 3mp 4:3, 3mp 16:9 because ther is stupid bug in the camera apk! 3mp4:3 works but has no icon or label, 3mp16:9 has icon and label but force close when clicked!

    I cant fix it because apk wont rebuild if i change the code,
    3
    Well it is possible, but need time for that (since it's not a source code). But interesting thing to try that is :)
    2
    Great work hansip, Now thats a Truely working Mod...:)

    Short of thanks for today...
    2
    great work!!thx!
    but can it run in 2.3 firmware??

    Unfortunately no. But I can build one if someone lend me the apk.

    sent from my white ray using XDA App :)