yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] defcomg:
Some Users Requested ICS Camera to be ported to CM10

Here it Is .

Tested on P920 CM Should work on Any Rom ICS or Higher

CWM Zip Down BeLoW:good:

***********************************************************************

10th January 2013

***********************************************************************

LGECameraFC-Fix_1.zip

***********************************************************************

CM10/ICS

16th January 2013

***********************************************************************

cm10-lge-camera.zip

***********************************************************************

CM10.1

16th January 2013

***********************************************************************

cm10.1-lge-camera.zip

************************************

CameraZ.7z contains both CM10 + CM10.1 Version

Reason Zip's are getting corrupted if you get (bad) in cwn try this

************************************

***********************************************************************

MotoCam

***********************************************************************

This is a test Camera For Nvdia's CameraHal's params

16 Jan:

preview-format:yuv420p

picture-format:jfif

nv-image-stabilization:true

nv-edge-enhancement:50

nv-contrast:highest

jpeg-quality:100

nv-camera-renderer:on - not sure what it does if any of this params are usefull will add them to lge cam

----------------------------------------------------------------------------------------

To-do

Shuuter Sound

Capture Images while recording

ISO 800

----------------------------------------------------------------------------------------
​
[LG Optimus 2x] jhonjames09:
thanks for this!
[LG Optimus 2x] KillerbeeNL:
Ohhh man!! Thanks
[LG Optimus 2x] defcomg:
Thanx Will take a look later You're it is a missing lib kwr_mvoice-jni.so
[LG Optimus 2x] kissyoua:
Great work!!

Never had any reason to come back to stock ics:laugh:
[LG Optimus 2x] Andy HOT:
So voice doesn't work or what?
[LG Optimus 2x] pablo86ht:
FC here in CM10.1 latest nightly.
[LG Optimus 2x] black_mamba99:
There is a weird bug I noticed after flashing your camera on CM10(new bootloader)

I am on pengus ROM latest version with latest kernel

I uninstalled existing(ICS+ camera) from my phone before flashing the LGECamera.zip

the camera works as it should with constant 30fps(although no option to choose bitrate or video quality)

But when I turn screen on....brightness is suddenly increased.

brightness value in settings>display>brightness does not change

& when I go there,brightness returns to the defined value.But when i turn screen on again....same bug.

luckily I made a nandroid backup prior to flashing the zip...so I am back to normal.

I didnt notice the bug

But again when I flashed the zip file same bug occurs.

Anyone else getting this problem?
[LG Optimus 2x] defcomg:
Post Logact + Framework.jar + media_profile.xml from that rom

Whats your ro.product.model= on your build.prop its not LG-P990 that could be your issue as it on a Generic Profile Like i'am using on P920 as this camera uses Switches to activate and disable features. The Camera ramps up the brightness to full when you open it. Is you're device on auto brightness ? maybe it's unable to revert to Sensor set brightness.
[LG Optimus 2x] feav:
Very low bitrate: 720p=4Mb/s, 1080p=8Mb/s
[LG Optimus 2x] KillerbeeNL:
+1 from me ?
[LG Optimus 2x] defcomg:
Lol the P990 has so many CM10 Rom dont't know if all the media_profiles are the same provide me with media_profile.xml will see what i can do
[LG Optimus 2x] feav:
I think this app ignore media_profiles.xml See my media_profiles.xml in attachments.
[LG Optimus 2x] madhand1:
AWESOME Bro.. Keep up the good work.
[LG Optimus 2x] defcomg:
You Might be right as value/arrays contains bitrate if this anything like arccamera i will just find the method that feeds into framework and override it with a const :D
[LG Optimus 2x] C0D3N1N3R:
It has been a while since I saw a good picture with flash on my phone! Thanks! Pics without flash are better too! Panorama works! Awesome! :good:

Can you by any means try to make photo sphere work for our phone? I don't think it can happen but doesn't hurt to ask right? :P
[LG Optimus 2x] pablo86ht:
Sorry, my bad. Here you have the files.

Enviado desde mi Nexus 7 usando Tapatalk 2
[LG Optimus 2x] rugglez:
All working great here, including panaroma, on the pacman rom (CM10 based).

Thanks a lot!

