[MOD] Gr1 Camera modded - no shutter sounds, better quality for videos & pictures - LG Optimus 2x

Hi all,
I'm using Paul's great Gr1 (GB 2.3.4) from almost day one and even as my "daily driver" .
I tried the usual camera mods and found none of them working (just experienced boot loops).
So, I was longing for a respective camera mod - similar to somemadcaaant's mod but for GB/ Gr1. As no mod for Gr1 surfaced until now, I decided to rip apart the app by myself.
After some googling and a time intensive code analysis, I figured out how to accomplish what I was looking for (no shutter sounds, quality improvements).
I finally decided to share my mod with the community.
You can flash it with the update zip in CWM or just copy the apk to \system\app using a root file explorer.
NB: Unfortunately I was not able to make most of the Full-HD video mods work. After some testing I came to the conclusion, it must be some kernel bug because there are no hints in the logcat, that something is going wrong. And even the stock app behaves in the same way!
Maybe it's just happening to me, so provide some feedback/ hints here please!
I'm sharing it anyway, because maybe somebody finds it useful like it is.
Please find the resulting apk (plus update script) attached to this post. Enjoy!
Installation:
Flash the attached zip with CWM ("install zip from sd-card") or copy the apk to your \system\app folder manually.
I modded the following (please note the current restrictions!):
Disabled shutter & AF sounds (still & video) - timer sounds are still enabled (on purpose --> no change!)
Increased preview fps to 40 (--> reduced page tearing)
Changed default to show video after capture to false
Picture quality:
Set normal picture quality to 80
Set fine picture quality to 95
Set superfine picture quality to 100
1080p:
*Set FPS to 30
*Set normal video quality to 7Mbs (=fine in LG app)
*Set fine video quality to 12Mbs
*Set superfine video quality to 17Mbs
Set audio bitrate to 128Kbs
*not working due to buggy kernel (Gr1)? --> reverts to default 15fps & 9Mbs
720p:
Set normal video quality to 4Mbs (=superfine in LG app)
Set fine video quality to 9Mbs
Set superfine video quality to 14Mbs
Set audio bitrate to 128Kbs
PS:
1. Zoom is working now (no crash on Paul's Gr1) !!
2. If you have a darker icon for your camera app, then update script worked like it should!
3. Please be polite, as a) this is my first mod b) operation iron fist
4. If this is useful for you, hit the "Thanks" button on the lower right!

This mod is valid for stock roms?
Enviado desde mi LG-P990 usando Tapatalk

@Lo_RaT_PeNaT
I don't think so , this mod is for Modaco GR1 (Gingerbread)
the ROM Stock are Froyo

AndiCP said:
Hi all,
I'm using Paul's great Gr1 from almost day one and even as my "daily driver" .
I tried the usual camera mods and found none of them working (just experienced boot loops).
....
3. Please be polite, as a) this is my first mod b) operation iron fist
4. If this is useful for you, hit the "Thanks" button on the lower right!
Click to expand...
Click to collapse
Thanks for your efforts. Going to try this out.
Anyway you can make widescreen photos option available? Don't like 4:3 ratio.

how did you disable shutter sound ?
in cm, focus sound is played by camera app, so it is easy to reduce, while shutter sound is hard-coded in libcameraservice.so and you have to modify frameworks/base/services/camera/libcameraservice/CameraService.cpp (maybe Gr1 is different ?)
another question is that in cm, picture quality drops once you go to video recording mode and back to still image mode. do you also have this ?

Good work
i have a gr2 i will test your camera mod
thanks

Thanks for your posts guys!
el_liberator said:
@Lo_RaT_PeNaT
I don't think so , this mod is for Modaco GR1 (Gingerbread)
the ROM Stock are Froyo
Click to expand...
Click to collapse
yup
ksekhar said:
Thanks for your efforts. Going to try this out.
Anyway you can make widescreen photos option available? Don't like 4:3 ratio.
Click to expand...
Click to collapse
You're welcome!
I don't like 4:3 too. Let's see what I can do.
pastime1971 said:
how did you disable shutter sound ?
in cm, focus sound is played by camera app, so it is easy to reduce, while shutter sound is hard-coded in libcameraservice.so and you have to modify frameworks/base/services/camera/libcameraservice/CameraService.cpp (maybe Gr1 is different ?)
another question is that in cm, picture quality drops once you go to video recording mode and back to still image mode. do you also have this ?
Click to expand...
Click to collapse
It's sort of a hack. I disabled it by removing the middle layer.
To make it short: The app actually plays the sound, but the sounds won't be loaded in the first place There isn't even an error message in log cat about that though!
If you just remove the actual playing part, it simply plays the default sound instead (like you mentioned).
About pic quality...didn't notice that so far, will test it.
vekkio said:
Good work
i have a gr2 i will test your camera mod
thanks
Click to expand...
Click to collapse
Thanks! I'm eager to hear your feedback for the Gr2 (esp. if it also reverts the Full-HD settings)!
Looking forward to more feedback!

