[MOD] Stock camera mod LG GB V20e/i/j/l: No shutter sounds & improved Pic/Vid quality

Search This thread

AndiCP

Senior Member
Feb 17, 2009
91
116
www.smartsolutions.net.tf
[MOD] Stock camera mod LG GB V20e/i/j/l: No shutter sounds & improved Pic/Vid quality

Hi folks,

I modded the stock LG Camera-app and implemented new features.

Every improvement (except 16:9@6MP) is working seamlessly with this mod. Please find the list of improvements below.
I also included the "media_profiles.xml" in the package.

V1.0 is based on V20e and can be used up to V20e.
V2.x is based on V20l and can be used from V20i onwards.


Please find the modded camera apps attached to this post. Enjoy! ;)

Installation Instructions:
Flash the attached zip with CWM ("install zip from sd-card" --> "choose zip from sd-card").

I modded the following (in every version of the mod):

Disabled shutter & AF sounds (picture & video) - timer sounds are still enabled (on purpose --> no change!)
Increased preview fps to 40 (--> reduced page tearing)

Picture quality:
Set normal picture quality to 80 (= 20% compression)
Set fine picture quality to 90 (= 10% compression)
Set superfine picture quality to 100 (= 0% compression)

Video quality 1080p:
Set FPS from 24 to 30 (varies a little, similar to stock LG app)
Set normal video quality from 5Mbps to 7Mbps (= fine in stock LG app)
Set fine video quality from 7Mbps to 12Mbps
Set superfine video quality from 9Mbps to 17Mbps

Video quality 720p:
Set normal video quality from 2Mbps to 4Mbps (= superfine in stock LG app)
Set fine video quality from 3Mbps to 9Mbps
Set superfine video quality from 4Mbps to 14Mbps

Additional changes in the V2.x (V20l) mod are the following:
  • Changed 5MP picture resolution to 6MP 16:9 (3264 x 1840) - Implemented additional preview setting logic; AR not correct yet! trying to fix it.
  • Increased video bit rate for VGA (improves esp. quality of videos recorded by the front cam):
    - Superfine from 1.5 Mbps to 5 Mbps
    - Fine from 1.2 Mbps to 3 Mbps
    - Normal from 768 kbps to 1.5 Mbps
  • Persistent flash mode setting (i.e. last flash mode is being saved; default mode is off)
  • DCF compliance (adopted DCF requirements like directory- and filenames)
  • Storage path changed to "DCIM/CAMERA/" (DCF compliant)
  • Removed closing/ not starting on low battery (still shows a toast to remind you on your low charge though)
  • Shutter-sound menu adjusted/ fixed (only option now: "Off")
  • Several changes in German translations ;)
  • Modded further resources

Additional changes in V2.1:
  • Increased video bit rate for 1080p:
    - Superfine: 20Mbps
    - Fine: 17Mbps
    - Normal: 12Mbps
  • Increased audio bit rate to 128kbps for 1080p and 720p
  • Increased audio sampling rate to 44.1kHz for 1080p and 720p
  • Persistent focus mode setting (focus mode is being saved)
  • Persistent GPS setting (GPS mode is being saved)
  • Music keeps on playing (removed auto-pause music on app start)
  • Implemented ODEX fix for odexed roms (Camera.odex is being deleted automatically)
  • Fixed DCF compliance for video filenames (missing underscore)

ToDo:
  • Fix AR for 16:9 @ 6MP
  • Adjust preview size for 16:9 pictures
  • Optimize code for better performance

The rest is still stock.

PS:
1. If you have a darker icon for your camera app, then update script worked like it should!
2. If this is useful for you, hit the "Thanks" button on the lower right!
3. If you cook this mod in your rom, please give proper reference to this thread in the list of included features and in your change log!
 

Attachments

  • AndiCP's_V20e-Camera-Mod_1.0.zip
    1.3 MB · Views: 6,410
  • AndiCP's_V20l-HD-Camera-Mod_2.0.zip
    1.4 MB · Views: 879
  • AndiCP's_V20l-HD-Camera-Mod_2.1.zip
    1.4 MB · Views: 4,824
Last edited:

Striatum_bdr

Senior Member
May 29, 2011
4,650
2,176
Marseille
Main differences are on video mode. Original LG couldn't take very high quality/bitrates video in high resolutions...