For those wonder if this is bootloader dependent, no it isnt because the updater script in this mod uses busybox to mount system, i.e. it doesn't access the partition by partition number, so you can use this on both bootloaders :D
[LG Optimus 2x] aigaming:
That explains why when you change mediaprofiles file nothing changes;)

Great work man,now i can finally transfer to cm10 ;)
[LG Optimus 2x] Justray:
I read the first, second and third, actually the entire thread and only then I somewhat understood this:

Attached Files

File Type: zip	LGECameraFC-Fix_1.zip ====> Fixes a force close I think for 10.1... who knows :confused:

File Type: zip	cm10-lge-camera.zip ====> For CM10

File Type: zip	cm10.1-lge-camera.zip ====> For CM10.1 because they haven't made a flashable zip with both versions and auto install the right one

File Type: apk	MotCamera.apk ====> Experimental Camera, you don't want this unless you really want to try it

File Type: 7z	CamerZ.7z ====> :confused: who knows what's this sh*t?

File Type: ZooM-Live-shot-Lge.apk =====> This one has zoom and picture taking while recording video, again experimental

Any other files in the thread are slightly modded with bit-rate variants, you don't want this unless you're looking for a headache or the prefect highest bit-rate your phone can handle, the headaches come with low class micro SD cards (C4 and below, for 1080p high bit-rate 30fps you need a C10 or higher like U1 and pray your open apps don't slow down the camera).

That's so far what I could understand, but then again english is not my natural or I read too fast, you're welcome to correct me and I encourage you to.

And finally THANK YOU for the great work :victory:

:good: sorry I ran off flowers, only 8 per day, wait till tomorrow or I use my XDA app. :angel:
[LG Optimus 2x] dimedevil:
after installing CM10-LGE-Camera.zip, I cant make a video call on Google Talk.... Google Talk just crashed... is there any workaround for this?

Edit: after wandering around O2x XDA Forum, just found out that I have to restore the CM10 stock camera.tegra.so...
[LG Optimus 2x] Andy HOT:
U need to flash a gapps package with working video on gtalk..the normal one has a bug with it so it won't work..try looking for one in tonyp's rom thread..he has a nice gapps list;)
[LG Optimus 2x] Ximo F. Verde:
Well, this might not be the case. I did flash the GTalkTegraCM10 package some time ago, and gtalk was running fine. In the meantime i flashed the LG Camera for CM10 and i just noticed too that gtalk video has begun crashing again :( I tried to clear app's data and reflash the gtalk package but gtalk still crashes...

---------- Post added at 12:15 PM ---------- Previous post was at 12:06 PM ----------

What do you mean with 'restore the CM10 stock camera.tegra.so'?

EDIT2: No way i can make it run again.. GOD DAMMIT!!!

FINAL EDIT: You were right. After flashing the GTalk pacjage and LGcameraCM10, you have to replace the camera.tegra.so with the original found in CM10 rom.
[LG Optimus 2x] Andy HOT:
Any progress on getting zoom version in a full release?
[LG Optimus 2x] franky_z:
hey, the cm10 camera takes great pictures!!!

i´m on pengus cm10 rom now and the camera closes on low battery.

is this app or rom related? and if this is app related can you remove closing camera on low battery?

thanks again!
[LG Optimus 2x] aigaming:
This thread is not about cm10 cam:cool: it's about ics cam porting to cm10;)
[LG Optimus 2x] Andy HOT:
He was reffering to cm10 lge camera the name given by the dev for the ics camera ported to cm10..we all now what this thread is ab lol:))
[LG Optimus 2x] BS86:
the app does not even start if under 5% battery ;) it also did that on ICS, so it is app related, and i think it should stay that way, because you should not drain your battery under 5% regularly, and the battery would be gone in seconds with camera on
[LG Optimus 2x] franky_z:
AW: [MOD][Camera][ICS Camera For CM10]

thanks, the "camera-not-shut-down-when-battery-is-low"-feature was already in the gueste roms and I liked it.

you never know when the picture of your life comes along... ;)