vekkio said:
Good work
i have a gr2 i will test your camera mod
thanks
Click to expand...
Click to collapse
I'm going to test it too today.
Update: can you post the zip file, because I can't overwrite the camera apk ...

Nice work, you read my mind...
I couldn't fix the 1080p issues either since the camera app looks to be unfinished, looks like its missing updated libs (libcamera.service.so|libnvmm_camera.so|libcamera_client.so) as I could restore some functions like 1080p higher compression via using the froyo code [cameraengine.java|modevideonormal.java] but it would screw other features, all LG seems to have done is started a quick and dirty port to GB.
Also looks like their trying to make a universal GB camera app for GB phones using the media_profiles.xml like the sgs2 and aosp frameworks have, this looks like where the 1080p issues reside as it will be looking to this file for fps and audio/video compression in the O2X Gb update.
Done well so far matey keep it up.
-smc

Are you planning on adding MIUI compatibility? Currently it force closes on 1.8.12
Sent from my Optimus 2X using XDA App

somemadcaaant said:
Nice work, you read my mind...
I couldn't fix the 1080p issues either since the camera app looks to be unfinished, looks like its missing updated libs (libcamera.service.so|libnvmm_camera.so|libcamera_client.so) as I could restore some functions like 1080p higher compression via using the froyo code [cameraengine.java|modevideonormal.java] but it would screw other features, all LG seems to have done is started a quick and dirty port to GB.
Also looks like their trying to make a universal GB camera app for GB phones using the media_profiles.xml like the sgs2 and aosp frameworks have, this looks like where the 1080p issues reside as it will be looking to this file for fps and audio/video compression in the O2X Gb update.
Done well so far matey keep it up.
-smc
Click to expand...
Click to collapse
Thanks man! really appreciate it!
Good to hear, that its not just me having trouble with this
Actually I already thought that exactly these probs would keep you from posting a GB mod
Thanks for this valuable info! But I was almost sure this would be related to a buggy kernel, as I developed another cam app which is working great on Froyo but behaves on Gr1 exactly the same strange way as the LG cam app does in Gr1. I think the drivers are simply f*cked up for LG's GB port at this point of time. So let's wait and see what comes down the pipe...
PS: tried the media_profiles.xml as well (and included it into the update zip) - even b4 your post - but obviously no impact on said probs.
action294 said:
Are you planning on adding MIUI compatibility? Currently it force closes on 1.8.12
Click to expand...
Click to collapse
Nope. Plain modded LG GB cam app.

AndiCP said:
Thanks man! really appreciate it!
Good to hear, that its not just me having trouble with this
Actually I already thought that exactly these probs would keep you from posting a GB mod
Thanks for this valuable info! But I was almost sure this would be related to a buggy kernel, as I developed another cam app which is working great on Froyo but behaves on Gr1 exactly the same strange way as the LG cam app does in Gr1. I think the drivers are simply f*cked up for LG's GB port at this point of time. So let's wait and see what comes down the pipe...
PS: tried the media_profiles.xml as well (and included it into the update zip) - even b4 your post - but obviously no impact on said probs.
Nope. Plain modded LG GB cam app.
Click to expand...
Click to collapse
Dude this is great that your working on this for GB for the O2X. I have a thread in the G2X forums working on the same thing. Question how did you fix the zoom crash, I also use apktool , so let me know thanks.

Is this working for CM7 or people having some problems ?

sahilkhurana said:
Is this working for CM7 or people having some problems ?
Click to expand...
Click to collapse
+1 here, would it work with CM7?
Does it actually removes the "mist" effect from the camera when taking pictures? stock v10d removes(without any fix), tho in CM7 it's still there.

Any chance of updating this work with the camera module from the latest leaked V20c ROM (eg. Flair GB) or V20f (Korean??)?
LG have fixed the video zoom problem and upped the frame rate for 1080p to 24fps in V20c.
But I am still really disappointed with LG's lack of progress with the still photo quality. The white haze problem is not so noticeable (color saturation still no where as good as the Nokia cameras) but the image is still very grainy and I suspect that is all we are going to get Could do with your tweaking magic