Very nice thing to have this plus stock features as panoramic images for example (not present in CM 7).

Great and fast job!!!

O2X withTopogigi ROM 1.5/NeoBlaze kernel
 

AndiCP

Senior Member
Feb 17, 2009
91
116
www.smartsolutions.net.tf
yeaaaaaaaaaaah, thank you very much:D:D:D:D:D:D
You're welcome mate ;)
No. For Froyo you can use somemadcaaant's mod.
Installed it succesfully on 20e, but i can not see any difference in quality. Blown up the fotos taken before and after the mod, but no difference at all.

What should be the improvement, i ask myself.
If you compare just few pics, you probably won't see a difference. But technically speaking there is quite a difference (jpeg compression i.e. picture quality was changed from 90 to 100 in superfine setting - if you're familiar with image editing of any sort, you know what I'm talking about). You can use fine/ normal quality to limit file sizes though.
Additionally picture quality is just one (small) part, video quality (incl. fps) and removed shutter & auto-focus sounds the other ;)

Main differences are on video mode. Original LG couldn't take very high quality/bitrates video in high resolutions...

Very nice thing to have this plus stock features as panoramic images for example (not present in CM 7).

Great and fast job!!!

O2X withTopogigi ROM 1.5/NeoBlaze kernel
Correct. Thank you!
 

dickeplatte

Senior Member
Oct 27, 2009
100
12
Berlin
Hi,

thanks for that mod!!
But i have a question. Is it possible to increase the fps for 720p for getting good slowmotions?

thx
 

petyo.tsanov

Senior Member
Jul 27, 2010
144
7
Sofia
@AndiCP
Is there a chance to add "touch to focus" in video recording ? or some autoF in camcorder?
 
Last edited:

AndiCP

Senior Member
Feb 17, 2009
91
116
www.smartsolutions.net.tf
Great job, much appreciated!

Sent from my LG-P990 using XDA App
Thank you!
Hi,

thanks for that mod!!
But i have a question. Is it possible to increase the fps for 720p for getting good slowmotions?

thx
I'll try that in the next few days, but I think it won't work due to limitation in the kernel (max fps=30, otherwise reverting to standard fps).
@AndiCP
Is there a chance to add "touch to focus" in video recording ? or some autoF in camcorder?
Let me see what I can do. Constant AF is not a target for me though, as the only effect would be AF-pumping (AF constantly analyzing the whole focus range to get the sharpest picture).
 

Lo_RaT_PeNaT

Senior Member
Aug 5, 2008
1,258
218
Valencia
Possible future to do list:

-Option to pause video while recording, similar to Nokia N8 feature.
-Enhance tweak for Photo quality higher bitrate.

Is possible? Tks
 

AndiCP

Senior Member
Feb 17, 2009
91
116
www.smartsolutions.net.tf
Further Development

Picture quality (in terms of compression) is maxed already.
Pause mode is not possible, because it is not implemented in the API (only start & stop are).
Same goes for a non-pumping AF during video recording (not supported by API).

But I have 16:9 format for pictures and a 60 FPS mode for 720p on my list ;)
Let's see when I can find some time to play with it...I'll keep you updated.
 
Last edited:

arnett

Senior Member
Jan 2, 2009
86
0
is it ok with v20c leak GB ? because i used Flair GB v3 rom atm..

update: tested already.. it's fine.. looks better for video as not lagging as before..
 
Last edited:

Netuser

Senior Member
Feb 4, 2006
1,662
778
Toronto
Thanks for this great Mod :)

The 16:9 will be amazing feature as it is a lot better to watch pics in 16:9 dipslay, which became a standard ;)

The 720p at 60 fps will give some nice effects :)
 

