[MOD] Increase Camera Audio/Video/Image Quality (Updated - 5/1/2013)

Search This thread

_Epic

Senior Member
Apr 9, 2011
1,905
1,192
Lakeland, FL
OnePlus 9 Pro
Before you do anything, DO A NANDROID BACKUP!!!!! I am not responsible for any mistakes that you make or if anything happens to your phone.

I have seen many people on here complaining about the camera/video recording and audio. So I decided to do a little research and well this is what I got. Many thanks go to mohit1234 as he actually compiled this for the Nexus 4 and I reached out and asked him if it would work for our device since they are so similar and I gave him our copy of media_profiles and this is what he suggested. I will continue to test out more values and try to make the camera the best it can be!

FLASHABLE INSTALL!

INSTRUCTIONS:
  • Download file and put it on the root of your memory
  • Reboot into recovery
  • Clear Cache/Dalvik Cache (Just to be safe...)
  • Install Camera Mod
  • Clear Cache/Dalvik Cache (Just to be safe...)
  • Reboot!
  • ????
  • PROFIT!!!

DOWNLOAD:
Download Here!

CHANGELOG:

12/25/2012
1) Increased 1080p bitrate to 20mbps
2) Increase audio bitrate to 320kbps for both 720p and 1080p
3) Changed audio channels to 2 for 1080p

12/29/12
1) Doubled the image decoding memory cap to 40mb
2) Increased all image encoding quality values to 100

1/12/2013
Small tweaks, nothing really to list, just getting it polished up!

5/1/2013
1) Camera Focus tweaks, should help with blurry pictures
2) Now works with all Stock LG ROM's and all CM/AOKP/AOSP ROM's!
3) Also, added a manual install for some people to plug it in themselves below!


WARNING: Make sure you make a backup (TWRP is the only recovery that it will work on) because I messed with a few other values and got bootloops and had to restore a backup!

DEVELOPERS: You can use this to incorporate in your ROM, just please make sure you give credit. That is all I ask for. :)

THANKS TO: AdriVelazquez/Beezy420 for creating this ZIP to easier install the mod!
 
Last edited:

_Epic

Senior Member
Apr 9, 2011
1,905
1,192
Lakeland, FL
OnePlus 9 Pro
MANUAL INSTALL!

Make sure to have a file explorer installed to do these instructions, such as Root Explorer or (What I use) Root Browser Lite.

Steps :
1. Download the XML file
2. push it into your /system/etc
3. click yes when asked to overwrite
4. set permission -rw-r-r- a.k.a 644
5. reboot
6. PRESS THE THANKS BUTTON
7. ????
8. PROFIT!!!!!

DOWNLOAD:
Download Here!
 
Last edited:

sheek360

Senior Member
Apr 23, 2010
1,127
60
Awesome thanks!

I'll be flashing soon. But out of curiosity, how does this make image quality in pictures better? Less compression?
 

_Epic

Senior Member
Apr 9, 2011
1,905
1,192
Lakeland, FL
OnePlus 9 Pro
Awesome thanks!

I'll be flashing soon. But out of curiosity, how does this make image quality in pictures better? Less compression?

To my knowledge, yes. I am new to all this so don't quite know everything but just increasing some of the values will make the image size bigger and less compression.

Sent from my LG-LS970 using xda premium
 

Morningstar

Senior Member
Apr 2, 2006
1,390
2,531
CA
www.alliance-rom.com
Can anyone tell me what I'm doing wrong here?
I set the file system R/W, put the file in '/' (I'm assuming that's what's meant by 'the root of your memory') then copy/pasted the file into '/System/Etc', overwriting the existing one. When I reboot, the audio during the boot animation cuts out and the phone hangs on the last frame of the boot animation, and I have to restore from backup to get the phone to boot again. Rooted/unlocked/TWRP v2.3.2.3/stock kernel.

Thanks :)
 

autoprime

Recognized Dev / Inactive Recognized Contributor
Jun 23, 2010
2,630
11,875
Which code in the XML is directly related to camera quality for pictures? Every entry seems to be for an mp4 or 3gp file(video/audio). Hopefully I'm missing something.