greetings, I wonder if you think some mod make the camera view has achieved stability with ginger roms version based on 20c?, a greeting

Modded V20e stock camera
Hi all,
I went on and successfully modded the stock camera app of V20e.
In contrast to Gr1, everything I modded is working well in V20e now.
Please go ahead and dl my latest mod here.
Enjoy!
AndiCP

Installed the mod successfully.
Enhanced fotos before and after the mod, but no vissable difference between them.
What should be improved with this mod, except the missing shutter sound?
Sent from my LG-P990 using XDA Premium App

mach2005 said:
Installed the mod successfully.
Enhanced fotos before and after the mod, but no vissable difference between them.
What should be improved with this mod, except the missing shutter sound?
Sent from my LG-P990 using XDA Premium App
Click to expand...
Click to collapse
You said that before on the corresponding thread.
Read my answer there.

does it work on latest v20l? can you see if with this new update, you can enhance 1080p again? you wrote it couldn't be enhanced due to kernel problems... probably with the final one, have been resolved?
thanks

Related

[MOD][CAM] [email protected]@20mbps + auto-focus on CM7

EDIT: [email protected] has been added to nightly and bitrate has been set to 12mbps which is not that bad. Its hence not recommended to flash these anymore. If you want higher bitrate look in the thread for those. I think it was pastime who made them. Alternatively use root explorer to manually edit /etc/mediaprofiles.XML. again, read pastimes and related posts in the thread on that.
This will replace the Camera.apk from CM7 with a more tegra2 friendly version that enables [email protected] recording. There's also included an updated media_profiles.xml file that'll enable different bitrates. Choose wisely . To test the bitrate I recommend having it running for at a minute to make sure everything can keep up. Usually it starts out smooth and then starts stuttering as the ram gets filled up. I also upped the quality for still.
Videos (I'll add experimental stuff as well, such as ultra high bitrates and auto focus):
http://www.youtube.com/user/O2XdevVids
I would stay away with 64mb ram hacks for the time being. Maybe we can find some middle ground in the future .
Anyway, please give me feedback on how it works. Some beautiful videos would be nice. Weather is really depressing here.
Please don't use this for non-tegra 2 devices.
Also, I'm experimenting a lot. Expect a lot to be buggy. I do my best not to put something out that doesn't work, but a couple of runs is really the extend of my testing before it goes up (to be honest). The autofocus-mod is seriously buggy. The bitrate-mod should be pretty much as buggy as the std. cm7 Camera app.
And, of course, thx to all the great ppl who works on cm.
------------------------------------------------------------
Source code (just the 1080p mod):
https://github.com/LeJay/Camera
Versions & Changelog & TODO
--------------Autofocus1.1----------------- (Note this is horribly buggy)
Just adds auto focus (and 25/30fps if you're on nightly), no change to bitrate. Flash this AFTER you do the bitrate mods. Flashing with any of the bitrate mods will replace the Camera app and you'll lose autofocus.
----------------------------------------------
--------------FullHDmod 1.0---------------
->Video:
HD: [email protected]@20mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_high 1.0---------- (works for some, requires fast sd card)
->Video:
HD: [email protected]@26mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_mid 1.0---------- (Recommended)
->Video:
HD: [email protected]@17mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_low 1.0----------
->Video:
HD: [email protected]@14mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_LG 1.0---------- (It's the settings used as stock LG... except for 1080p being 30fps)
->Video:
HD: [email protected]@9mbps
High: [email protected]@4mbps
----------------------------------------------
----------BitrateMod(720p only)---------- (Does not replace Camera.apk. Works for 64mb ram hack, until we find other solution)
->Video:
HD: [email protected]@20mbps
High: [email protected]@10mbps
----------------------------------------------
All audio is 128 kbps and all stills are:
Super fine: 100
Fine: 90
Normal: 80
--------------------------------CHANGELOG----------------------------------------
1.0 Initial release.
---- Small bugfix of CM7s camera app + tegra 2 specific stuff.
1.1-pre-alpha
---- Enables autofocus prior to video capture. Cannot be turned off(I don't do UIs,lol). Need to restart app for each video.
Autofocus 1.1
---- No need to restart app.
Known issues:
Does no longer auto adjust for exposure while recording. In between recordings it will auto adjust again. (I have no idea why).
Cannot disable autofocus (have no idea how to do UI).
Rather buggy, lots of freezes. For best results, don't push it. Ie. don't start and stop recordings rapidly, stuff like that.
Don't switch quickly to video when opening app... I think that might be a cm7 issue.
---------------------------------------TODO----------------------------------------
Touch to focus.
continuous auto-focus.
FAQ
Q: Does this work for non-CM7 ROMS?
A: Probably not. Certainly not froyo. But feel free to try and let me know. On stock rom-based builds, please look at somemadcaaant's awesome work at http://forum.xda-developers.com/showthread.php?t=1090785.
Q: T-Mobile LG G2x support?
A: Yes.
Q: What are the disadvantages?
A: Larger filesize. Takes longer to save (give it time to save before doing anything else with the phone). Potential issues with playback on phone.
Q: Does this work with 64 mb ram hack?
A: No. You can still use a high bitrate 720p mod for that kernel, though.
Q: It stutters after a few secs of recording or freezes once in a while, why is this?
A: Your phone/sdcard is having issues trying to keep up. Try a lower bitrate mod. If there is no lower, ask for one. I'm experimenting a little myself, trying to find a stable bitrate.
Q: If I open the Camera app and very quickly change to video I get a black screen?
A: Don't do that. I get the same bug on std. cm7 Camera app.
Q: Isn't it overkill with an FAQ for a camera mod?
A: Yes. But people kept asking the same questions last time I made a thread.
THX so much I will test it and report.
i would also add "touch to re-focus during video capture"(like in htc's) to the to-do list
Tegra 2 is some impressive hardware.... bitrate goes up crazy high. I'll add some different versions, but do people have any thoughts on what kind of bit rates they'd like to see?
Damn, I think maybe my sdcard cant keep up with the ultra high bit rates I'm testing. Starts stuttering after 10 sec. Maybe someone out there with a class 10 card?
When switching on video mode, i get a black screen and FC afterwards.
ranrick said:
When switching on video mode, i get a black screen and FC afterwards.
Click to expand...
Click to collapse
I purposely made my tweaks so code is first running when you actually start recording... If it's a new problem it's because of the settings file.
Tried restarting the app?
Work great for me on Kang today buid !
gregman26 said:
Work great for me on Kang today buid !
Click to expand...
Click to collapse
Great news.
LeJay said:
I purposely made my tweaks so code is first running when you actually start recording... If it's a new problem it's because of the settings file.
Tried restarting the app?
Click to expand...
Click to collapse
I reinstalled. Thereafter i was able to start it. But Recording doesn't work so far.It starts at 720P but when ending the recodring, I get a FC. 1080p keeps black screen and no FC and no recording. Maybe because of the 64MB RAM hack in the vorkKernal.
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
ranrick said:
I reinstalled. Thereafter i was able to start it. But Recording doesn't work so far.It starts at 720P but when ending the recodring, I get a FC. 1080p keeps black screen and no FC and no recording. Maybe because of the 64MB RAM hack in the vorkKernal.
Click to expand...
Click to collapse
Okay, so it officially doesn't work with the 64 mb ram hack. Not surprising. You can enable high bitrate 720p with some of my other mods.
TattooHtc said:
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
Click to expand...
Click to collapse
Isnt that the case with cm7 nightlies and 1080p recording?
Can someone up a vid?
TattooHtc said:
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
Click to expand...
Click to collapse
Hmm... I just recorded for 1 min straight with no issue. I do get similar issues on som2e of the higher bitrates I've been toying with(40mbps can make most sd cards cry). Does it start lagging as soon as you start recording?
I'm going to make higher and lower bitrate versions.
Works beautifully on the G2x as well. Thanks
@LeJay: you should contact arcee to include your mod in CM tree
TattooHtc said:
Thanks LeJay
But i have a bug.... The video is lagging(I think my Sd Card is Class 2), so i think it is because of the high bitrate. And sometimes after shooting a video the camera just freezes and i have to pull the battery..
LG O2x, Latest Kang, stock kernel.
Click to expand...
Click to collapse
Could you try the low bitrate mod?
Works grat! 40 sec of video went from 18mb to 99mb. Now that we need a fast memory isn't better to use the internal memory?
buch85 said:
@LeJay: you should contact arcee to include your mod in CM tree
Click to expand...
Click to collapse
Agreed.
LeJay, I also think that you should contact Ricardo (arcee) and see if he can merge you changes. He just changed from 1080 to 1088 the other day in the .xml file so we can record 1080p nativly. Kinda wierd that you have to set it to 1088?
The best thing would of course be if he could include all the different modes/profiles for us to freely choose:
"FPS: 15, 25, 30"
"Resolution: 1080p, 720p, ..."
"Bitrate: X, Y, Z"
"Sound: 44 Khz, ..."
etc... because I know my class 2 card can't keep up at the best options. Going to buy me a new one soon though.
Send him a message and see if he's interested. His todo list probably is long though....

[MOD][CAM] advanced video settings (CM7 only)

I've added some extra advanced settings for video recording. I'll add more as I have time.
It's experimental and might be buggy. I promise to try a little harder to have a stable version than I did last time I made a mod like this.
Source code:https://github.com/LeJay/Camera
Sorry, the source code is a bit of a mess . It's a fork of the CM7 nightly and is up to date.
apk and the correct zip is up.
Simply download the zip and flash it. It will replace the camera app in cm7. Whenever you update to the next nightly you'll have to re-flash.
Versions
-----Version 1.0 (current)-------
Features:
Video stabilization
Video manual focus (NOT continuously, sorry)
Video autofocus (NOT continuously, sorry)
Video touch to focus (NOT continuously, sorry)
Things that for strange reasons don't work:
Auto Exposure compensation doesnt work together with autofocus or touch to focus. I'm looking into it. It does work with manual focus, though.
------------------
FAQ:
Q: Sometimes video recording doesnt start when using auto focus.
A: If auto focus fails recording will not start. I might do something else in the future, but this is the setting for now.
TODO:
1)
Work around disabling of exposure. Eg. read focus level from logcat after auto focus and use manual focus instead.
2)Other camera settings:
Image stabilization, manual exposure compensation, timestamps (?), change contrast
Thanks for the hard work
Is it CM7 only?
crime_of_heart said:
Thanks for the hard work
Is it CM7 only?
Click to expand...
Click to collapse
Yea, sorry, forgot to mention that .
@lejay, great work. i expect to see a new commit with this soon ?
touch to focus in video mode is much desired, i believe.
can you also take a look at http://review.cyanogenmod.com/#change,6628 or http://forum.xda-developers.com/showpost.php?p=15955411&postcount=6954 ?
pastime1971 said:
@lejay, great work. i expect to see a new commit with this soon ?
touch to focus in video mode is much desired, i believe.
can you also take a look at http://review.cyanogenmod.com/#change,6628 or http://forum.xda-developers.com/showpost.php?p=15955411&postcount=6954 ?
Click to expand...
Click to collapse
Oh, yeah, I removed the code that checks if the preview is 720p. Zoom works fine, both volume and display menu.
EDIT: Actually, zoom behaves a little oddly, it jumps to 8x with double tap. Did I do that? wtf.
I feel auto exposure should get fixed before I sent it to nightly. Also, I get a headache figuring out how to correctly submit these things .
wow, thanks for the your tweak, really hope we can get continuous focus
LeJay said:
Oh, yeah, I removed the code that checks if the preview is 720p. Zoom works fine, both volume and display menu.
EDIT: Actually, zoom behaves a little oddly, it jumps to 8x with double tap. Did I do that? wtf.
I feel auto exposure should get fixed before I sent it to nightly. Also, I get a headache figuring out how to correctly submit these things .
Click to expand...
Click to collapse
no, i don't think you did it.
i never knew about the double tap zoom until yesterday, and it jumps between 1x and 8x (in cm). i don't think there is any code for this in app though. could it be libnvmm_camera.so ?
edit: do you get zoom working while recording at High (720p) ? (not changing it, but set it at 4x and start shooting, mine reverts to 1x)
pastime1971 said:
no, i don't think you did it.
i never knew about the double tap zoom until yesterday, and it jumps between 1x and 8x (in cm). i don't think there is any code for this in app though. could it be libnvmm_camera.so ?
edit: do you get zoom working while recording at High (720p) ? (not changing it, but set it at 4x and start shooting, mine reverts to 1x)
Click to expand...
Click to collapse
Its in videocamera if I remember correctly,. Zoomgesture something.
Right now zoom is working, but it has been buggy. Does it work if you zoom again and try recording?
Sent from my Optimus 2X using XDA App
LeJay said:
Its in videocamera if I remember correctly,. Zoomgesture something.
Right now zoom is working, but it has been buggy. Does it work if you zoom again and try recording?
Sent from my Optimus 2X using XDA App
Click to expand...
Click to collapse
i'll be damned.
yes, it works at the second time. (you are the man !!!)
legit mod! cant wait to give this a try
Thanks, works for me, except for some bugs, but this camera was buggy to begin with
Krusher1973 said:
Thanks, works for me, except for some bugs, but this camera was buggy to begin with
Click to expand...
Click to collapse
Heh, yeah, it is... Im doing a bit of refactoring, hopefully a cleanup and a bit of debugging will help.
When to update to the new version?
I really like the version that can make a focus in recording
waiting for updating!!~~~
Any news?

Different Camera Application

I find this video and on this optimus black has different camera app.This camera app has video editing tool i using europe open 10e rom and there is no video editing tool.How can i find this camera.apk?Or anyone has video editing tool can u share your camera.apk in system/app...
http://www.youtube.com/watch?v=4Hnqd5-XwBQ
First time I'm seeing those features, and I've watched a ton of video reviews about this phone both before and after purchasing it. Looks like the owner of the video is LG, as you can also see from the actual photos inside the phone of the LG Headquarters. This probably means that it's a developer preview or maybe the 2.3 Camera application
There's a german header on this video "This is not final Software, so apps and functions may vary"...
This feature is evident in the Australian version of the user guide.
I do not know whether it actually is in the roms for this region?
holy **** i want that!
i would flash back to stock just for that app.
the only reason preventing me is that the stock camera app is unable to disable the shutter sound, ass
yeomond said:
holy **** i want that!
i would flash back to stock just for that app.
the only reason preventing me is that the stock camera app is unable to disable the shutter sound, ass
Click to expand...
Click to collapse
To the best of my knowledge, there's no such stock camera application. If there would, we surely would have it in each port (which means one so far...).
here is a (german) thread about removing shutter sound. there you'll find a modded camera.apk.
http://www.handy-faq.de/forum/lg_p9..._video_record_sound_entfernen_abschalten.html
notmatched said:
here is a (german) thread about removing shutter sound. there you'll find a modded camera.apk.
http://www.handy-faq.de/forum/lg_p9..._video_record_sound_entfernen_abschalten.html
Click to expand...
Click to collapse
Man... we are not talking about camera without shutter sound! Please read the first post carefully.
The camera with removed shutter sound is here as well:
http://forum.xda-developers.com/showthread.php?t=1165936
Wow, if they had this feature for awhile and only decide to release it along side gingerbread as a 'new' feature, it would just be poor taste :O

[Q] CM7 Video Recording with LOW FPS

Yesterday i tried to mess a bit with the camera so i decided to try the "[MOD][CAM] [email protected]@20mbps + auto-focus on CM7" (http://forum.xda-developers.com/showthread.php?t=1094424)
I did installed with the recovery. but after that i get very low fps on my videos..i tried every single file with about the same outcome.. so i wanna know how i can bring the cm7 default camera.apk back?
currently my videos are at 9 frames/sec wich is really bad...
I am using CM7.1.0 stable my phone is the greek version of Optimus X2 (its the speed) P990
My SD card speed is class 4 and i am using the sd booster app for a better performance..not big difference tbh...so either i would like to know where i can find the original camera.apk for cm7 or what i can do to fix this.. thanks in advance!
EDIT: I dont have experience on modding..just started messing around with phone following various step by step guides..
I have managed to put the default camera.apk and media_profiles.xml from CM7.1.0
to my mobile. I noticed small difference a bit better i think lik 12fps...
I have to mention that the light in the room was average.. when I had more light the frames gone up to like 25-26 fps... (i did monitored it with fraps) i have to try to daylight now...
Btw is that a general issue for all in dark video takes or its something wrong with my phone and/or software?
Any suggestions?
I am quite sure it has something to do with cm7 camera app. Alot of people do complaint about the quality of cm7's camera app comparing to the stock LG camera app on stock roms.
It's not a fault of CM team, the camera library is closed source, so it is hard to understand how O2X camera works.
Since I use the camcorder, I had to leave CM7 waiting for a fix
sodade21 said:
Yesterday i tried to mess a bit with the camera so i decided to try the "[MOD][CAM] [email protected]@20mbps + auto-focus on CM7" (http://forum.xda-developers.com/showthread.php?t=1094424)
I did installed with the recovery. but after that i get very low fps on my videos..i tried every single file with about the same outcome.. so i wanna know how i can bring the cm7 default camera.apk back?
currently my videos are at 9 frames/sec wich is really bad...
I am using CM7.1.0 stable my phone is the greek version of Optimus X2 (its the speed) P990
My SD card speed is class 4 and i am using the sd booster app for a better performance..not big difference tbh...so either i would like to know where i can find the original camera.apk for cm7 or what i can do to fix this.. thanks in advance!
EDIT: I dont have experience on modding..just started messing around with phone following various step by step guides..
Click to expand...
Click to collapse
A library system/lib/libcamera.so was changed in newer CM releases and it features auto compensation, that's the reason why video sucks in low light compared to stock.
You can use a libcamera.so from older CM nightlies/stable releases. But make sure that you also copy Camera.apk from that version.
ktxed said:
A library system/lib/libcamera.so was changed in newer CM releases and it features auto compensation, that's the reason why video sucks in low light compared to stock.
You can use a libcamera.so from older CM nightlies/stable releases. But make sure that you also copy Camera.apk from that version.
Click to expand...
Click to collapse
oh i see.. I'll try that thank you!
hmm this is interesting.. i too am not so happy with the camera on CM7.2 temasek
there's no way to install the stock camera apk on CM roms?
what i dearly miss from that camera is the ability for faster timer shots (2s).. the fastest timer is 10s for CM7 =\

[Q] Corrupt photos if larger than 5 MB, using any camera app

Hi,
I'm unrooted, stock V10h.
After noticing that the stock camera photos are very compressed (8MP photos never go above 3MBs) with no option to change that, I installed Camera Zoom FX. All seemed good, but then on a sunny day after taking *lots* of photos, noticed I couldn't view some of them on the phone, although thumbnails were there. Came home, transferred to PC, opened and noticed that the ones the phone couldn't display were corrupted. All of them, had a gray bar at the bottom, some more, some less. Obviously the compressed jpg stream was broken after some point.
Thought it was Camera Zoom FX's problem, because this never happened with the native camera app. Uninstalled.
Still wanting better quality, installed Camera ICS. Great too. But same problem too (on some photos again).
Went on to install Camera MX. Same.
Finally narrowed it down to this:
if resulting photo is > 5MB (more precise: if > 5130 KB) then it's corrupted
(and that's why the native camera doesn't have this problem: there's no way to choose better JPG quality for it to make 5MB photos).
I thought: memory speed problem. But then again, the photos were saved in the phone internal memory. Internal memory is not supposed to have speed problems. Anyway, I tried saving to Class 6 and Class 10 SD card, and the results were the same.
Anyone know about this?
Also, please report if your >5MB pictures are fine (in case you shoot at that quality), and what app you use to take them.
Note: the problem seems to be there with jpg photos in general, irrespective of device. Here's a link of someone experiencing the same photo corruption on a normal camera (Casio EX-F1). The problem with my photos is exactly as in the photo he posts a bit later in the thread.
Ok noone seems to know anything about it.
Could someone at least please report if you can get photos equal to or above 5Mb in size, whatever camera app you are using and whether the photos are ok?
(to get that quality, you must select 8 megapixels and then the highest quality in some other setting. For example camera zoom fx and camera mx have a percentage slider (set it to 100), while camera ICS names the quality (select ultra). Also a steady shot and lots of light is needed for the pictures to go up to 5Mb even in these settings.)
EPa said:
Ok noone seems to know anything about it.
Could someone at least please report if you can get photos equal to or above 5Mb in size, whatever camera app you are using and whether the photos are ok?
(to get that quality, you must select 8 megapixels and then the highest quality in some other setting. For example camera zoom fx and camera mx have a percentage slider (set it to 100), while camera ICS names the quality (select ultra). Also a steady shot and lots of light is needed for the pictures to go up to 5Mb even in these settings.)
Click to expand...
Click to collapse
Just tested with Camera ICS.... Same issue as you. Photo was 5,266,434.00 bytes.
Using V10h Euro Open.
i had the same issue on deodexed ICS i had a week after purchase, and after i installed this mod:
http://forum.xda-developers.com/showthread.php?t=1855818
i tought the mod broke my camera, but i guess it was this bug/limit.
Thank you both for reporting. At least now we know it's an (LG implementation?) android bug.
Really annoying to me, as I would like to use the camera's full potential. Hope this gets fixed in the upcoming JB for 4X.
(although in order for something to be fixed, LG would have to know. And this problem surely hasn't received attention since it seems I am the first one to bring it up).
It would be interesting to see what would happen if someone with v20a tested this.
Yes indeed.
On another note, I also checked GeoCam and sometimes it gives an error (not enough memory or something). The photos that it saves with no problem are maximum < 5 Mb, so I assume it is the same problem. But this app demonstrates that there is a way for the programmer to know that during saving the photo something did not go as expected.
Where exactly the bug lies, is another matter.
EPa said:
Yes indeed.
On another note, I also checked GeoCam and sometimes it gives an error (not enough memory or something). The photos that it saves with no problem are maximum < 5 Mb, so I assume it is the same problem. But this app demonstrates that there is a way for the programmer to know that during saving the photo something did not go as expected.
Where exactly the bug lies, is another matter.
Click to expand...
Click to collapse
i might try the mod in official 4.1 when it's out and someone releases a deodexed version, just to check if it works on JB.
this is quite a strange problem we have on our hands, i did some search on google, and haven't found many similar problems.
Flying_Bear said:
i might try the mod in official 4.1 when it's out and someone releases a deodexed version, just to check if it works on JB.
Click to expand...
Click to collapse
I too am anxiously waiting for the official 4.1 and was hoping that it would not have this problem.. just wishful thinking..
i already know it a long time ago, and i asked about this at the camera MOD thread by ksekhar http://forum.xda-developers.com/showthread.php?t=1855818. but no one seems to bother
iceddeath said:
Ale-xs said:
Hello ksekhar. I found a problem in the LG firmware, it appears in your mod too.
In third-party programs (ICS camera+) and in your camera mod of the compression quality jpeg minimum, maximum file size.
In some conditions, such as the leaves in the sun, the size of the file begins to exceed 5 megabytes. Then the problems start.
This file is written to the error (broken jpeg file). I've been thinking why this is so and finally got it.
In your version, you just increase the compression quality to any situation the file size is not more than 4-5 MB.
Also, if you is not difficult, please do me a version (as we did earlier) which fixes only compression jpeg,
but the quality of compression should be a cross between the standard version and your version.
Or tell me how I myself can change the quality of compression.
For example (like photoshop - compression level from 0 to 12)
Original LG camera - compression 9
Your mod - compression 12
The required - compression 10.
Link to example of broken jpeg file: http://narod.ru/disk/61445464001.4b4c982386ce7c47b2214e33a90a25aa/bug_IMG_20120923_124127.jpg.html
Click to expand...
Click to collapse
i have this problem too
when photo taken exceeds 5MB.. it is broken...and it happened too often. any solutions?
Click to expand...
Click to collapse
Ok, that's bad...
For now, I check whether the thumbnail of the just taken photo appears correctly (inside the photo application). If not, it's a sign the photo has exceeded 5 mb. Then I go to settings, reduce the quality, reshoot.
Or, one can use Camera MX and set the quality slider to 90-95. Then the photos are better than stock camera, and they don't exceed 5 mb.
Since noone cares for this problem I can only hope the new firmware automagically hasn't got this problem. If it does.. we'll see then...
Bad news... Just updated to official V20a, and the same issue persists. a 5.02mb JPEG resulted in an image which was half ok, half greyed out and corrupt.
Only hope now a mod, or a custom ROM..
Ok, is there a way mother LG can be notified about this? (and don't tell me phone support in my country, they can only handle basic stuff. They won't understand what I'm talking about and respond like "use the official camera application"...)
Insomniac535 said:
Bad news... Just updated to official V20a, and the same issue persists. a 5.02mb JPEG resulted in an image which was half ok, half greyed out and corrupt.
Click to expand...
Click to collapse
thanks for the info.
yeah, my country doesn't even have proper support for LG devices. we could try mailing them?
I just noticed this problem yesterday. Is there any fix for this?
lm007 said:
I just noticed this problem yesterday. Is there any fix for this?
Click to expand...
Click to collapse
Not that I know of.
i have no idea why, but yesterday i took some pictures with my 4x (with the stock lg camera app!).
the most pictures had around 1,5-2,5mb , one hat 4,7mb and one 5,05..
the ->5mb pic is corrupt..
never saw this error on stock, im using stock camera app on my CM
Anyway, i reported this bug to CM on the 4X forum, lets see if they can help. would good if more people confirmed this bug on CM forum..
I have a little experience about this bug.
Last time I flashed google's camera 4.2 with photosphere, camera.tegra.so and libnvmm_camera.so (modded to disable denoise filter) and stock camera. The result was that wherever camera I used (stock, cm, google's) the pic were corrupted (taking photos in dark). Just few of them were OK.
Here are modded .so files - works with CM10.1 (made by me, if you want i can made thread for them):
http://db.tt/2Lfxuehq - camera.tegra.so pasted to /system/lib/hw
http://db.tt/LXdwvJUZ - libnvmm_camera.so pasted to /system/lib
Sth more I will say when I come from holidays.

Categories

Resources