dear agaiming, tank you for the information, you missunderstod me, I mean the ICS camera for Cm10 called CM10 camera from ICS.. :D:p;)
[LG Optimus 2x] derealrobert2:
Hhhaha i search for lg p690 and i guess this is the solution and i read all of comment here and hrrrr... is this compatible on lg p690? Heheh
[LG Optimus 2x] gabrielecif:
OFF TOPIC: anyone try to or share how to port lgmms.apk stock app to cm10?
[LG Optimus 2x] Andy HOT:
Why did u post here this offtopic question? Use general forum or q&a for them..
[LG Optimus 2x] Medizinmann:
AW: [MOD][Camera][ICS Camera For CM10]

Hi!

Any chance that we can get a mute version of the camera for cm10?

Tried to find the sound files - but no luck... :(
[LG Optimus 2x] apsheheer:
Any chance for a zip for 4.2.2
[LG Optimus 2x] vEget7:
+1 any news out there? :) i want to try photosphere and other great features of camera on 4.2..
[LG Optimus 2x] aigaming:
There is no photosphere option in ics cam ;)

Also ,photosphere will never work good on our phone couse of low ram ;)\

Also,there is a 4.2 cam that can be downloaded in the first op post and people reported that it's working

Cm 10.1 people,just go through few post's,people explained how to done it working ;)
[LG Optimus 2x] 60nine:
cm10.1 version works on 4.2.2. too (i tried on Temasek roms when he switched to 4.2.2.)

panorama worked as well (at least when i tried it a few times)
[LG Optimus 2x] rktdi:
Sv: [MOD][Camera][ICS Camera For CM10]

How to make this work with gtalk video chat? I get fc every time I try to make a video call...
[LG Optimus 2x] Kyrandialegend:
R: [MOD][Camera][ICS Camera For CM10]

We should ask to wfd , the author of gtalk fix , if it would ne possibile to make it works with ICS camera
[LG Optimus 2x] Ximo F. Verde:
For those that get fc on gtalk after installing the camera for ics mod on top of the modified GTalk for cm10, all you have to do is replace the camera.tegra.so file with the original cm10 file in system/lib/hw. No need to change permissions (at least i didnt have to).

EDIT: I guess OP could add this in the 1st post as well.
[LG Optimus 2x] Kyrandialegend:
thank You ! i'll try . We could ask to OP to put in the zip so it will be faster :)
[LG Optimus 2x] rktdi:
Sv: [MOD][Camera][ICS Camera For CM10]

A what?? I am sorry for my noobness, but how in the world do you do that?
[LG Optimus 2x] rktdi:
never mind, I figured it out - and it looks it is working - great, thank you!
[LG Optimus 2x] dimedevil:
Because the driver is modified, I just hope that some developers would make an app that could switch the camera.tegra.so automatically so we don't have to manually replace the file :)

eg. switch to GTalk Video mode or Hi Quality Camera mode
[LG Optimus 2x] tonyp:
Actually I think it should be possible to let both coexist by renaming the camera one and changing the reference to it within the apk :)
[LG Optimus 2x] dimedevil:
yes... actually that is what I do....

when I want to make a video call, i will restore the cm10 camera.tegra.so file by just renaming both files.... but i have to do it manually...
[LG Optimus 2x] apsheheer:
It force closes
[LG Optimus 2x] thewoZa:
Hi. I am getting really bad video drop outs with this mod. Sound keeps recording fine but video can stop completely for up to 3 or 4 seconds. This is on all resolutions (well 1080p, 720p and TV) and saving to internal or external memory makes no difference. I have a class 10 memory card with 15GB free...

CM10 version doesn't seem to exhibit this issue (although the rest of the quality is not so good)...

Any ideas?

Thanks

A
[LG Optimus 2x] Ashieboy™:
On my Pantech 820L CM10, it crashes when i switch ti Full HD 1080P, why?
[LG Optimus 2x] Rayman96:
Odp: [MOD][Camera][ICS Camera For CM10]
[LG Optimus 2x] deewhy:
How did you do it?

I can't seem to get it to work.

I copied camera.tegra.so into /system/lib/hw using ES File Explorer but GTalk video chat still doesn't work for me.
[LG Optimus 2x] Andy HOT:
U must flash the fixed gapps also, did u do it?
[LG Optimus 2x] deewhy:
Yeah, I flashed the GTalk Fix by wfd,

and then I flashed the LG ICS Camera

