Related
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....
While there are loads of random comments about camera apps for Cyanogenmod 7 they are all pretty old and don't seem to amount to an answer.
The camera app provided with Insanity 009 whilst not as good an interface as, say the one from Simply Honey (which I flashed on a friends phone) but it works fine except for video.
Yes it does record 720p but there are chops when the detail moves to much and therefore necessitates a higher bitrate. I am guessing the codecs are responsible for this and its a big ask for a phone anyway... But has anyone knowledge of a better movie camera app?
Is it possible to take the app from one rom's distro and insert it into another radically different one like cm7 as long as they are from a similar base like jvh - that way I could try the camera from Simply Honey for example
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
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 =\
Have only seen this in ICS and specifically mostly CM9, don't remember before that.
I was running imilka's port of the S2 branch of CM9 to the note and now the nightly build from xplodwild.
When I shoot video upto 480p the vid is covers the whole screen, but the moment I switch to 720 or 1080p it crops it by about 30% or so and even the output video is the same, which is quite weird.
Anyone else seen this and maybe knows of a fix, not too big a pain but would like this sorted, don't mind using 3rd party recording apps if that is the only fix.
Did try searching around but didn't find anything really relevant.
Sample video http://www.youtube.com/watch?v=mFTqz4fV-u8