I'm seeing this... but it's the same setting as stock.
Code:
  <!ELEMENT ImageEncoding EMPTY> 
  <!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED> 
  <!ELEMENT ImageDecoding EMPTY> 
  <!ATTLIST ImageDecoding memCap CDATA #REQUIRED> 
  <!ELEMENT Camera EMPTY> 
  <!ATTLIST Camera previewFrameRate CDATA #REQUIRED>
 
Last edited:

_Epic

Senior Member
Apr 9, 2011
1,905
1,192
Lakeland, FL
OnePlus 9 Pro
Which code in the XML is directly related to camera quality for pictures? Every entry seems to be for an mp4 or 3gp file(video/audio). Hopefully I'm missing something.

I'm seeing this... but it's the same setting as stock.
Code:
  <!ELEMENT ImageEncoding EMPTY> 
  <!ATTLIST ImageEncoding quality (90|80|70|60|50|40) #REQUIRED> 
  <!ELEMENT ImageDecoding EMPTY> 
  <!ATTLIST ImageDecoding memCap CDATA #REQUIRED> 
  <!ELEMENT Camera EMPTY> 
  <!ATTLIST Camera previewFrameRate CDATA #REQUIRED>

From what I'm finding changing the settings I changed also effects camera quality as in pictures.

Sent from my LG-LS970 using xda premium
 

Top Liked Posts

  • There are no posts matching your filters.
  • 79
    Before you do anything, DO A NANDROID BACKUP!!!!! I am not responsible for any mistakes that you make or if anything happens to your phone.

    I have seen many people on here complaining about the camera/video recording and audio. So I decided to do a little research and well this is what I got. Many thanks go to mohit1234 as he actually compiled this for the Nexus 4 and I reached out and asked him if it would work for our device since they are so similar and I gave him our copy of media_profiles and this is what he suggested. I will continue to test out more values and try to make the camera the best it can be!

    FLASHABLE INSTALL!

    INSTRUCTIONS:
    • Download file and put it on the root of your memory
    • Reboot into recovery
    • Clear Cache/Dalvik Cache (Just to be safe...)
    • Install Camera Mod
    • Clear Cache/Dalvik Cache (Just to be safe...)
    • Reboot!
    • ????
    • PROFIT!!!

    DOWNLOAD:
    Download Here!

    CHANGELOG:

    12/25/2012
    1) Increased 1080p bitrate to 20mbps
    2) Increase audio bitrate to 320kbps for both 720p and 1080p
    3) Changed audio channels to 2 for 1080p

    12/29/12
    1) Doubled the image decoding memory cap to 40mb
    2) Increased all image encoding quality values to 100

    1/12/2013
    Small tweaks, nothing really to list, just getting it polished up!

    5/1/2013
    1) Camera Focus tweaks, should help with blurry pictures
    2) Now works with all Stock LG ROM's and all CM/AOKP/AOSP ROM's!
    3) Also, added a manual install for some people to plug it in themselves below!


    WARNING: Make sure you make a backup (TWRP is the only recovery that it will work on) because I messed with a few other values and got bootloops and had to restore a backup!

    DEVELOPERS: You can use this to incorporate in your ROM, just please make sure you give credit. That is all I ask for. :)

    THANKS TO: AdriVelazquez/Beezy420 for creating this ZIP to easier install the mod!
    32
    MANUAL INSTALL!

    Make sure to have a file explorer installed to do these instructions, such as Root Explorer or (What I use) Root Browser Lite.

    Steps :
    1. Download the XML file
    2. push it into your /system/etc
    3. click yes when asked to overwrite
    4. set permission -rw-r-r- a.k.a 644
    5. reboot
    6. PRESS THE THANKS BUTTON
    7. ????
    8. PROFIT!!!!!

    DOWNLOAD:
    Download Here!
    5
    Have the ZIP for this mod posted. Go test it out and let me know how it works, just flashed it on mine and it worked perfect! :victory:
    5
    UPDATE!
    5/1/2013
    1) Camera Focus tweaks, should help with blurry pictures
    2) Now works with all Stock LG ROM's and all CM/AOKP/AOSP ROM's!
    3) Also, added a manual install for some people to plug it in themselves below!

    I forgot to upload the new ZIP that I made yesterday, so I decided to add a little Camera tweak and reupload it! Enjoy!