and then I copied camera.tegra.so into /system/lib/hw/
[LG Optimus 2x] yoavtabakman:
Take the camera.tegra.so and push it to the zip file before flashing it.
[LG Optimus 2x] deewhy:
Sorry, I don't really understand what you mean...

Did anybody find a solution to this issue?
[LG Optimus 2x] deewhy:
To anybody else having this issue,

I *think* I managed to get rid of it by turning on all animation and transition scales at Settings - Developer Options.
[LG Optimus 2x] deewhy:
How come when I change build.prop on my phone to GT-I9100, auto-focus no longer works and the mute shutter sound option appears?
[LG Optimus 2x] mrQQ:
hi,

the captured image button (lower right corner) does nothing, does not open the image..
[LG Optimus 2x] kaspar737:
Hey, I am on tonyp CM 10.1 I flashed CM 10.1 and the force close fix, but when I want to open it it still force closes. What should I do?
[LG Optimus 2x] ciarpame:
Same ROM, I installed just cm10.1-lge-camera and it's running fine.
[LG Optimus 2x] kaspar737:
Did you flash the force close fix too?
[LG Optimus 2x] franky_z:
Hi defcomg,

First of all: thank you for porting and modding the cams. P990 has a good camera and with your port it´s possible to use it again in cm10.:good:

Do you think it´s possible to port the cm7 camera or maybe the libs to cm10? In darkness is sometimes an over exposure (for me) with this cam and collours are sometime different in two photos of the same object with flash. Have to say, that I´m a snapshot junkie.:eek:

The cm7 cam (from Stefan Gündhör cm7 hybrid rom) gives really, really good results.

Thanks for your work!!!
[LG Optimus 2x] jobzsparrow:
which one i should install on CM10?
[LG Optimus 2x] Shyam Chauhan:
is it working for lg p690...??
[LG Optimus 2x] CVonV:
if you turn up the brightness/exposure.. it still takes the pic @ 0

this is on jb test 1 cm10.1
[LG Optimus 2x] black_mamba99:
build is P990

I haven't set auto brightness....the phone ramps up the brightness upon unlocking(not on camera itself) and stays like that.

brightness restores back to normal only when i access settings>display>brightness and fiddle with the values

the bug exist even if i set it to auto-brightness

this bug only happened after flashing the camera.zip....

after restoring nandroid backup...I dont have the bug then i flashed zip again to see whether it was causing prob....and again the bug appeared.
[LG Optimus 2x] defcomg:
Weird Anybody else have this issue
[LG Optimus 2x] feav:
Yes. I have it too. But I had this bug before, after flash latest Pengus77 kernel it disapeared. So maybe it is recovery or ubdate-script bug.

PS: just made wipe cache/dalvik and bug sometimes appears randomly when lock/unlock.
[LG Optimus 2x] CVonV:
so we shouldn't install this as it'll just be ignored and wait for fix to be hardcoded in from defcomg?
[LG Optimus 2x] defcomg:
i will try put out a version with higher bitrates ASAP
[LG Optimus 2x] defcomg:
Added test CameraApp.apk
[LG Optimus 2x] feav:
With new apk: 720p-660Kb/s, 1080p-1,7Mb/s. But you definately changed something )
[LG Optimus 2x] defcomg:
That is very weird as i did not set those bitrates

try this media profile try Clear Camera data but before you do that goto data/data/com.lge.camera/shared_prefs

Post back_camcorder.xml
[LG Optimus 2x] wfd:
On cm10 everything works good, on cm10.1 cam crashes.

Logcat: http://pastebin.com/411QgP7N
[LG Optimus 2x] CVonV:
yep confirmed on 10.1
[LG Optimus 2x] defcomg:
Okay i see CM10.1 Method is different

CM10