Top Liked Posts

  • There are no posts matching your filters.
  • 73
    [MOD] Stock camera mod LG GB V20e/i/j/l: No shutter sounds & improved Pic/Vid quality

    Hi folks,

    I modded the stock LG Camera-app and implemented new features.

    Every improvement (except 16:9@6MP) is working seamlessly with this mod. Please find the list of improvements below.
    I also included the "media_profiles.xml" in the package.

    V1.0 is based on V20e and can be used up to V20e.
    V2.x is based on V20l and can be used from V20i onwards.


    Please find the modded camera apps attached to this post. Enjoy! ;)

    Installation Instructions:
    Flash the attached zip with CWM ("install zip from sd-card" --> "choose zip from sd-card").

    I modded the following (in every version of the mod):

    Disabled shutter & AF sounds (picture & video) - timer sounds are still enabled (on purpose --> no change!)
    Increased preview fps to 40 (--> reduced page tearing)

    Picture quality:
    Set normal picture quality to 80 (= 20% compression)
    Set fine picture quality to 90 (= 10% compression)
    Set superfine picture quality to 100 (= 0% compression)

    Video quality 1080p:
    Set FPS from 24 to 30 (varies a little, similar to stock LG app)
    Set normal video quality from 5Mbps to 7Mbps (= fine in stock LG app)
    Set fine video quality from 7Mbps to 12Mbps
    Set superfine video quality from 9Mbps to 17Mbps

    Video quality 720p:
    Set normal video quality from 2Mbps to 4Mbps (= superfine in stock LG app)
    Set fine video quality from 3Mbps to 9Mbps
    Set superfine video quality from 4Mbps to 14Mbps

    Additional changes in the V2.x (V20l) mod are the following:
    • Changed 5MP picture resolution to 6MP 16:9 (3264 x 1840) - Implemented additional preview setting logic; AR not correct yet! trying to fix it.
    • Increased video bit rate for VGA (improves esp. quality of videos recorded by the front cam):
      - Superfine from 1.5 Mbps to 5 Mbps
      - Fine from 1.2 Mbps to 3 Mbps
      - Normal from 768 kbps to 1.5 Mbps
    • Persistent flash mode setting (i.e. last flash mode is being saved; default mode is off)
    • DCF compliance (adopted DCF requirements like directory- and filenames)
    • Storage path changed to "DCIM/CAMERA/" (DCF compliant)
    • Removed closing/ not starting on low battery (still shows a toast to remind you on your low charge though)
    • Shutter-sound menu adjusted/ fixed (only option now: "Off")
    • Several changes in German translations ;)
    • Modded further resources

    Additional changes in V2.1:
    • Increased video bit rate for 1080p:
      - Superfine: 20Mbps
      - Fine: 17Mbps
      - Normal: 12Mbps
    • Increased audio bit rate to 128kbps for 1080p and 720p
    • Increased audio sampling rate to 44.1kHz for 1080p and 720p
    • Persistent focus mode setting (focus mode is being saved)
    • Persistent GPS setting (GPS mode is being saved)
    • Music keeps on playing (removed auto-pause music on app start)
    • Implemented ODEX fix for odexed roms (Camera.odex is being deleted automatically)
    • Fixed DCF compliance for video filenames (missing underscore)

    ToDo:
    • Fix AR for 16:9 @ 6MP
    • Adjust preview size for 16:9 pictures
    • Optimize code for better performance

    The rest is still stock.

    PS:
    1. If you have a darker icon for your camera app, then update script worked like it should!
    2. If this is useful for you, hit the "Thanks" button on the lower right!
    3. If you cook this mod in your rom, please give proper reference to this thread in the list of included features and in your change log!
    6
    Update to V2.1

    Hi,

    i felt like putting out another update :)
    You can find the zip attached to the first post.

    Additional changes in V2.1:
    • increased video bit rate for 1080p:
      - Superfine: 20Mbps
      - Fine: 17Mbps
      - Normal: 12Mbps
    • increased audio bit rate to 128kbps for 1080p and 720p
    • increased audio sampling rate to 44.1kHz for 1080p and 720p
    • persistent focus mode setting (focus mode is being saved)
    • persistent GPS setting (GPS mode is being saved)
    • music keeps on playing (removed auto-pause music on app start)
    • implemented ODEX fix for odexed roms (Camera.odex is being deleted automatically)
    • fixed DCF compliance for video filenames (missing underscore)

    ToDo List:
    • fix AR for 16:9 @ 6MP
    • adjust preview size for 16:9 pictures
    • optimize code for better performance

    Greets,
    AndiCP
    6
    New Version (V2.0)

    Ok, now I ported this camera mod to V20l plus introduced new features (hence V2.0). :D
    The front cam is not flipped upside down anymore (only happened with V1.0 on V20i and later). ;)
    This mod is backwards comatible until V20i, but probably not to eralier versions.
    For ROM versions V20e and below, please use V1.0 of my mod!
    I have updated the first post, please find the latest zip (V2.0) attached to the first post.

    I made the following new changes in V2.0 (since my V20e Mod)
    • Changed 5MP picture resolution to 6MP 16:9 (3264 x 1840) - Implemented additional preview setting logic; AR not correct yet! trying to fix it.
    • Increased bitrate for VGA (improves esp. quality of videos recorded by the front cam):
      - Super fine from 1.5 MBs to 5 MBs
      - Fine from 1.2 MBs to 3 MBs
      - Normal from 768 KBs to 1.5 MBs
    • Persistent flash settings (i.e. last flash mode is being saved; default mode=off)
    • DCF compliance (adopted DCF requirements like directory- and filenames)
    • Storage path changed to "DCIM/CAMERA/" (DCF compliant)
    • Removed closing/ not starting on low battery (still shows a toast to remind you on your low charge)
    • Shuttersound Menu adjusted/ fixed (only option now: "Off")
    • Several changes in German translations ;)
    • Modded further resources

    PS: this app uses h264 codec to record videos, mp4 is just another container (besides 3gp). No improvements result in recording mp4 files. So I'll not mess with that atm.

    greetz,
    AndiCP
    5
    Hi,

    I have tested as how you told me to, sadly to say.. the audio is out of sync. I even managed to get it to record exactly 1minute and the playback is definately synced. But once I reached above 1min, the whole video will get out of snyc with audio.
    [...]
    Hope AndiCP can take a look at this bug, having a great feature that we can't use is torturing.. :D

    Cheers!

    This is not a bug.
    I don't have any lagging/ not syncing issue.
    I tested it on Topogigi's 1.9 SP1 (with HP10 & SP2) and Hypnos 2.0 SP1, with no OC i.e. at 1GHz - everything was in sync and perfectly smooth.
    Maybe try another Kernel.

    I'm using Hypnos2X v2.0 SP1, It's all right.. But I have a little issue: You say that GPS settings is saved..
    That is not true for me. So I have to set "GPS ON" every time i take a picture..
    Can I solve this?!

    That's unfortunately true and I don't know why as everything is coded correctly (and has worked before). I will investigate this further.

    PS:
    I am working on the next version of this mod. ;)

    Edit:
    I did a lot more testing now, and there is a lag finally here too. I think I have to reduce (at least) audio bitrate to standard again (as the problem exists with 17Mbps as well).
    The question now is the following...

    What do you guys prefer: 1. having 20Mbps video bitrate for 1080p or 2. having 128 Kbps audio bitrate for 1080p?
    (both together is not possible, unfortunately but obviously)

    Please give me some feedback in order to influence the next update of this mod! :)
    4
    Current tasks

    Hi all,

    thanks for your feedback and special thanks to those who pushed the "Thanks" button! ;)

    Here is a quick summary of what I was doing lately:

    Wanted to implement a timelaps mode (60 fps), but it is not supported at all (i.e. at any resolution) like I mentioned earlier already.
    The sensor is sending 30 fps maximum and therefore fps is limited to 30 at driver level (see logcat snippet):
    requested frame rate 60 is greater than max frame rate 30
    09-24 20:34:56.523: ERROR/NvOmxCameraSettingsParser(3718): Failed substring capabilities check, unsupported parameter 60

    Also I wanted to implement raw picture format but raw data buffer always returns NULL - on purpose obviously (check this).

    So, there is currently no way of obtaining these features (unless kernel and drivers incorporate them, which is probably not going to happen).

    I had another V20e mod almost finished, when V20i showed up...so I will go and incorporate all changes from the current mod and my improved V20e mod into this Version of the camera.apk.

    So far I made the following new changes (to V20e, not posted here - will go in V20i mod!):
    • Changed 5MP resolution to 6MP 16:9 (3264 x 1840) - AR is not correct though :/ ...trying to fix it.
    • Shuttersound Menu adjusted/ fixed (only option: "Off")
    • Storage path changed to "Camera/"
    • Removed closing/ not starting on low battery
    • Some changes in german translations ;)
    • Modded several other resources

    I will come back to you, when I finished modding the V20i stock app.

    PS: investigating mp4 right now... ;)

    greetz,
    AndiCP