.method public abstract getVolumeList()[[COLOR="Red"]Landroid/os/Parcelable[/COLOR];
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
.end method

CM10.1

.method public abstract getVolumeList()[[COLOR="Red"]Landroid/os/storage/StorageVolume[/COLOR];
.annotation system Ldalvik/annotation/Throws;
value = {
Landroid/os/RemoteException;
}
.end annotation
.end method

Will Make CM10.1 Version

as for the Bitrate Issues must invetigate some more this app does not contain the setprofile method with gets data from media_profile.xml:cowboy:

Set P990 to P009 and try record a video what bitrate do you get?
[LG Optimus 2x] feav:
Here you are

Tried ro.product.model=LG-P009 but nothing changed, except added button to shot picture on record time.
[LG Optimus 2x] SREEPRAJAY:
Can I request you to make one for the Stock ICS too? or does this work on Stock? ;)

I am on DM Stock based ICS 1.2.1 ROM based on v30b sources.....

Hope this wont be difficult and stressful for you mate.

Thanks a lot
[LG Optimus 2x] tavoc:
Isnt it the LG ICS Cam, so it is included in stock
[LG Optimus 2x] wucinac:
with this camera gtalk video chat fc.
[LG Optimus 2x] wfd:
gtalk video always FC on cm10
[LG Optimus 2x] wucinac:
Not for me:). Only fc with this camera.
[LG Optimus 2x] jineeshmm:
Hi..defcomg

Please compile the V 30B camera app

(there is an option of "camera click" sound off mode)

V 30B camera app is attached
[LG Optimus 2x] wucinac:
tray this gapps:good::victory:
[LG Optimus 2x] cheveux_:
hey guys!

can anyone tell me how can i install this?

i see so many zip files here im getting confused:eek:

im using cm10

thanks!
[LG Optimus 2x] wfd:
Already tried. No video (fc), only audio call.
[LG Optimus 2x] aigaming:
Camera works nice on cm10 we just need more bitrates,right now they are lower then on stock ics;)
[LG Optimus 2x] defcomg:
The one i compiled was V30B Wierd when i run the App i see that option

FC-Fix_1

I Will attach this here not on main Page i Changed

<string-array name="star_video_size_extraInfos_bitrate">
<item>20000000</item>

1080p Should be 20mbps if it still Low i Will Just Make evrything 20mbps.
[LG Optimus 2x] feav:
Great Man! 1080p=17Mb/s, 720p=10Mb/s Thank you!
[LG Optimus 2x] defcomg:
Wonder why it cuts out @ 17mbps Will try Make it Higher in you're media_profile.xml what are these values

<VideoEncoderCap name="h264" enabled="true"
minBitRate="64000" [COLOR="Red"]maxBitRate[/COLOR]="120000000"
minFrameWidth="96" maxFrameWidth="1920"
minFrameHeight="96" maxFrameHeight="1920"
minFrameRate="15" [COLOR="Red"]maxFrameRate[/COLOR]="120" />

I added 60 fps and 90fps to the NvCamera not sure what the driver caps it @ might need kernel dev anyway post the video properties like this

Need Suggestions on the BitrateS for 1080p 720p 480p i Don't wanna make some Crazy bitrate like i did on my Where 2min Videos Take 500mb :eek:
[LG Optimus 2x] aigaming:
I think that should be fine bitrates,in cm7 we had bitrates to 30k but that was 2 much for most of the sd cards;)

Think anything to 20mbs is totally ok and cards should catch that for long recording;)

ps. Did you moded pic quality(compression) also or only video?Tnx for everything you do on our camera,you made me trasnfer to cm10 ;)
[LG Optimus 2x] feav:
I think bitrates now is ideal: 1080p=17Mb/s, 720p=10Mb/s, 480p=6,7Mb/s But Audio bitrate is too high = 192kbits/s, i prefer for audio 96kbits/s

And one more query: can you add shot button when recording video (i have seen it when changed 990 to 920 in build.prop). And also I have found that with 920 in build.prop autofocus is enabled in video mode.

PS: with 920 in build.prop I can't record 1080p and also no voice command option in menu. Can we add all missed options?
[LG Optimus 2x] aigaming:
Ok i flashed new fixed zip and i get 720 4mbit and 1080 10mbit?Tried also clearing camera data;)

What i did wrong in comperison to feav?Tnx

edit: You didnt include media profiles file in zip maybe that's the key?

Feav can you post your media profiles file so i can try with that?Tnx
[LG Optimus 2x] feav:
Here you are
[LG Optimus 2x] aigaming:
Tnx but still the same :(

Anybody else having same problem like me?
[LG Optimus 2x] feav:
Do you use Array_Changed_bitrate-CameraApp.rar ?
[LG Optimus 2x] defcomg:
http://xdaforums.com/showpost.php?p=36581928&postcount=43

Copy that to system/app chmod 644 / rw-r-r will make new Flashable Zip

By Default on all apps Jpeg Quality is set to 99%
[LG Optimus 2x] silverkin:
On cm10 from pengus77 1080p have a 19MBit bitrate.

tapatalked with LG P990
[LG Optimus 2x] defcomg:
Okay that mean bitarate depends on the rom:good::good:

EDIT:

Test Version

Changes:

FrameRate Range from 30-30 to 90-30

FHD4NVIDIA from 24 to 30

Raised FHD Bitrate to 25Mbps
[LG Optimus 2x] aigaming:
I have pengus version 2,tried everything i can think off,manually pushed files in zip,restarted camera app,pushed your mediaprofiles, and always same rates;)

Yes i used that new modified apk and still same...

I will have to reinstall rom from fresh couse people say it works for them..Thank you

edit: tried your newest zip,720 goes 18mbit and 1080 just stops app and then force closes(i think its 2 much bitrate)
[LG Optimus 2x] defcomg:
Could i have the logacat
[LG Optimus 2x] aigaming:
Yes indeed m8,i will post it tomorrow morning couse i am off to bed now;)Tnx
[LG Optimus 2x] aigaming:
As promissed,here is logcat of freezing 1080 cam;)
[LG Optimus 2x] nicholaschw:
Mod added to library
[LG Optimus 2x] Shadowchaz:
Silly question how do I know what mb p s I'm getting?
[LG Optimus 2x] Rayman96:
lol,

by checking video properties...

Sent from LG 2X using Tapatalk 3 Beta
[LG Optimus 2x] intruder91:
I cannot open camera aplication. I am on cm 10.1.
[LG Optimus 2x] defcomg:
Get mxplayer then open video properties

Added CM10.1 Test Version

Added Time Machine Mode

Bitrates

720p @ 15k

1080p@25k

480p@6.7k

Might add HDR not sure if it will Use the Olaworks lib or the tegra one

In The APK Nvidia Fps is set to 24fps for 1080p by default no one has reported what fps they get
[LG Optimus 2x] malaquita:
Me too.

I install LGECameraFC-Fix_1.zip and then change CameraApp.apk, clear data but i cant open camera.

How can i install this in cm10.1?

Thx.
[LG Optimus 2x] defcomg:
read up dl the CM10.1 version copy it to system/app rw-r-r then reboot tell me if it still fc then submit logcat
[LG Optimus 2x] natalya:
This mod compared to stock CM10 camera.. Is there huge difference in picture/video quality? :)
[LG Optimus 2x] ppino:
Tried the cm10.1 version, but fc. Will try to provide a log cat later.
[LG Optimus 2x] ppino:
Here it is...
[LG Optimus 2x] defcomg:
based on the Logcat it might be the Time Machine Function i added Can CM10 Users Confirm the new version also FC?

CM10.1 User Change Model to P880 or any random string see if it fc also
[LG Optimus 2x] Shadowchaz:
Thanks for that I can see I'm getting 500kb s. Do I need to paste the media profile anywhere or should it have installed automatically?

Sorry if answered already I have looked through the thread...
[LG Optimus 2x] Ajsh:
Yup it does FC. If you want logcat I can provid in a sec

Edit: attached lolcat. Sorry if it's incomplete or there's lots of junk in it:P
[LG Optimus 2x] defcomg:
try this
[LG Optimus 2x] malaquita:
Works in 10.1 change to LG-P880. Thanks. Waiting for New version

Enviado desde mi LG-P880 usando Tapatalk 2
[LG Optimus 2x] Rayman96:
can you make flashable zip with newest camera mod for cm10? :)

Sent from LG 2X using Tapatalk 3 Beta
[LG Optimus 2x] Ajsh:
I use cm10! Sorry didnt provide that piece of information...
[LG Optimus 2x] defcomg:
will do after i get feedback on cm10.1
[LG Optimus 2x] malaquita:
New CM10.1CameraAppv2.rar dont work. Camera dont show in app.

With the previous version of Camera.apk for cm10.1 changing model to random string(p920,etc) work perfect.

Thx.
[LG Optimus 2x] defcomg:
oh crap i uploaded wrong version my bad
[LG Optimus 2x] wfd:
This one the same, system can't find manifest or something in logcat