yashsingh1/xdaforums huggingface dataset:
[LG Optimus 2x] pastime1971:
which one did you install ?

those in the first post ?

if you did, as lejay explains, those 1088p mod is obsolete now that it has been merged to cm nightly.

as of today, lejay's FullHDmod_*1.0-signed.zip in the first post still has the old mod (Camera.apk), and it will overwrite cm's Camera.apk and you lose lots of recent changes.

enabling 1088p@30fps is in the Camera.apk.

the actual bitrate settings are in the "/system/etc/media_profiles.xml"

you can get the zip files of bitrates only at http://xdaforums.com/showpost.php?p=15290203&postcount=197

it is my understanding that (video) autofocus mod is experimental, and cm is implementing focus in video mode, or something. (not too sure)
[LG Optimus 2x] jblah:
hmm...i read that it was merged with cm nightly somewhere but..for some reason it was still recording at 720p for HD (30m) until i installed the files from the first post. am i doing something wrong or is there is a setting somewhere that I need to set?
[LG Optimus 2x] pastime1971:
it is very odd that you get 720p for HD.

try to "adb pull /system/etc/media_profiles.xml ." or use text editor to look at that file.

you should find (around line 82)

<EncoderProfile quality="hd" fileFormat="mp4" duration="30">

<Video codec="h264"

bitRate="12000000"

width="1920"

height="1088"

frameRate="30" />

<Audio codec="aac"

bitRate="128000"

sampleRate="44100"

channels="2" />

</EncoderProfile>

that is your HD setting (1920x1088@30fps,12Mbps)

if you find something similar, then maybe that setting is not available for some reason, and app is downgrading to the next available (720p?)
[LG Optimus 2x] pastime1971:
i noticed that you are on t-mobile us.

do you have O2X or G2X ?

for G2X, there seems to be a library issue, but can be fixed. LeJay made a zip for the library at http://xdaforums.com/showpost.php?p=15247947&postcount=165
[LG Optimus 2x] jblah:
Thanks! yes i'm on the g2x. i'll give that a try. but i guess i'll have to wait for the auto-focus. unless--it was my flashing that messed it up. i'll just reinstall CM7 tonight and do the flash from above. Thanks again appreciate all your help.
[LG Optimus 2x] pastime1971:
you are very welcome.

reflashing cm7 + libcam.zip should give you 1920x1088p@30fps,12Mbps

edit /system/etc/media_profiles.xml and reboot, if you want 20Mbps.

if you want more than 20Mbps, you also need to edit VideoEncoderCap > maxBitRate in that file as well.

edit: i'd wipe dalvik-cache if anything behaves... but maybe that's just me.
[LG Optimus 2x] jblah:
got it to work. Thank you for all your help. i guess only thing left now is the autofocus. hopefully they will have something for that sooner than later :) thanks again.
[LG Optimus 2x] Krusher1973:
Any chance to get the MIUI camera app stablilisation option? :D
[LG Optimus 2x] LeJay:
Yea, enabling stabilization should be easy. Does it make a real difference?
[LG Optimus 2x] Krusher1973:
Actually it does. Less hand fibration (phone camera's are too light weight) equals more stable pictures. Be it digital solved or not :D
[LG Optimus 2x] LeJay:
How does it work? Is it measuring the acceleration or?

There's a setting that could enable some build-in stabilization for both video and still, but I'm not sure that's what you're talking about?

Enabling the build-in stabilization is just a matter of flipping a switch.
[LG Optimus 2x] biasquez:
i think that stabilization can be enabled with these parameters:

nv-image-stabilization-values=on

nv-video-stabilization-values=on

moreover, i suggest to edit value about contrast to improve image quality and try to remove mist effect in photos (possible values are: nv-contrast-values=high, nv-contrast=high)
[LG Optimus 2x] LeJay:
Yes, I was just not sure if that was what he was referring to.

I find that the mist is because of dirt on the camera lens, removing backcover solves it mostly for me. I'm in the process of making a mod that makes all these settings available so people can play around with it.
[LG Optimus 2x] biasquez:
i know that the mist is because of dirt on the camera lens, i already cleaned my lense..according to me, image photo is better with more contrast and more saturation like vivid...

p.s. all these settings will be available on cm7 nightly?

in latest cm7 nightly, zoom video isn't available too...
[LG Optimus 2x] LeJay:
I might go through trying to get some of this added to nightly at some point. For now, it's a separate mod. I'll add contrast changes tomorrow.

http://xdaforums.com/showthread.php?t=1185129
[LG Optimus 2x] pastime1971:
see http://xdaforums.com/showpost.php?p=15955411&postcount=6954 and http://review.cyanogenmod.com/#change,6628 for why zoom menu disappears.

basically, it is because HD 30 fps commit uses preview of 1280x720 in video mode, and in cm, 720p does NOT support zoom, and camera app disables zoom menu completely. (you can still zoom with volume button though)
[LG Optimus 2x] LeJay:
Isn't it easier just to remove the code in CameraSettings.java that disables zoom when the preview is 1280x720? I don't think that code is relevant to O2X.
[LG Optimus 2x] pastime1971:
i think i tested it before, and it truly didn't support zoom at 720p.

but i could be wrong...

easy to test it though.

edit: beside, setting preview to 800x480 doesn't lose anything, either... like i said, i submitted this commit, but it was never reviewed, and i had to drop it.
[LG Optimus 2x] LeJay:
In the code before the 30fps FHD change, the preview was set to 1600x1200, so if zoom worked there, I'm sure it will work as fine at 720p.

800x480 is fine as well, and probably very slightly easier on the hardware/battery.
[LG Optimus 2x] pastime1971:
i thought 1600x1200 reverts FHD 30 fps to 15 fps ?

edit: was it explicitly set to 1600x1200 before ? or is it just default by libnvmm_camera.so ?
[LG Optimus 2x] LeJay:
It does. I meant before that change was made the preview was 1600x1200 and zooming was working (I assume).

EDIT: No, in the code it was explicitly set to 3264x2448 by some bad coding (no offense to whoever did it), which is not support as a preview resolution, so the driver threw an error and defaulted to 1600x1200.
[LG Optimus 2x] pastime1971:
oh yeah.

it did.

720p preview removes the zoom menu, as it is reported not supporting zoom, even though the actual recording resolution supports it.

480p preview restores the zoom menu, and that's why i submitted that commit.

one drawback is zoom menu appears at HD [correction: High not HD] settting (720p) as preview is 480p. as soon as recording starts, zoom is set back to 1x. but i figured it is no big deal.

edit: it is somewhat weird though. i remember that when preview was set 720p, menu disappeared, but volume button zoom still worked... does that mean 720p in p990 does support zoom ? i will have to test it again.
[LG Optimus 2x] LeJay:
HD setting is 1088p. If it sets back to 1x then it's pretty useless, right?

I get that it goes back 1x for the first recording, but if I zoom again and record, it works fine. Clearly a bit of debugging is needed.
[LG Optimus 2x] pastime1971:
i meant High (720p). sorry. (corrected above)
[LG Optimus 2x] LeJay:
Ah, now it makes sense.

Anyway, I should sleep. European timezone and all :).

btw. do you know how to access all of the logcat from within an app? Nvidia writes the result of autofocus to the logcat and seems to be the only way of getting the focus value out.
[LG Optimus 2x] pastime1971:
haha.. got ya.. we can continue later.

and sorry, i don't. (i'm pretty noobie when it comes to android)
[LG Optimus 2x] pastime1971:
zoom in 720p seems to work by commenting out the source.

but somehow, selecting High doesn't change preview. (it records 720p though.)

edit: correction: zoom is reverted to 1x as soon as recording starts, even after commenting it out.
[LG Optimus 2x] Ancalagon_ZA:
What FPS does the latest CM7 nightly use for HD video (1080p and 720p)?

Also what bitrates does it use?
[LG Optimus 2x] LeJay:
30fps.

12/6 mbps for 1080p/720p.

You can read, and change(!), it in /etc/mediaprofiles.xml
[LG Optimus 2x] Ancalagon_ZA:
Thanks! Will have to decide whether I want the higher bitrate then.

EDIT: How do I edit the file? I copied it to my internal SD card and edited it on my PC. But I cant copy it back, even using the terminal and su. Any ideas? Can I edit it in place?

I upped the HD bitrate to 18, the high bit rate to 9, and added a new profile, web, with a bitrate of 4 and res of 720x480 (also MP4 with AAC).

EDIT: Managed to get it. When I used adb push to put that new profile on, I couldnt boot anymore. I had to reflash 92 without wiping data for it to work again. Then I tried again, this time I only changed the bitrate of high and hd and did not try to add a web profile. pushed it with ADB and it worked fine. Where do all the other profiles that I see come from? I mean, there is a youtube profile, but I dont see that in media_profiles.xml
[LG Optimus 2x] Notorious544d:
What are the bugs when choosing the autofocus option?
[LG Optimus 2x] pathaniya:
Can I use any of these mods on a MIUI roms? Am on Jan-Willem3 MIUI rom.

http://xdaforums.com/showthread.php?t=1050645
[LG Optimus 2x] jacoslav:
Is any chance to works continous autofocus in our lg 2x?

I really want to finally sell my phone i buy sgs2.
[LG Optimus 2x] Notorious544d:
There is but apparently it's still buggy. But what exactly are the bugs?
[LG Optimus 2x] _Vegas:
waiting for updating~~~:rolleyes:
[LG Optimus 2x] selami023:
dude works this mod with miui roadrunner(cm7 camera included) edition?

I hope so^^

selami023
[LG Optimus 2x] CryptKilla:
This camera is working on cm7?

Which one do you sugest?

Does it have date automaticaly on pictures?
[LG Optimus 2x] Wing_Zero85:
doesn't work as it should.

With cm7 7.1 stable, fps locked at 12.
[LG Optimus 2x] s3nr1:
How about the nightlies:
[LG Optimus 2x] edren:
thank you!!

works great on CM7.1 for optimus 2X
[LG Optimus 2x] CryptKilla:
Any camera mod that have time stamp on pictures?

Sent from my Tapatalk | www.androidhr.isgreat.org
[LG Optimus 2x] montresor60:
Just a thought but have you considered making a nandroid backup, flashing CM7and the camera mod and, errr... seeing for yourself? 15 minutes should do it.

Let us know how it goes.
[LG Optimus 2x] vinylakos:
Working well on miui 1.11.18 with cyanogen 7 camera 27 to 30 fps

Also what video format is better 3gp,mp4,m4a ????

edit

on still camera video takes up to 30 fps when moving the camera the video goes like 13 to 17(max) fps ....
[LG Optimus 2x] xtrustkillx:
Is continuous aufocus development abandoned in this mod?
[LG Optimus 2x] fuxmen:
On my Latest nightly Video recording doesn't work at all... low,mid,high. When i click record nothing happen, only freeze of screen and after 10s get FC of camera :(
[LG Optimus 2x] Gaku86:
is this mod working on miui?
[LG Optimus 2x] jefbeck:
cm7 only
[LG Optimus 2x] alysiper:
Hello,

I've installed CM7 on my O2X (p990) and now i face the same issue that my SGS has when i've had installed CM7 builds : laggy when low light recording.

This mod will fix some of the laggy recording?

Can i use this mod on latest Kang build (CM7.2)?

Is there an alternative to record video in a acceptable parameters?

What other camera are you using ('cause i've tried many cameras from the market and all of them record approx the same)?
[LG Optimus 2x] maxesxp:
i havnt noticed any lag in low light conditions with my cm7 on my g2x.. what verion on cm7 r u using and what settings are you using in the camera?

and there arnt very many video cameras in the market but the best one for taking pictures is definitly camera 360
[LG Optimus 2x] alysiper:
I'm using the latest kang Cm7.2 build (p204-50).

So you're lucky if you don't have lag.

The settings are the default.
[LG Optimus 2x] maxesxp:
hmm i dont know im not a camera expert so i wont be much help :o hopefully someone else will help you sorry!
[LG Optimus 2x] Soulj4h:
I'm sorry to resurrect this thread, but when I record in HD the video is laggy and shaky. Is it because of continuous autofocus? Does increasing the bit rate help? I'm using temasek's CM7 Kang builds. Thanks.
[LG Optimus 2x] cmahendra:
These mods are updated on 5th July 2011. Aren't they outdated? I hope there could be more latest camera.apk and more improved and bugless supporting xml files somewhere made by new devs. I somewhere saw AndyCP camera mod but I dont know when it was released. Will checkout once again by searching.

Anyone knows newest best camera apps for CM7?:confused:
[LG Optimus 2x] maxesxp:
camera 360 gives best quality pictures, but cannot record video cm7 stock camera comes in second. iv ran a few tests and this is what i found
[LG Optimus 2x] afpapa:
On Temasek thread there is an updated camera, ported from LG stock+30fps hack.

It works great for me!

Credits got to Kostja_V (post)
[LG Optimus 2x] bmw-m-power:
any chance getting this to htc hd2 (ICS+CM9) too? :D
[LG Optimus 2x] ivica86:
Gr8 mod, thanks a lot
[LG Optimus 2x] LeJay:
LoL, it's been like a year. Are you seriously running this?
[LG Optimus 2x] Lovrium:
Epic!:D
[LG Optimus 2x] anjo88:
witch one is best to use with teamseek cm7?
[LG Optimus 2x] Buccio:
Can you update/resume this amazing work lejay?? :)
[LG Optimus 2x] LeJay:
The CM took the 1080p@30fps change into their release. If you want to increase the bitrate, you just have to change /etc/mediaprofiles.XML. (You might have to reboot the phone for the change to take effect). It will literally let you take it to 60mbps and beyond, but the hardware can't handle it(it stutters).

It does slightly make me drool to think about what is possible on Tegra 3, or even 4.

Anyway, I finished my (completely unrelated to this) phd and have gone backpacking in southeast asia. I feel like my next phone is an android, so it's not impossible I'll join CM in improving their camera app (which was severely lacking the last time I looked), when I figure out what to do with my life.

EDIT: This is about Android in general:

Oh, yeah, one thing I'd love to do, which none of the skins seems to be doing(and stock neither). You know the function where it takes multiple pictures in rapid succession? I'd love to have the software automatically figure out which of the pictures have the least blur (these things can be calculated). This might seem like a tiny thing, but people are lazy as hell, when it comes to photography and could make a significant change for day to day usage. The truth is that I probably just like the mathematical challange of comparing blur among different pictures (this is an active research area). All in all, there's a lot of fascinating math to be done in this area... Just look at 808 pureview.
[LG Optimus 2x] panzerpig:
Are there any cameramods for optimus 2x that features continuos autofocus? I saw that this one implemented it, but buggy..
[LG Optimus 2x] jasjeev4:
Would this make any sense with CM 10?
[LG Optimus 2x] scorpio1991:
I thik this tread and mod is dead, but I still not found anything else better. Or someone would advice to us. Using CM7 latest nighties.
[LG Optimus 2x] rmrajm1:
camera mod for ICS please........:D
[LG Optimus 2x] EEngineer:
Does this mod only affect the stock CM7 Nightly camera, or does it affect other cameras as well?

I'm using LG Camera and it has additional settings not on the stock camera, like slow motion.
[LG Optimus 2x] aMpeX:
That's because 1088 is a multiple of 16 whereas 1080 isn't. As far as I can remember its connected to Mod16 algorithms which pack 16x16 blocks of image data together for storage/transmission.
[LG Optimus 2x] LeJay:
I know, as much as I enjoy CM, the camera app needs some serious love. It does require someone who has the time(not me) to sit down and do the coding.

As you said, he seem to have figured out the 1088-fix himself. I actually don't have the source code for the Camera app fix right here, but I'll pm him tomorrow about it. Would get it off my hands :).
[LG Optimus 2x] mastermindx85:
Just tried hdmi out and stutters every 30 sec
[LG Optimus 2x] LeJay:
Yikes, didn't even think about hdmi out. Good point, should find settings where this is functional.

What bitrate did you use?
[LG Optimus 2x] ermacwins:
Can you do a so we can same bitrate as LG stock camera? The output is too big
[LG Optimus 2x] LeJay:
Yes, it is up.
[LG Optimus 2x] ermacwins:
Thanks, now if only I stayed on cm7
[LG Optimus 2x] LeJay:
Time travel mod is up later this week ;).
[LG Optimus 2x] ermacwins:
rofl, im coming back to cm7 though the video and piv lighting was crap last time I used it, darker compared to stock. How is the lighting in your mod?
[LG Optimus 2x] somemadcaaant:
Oh man this is awesome, well done!

@ sibbor has some great ideas for future mods plus if we could figure out video autofocus that will bring this phone to the top, even if the CM boys can't merg your work we will still have 30fps here.

-smc
[LG Optimus 2x] LeJay:
Thx. It was driving me a little crazy in the end... :p

I did manage to get it to do autofocus just prior to video recording, but it was very unstable so I removed it again.

Auto focus while recording, like continues autofocus, seems a bit harder. The camera object (as in java object) is locked to the media recorder when recording, so I can't change the focus in code... And nvidia doesn't seem to have any support for it in their libs.

Having the ability to change focus prior to shooting would be a start, though.
[LG Optimus 2x] dondavis007:
Is It posible to get a 720p 8-10 mb with the still picture hack? Great for us with 64 hack or slower sd.

Thank you for your work!
[LG Optimus 2x] LeJay:
Yes, it's up. Just use the 'high' setting for 10 mbps.
[LG Optimus 2x] dondavis007:
Wonderful, thanks1
[LG Optimus 2x] LeJay:
60 mbps video up... Can't help being a little impressed with tegra 2 - even if recording does start stuttering very quickly.

http://www.youtube.com/watch?v=u4Ch7gEVVgY
[LG Optimus 2x] LeJay:
Autofocus is a go (albit buggy).

http://www.youtube.com/watch?v=IeRgfaZPy7A
[LG Optimus 2x] ranrick:
great job! :D
[LG Optimus 2x] Renegade_Rulez:
Flashed :)

Lets test and see how it works!

does it auto-focus once when recording?

it does not seem to work for me...
[LG Optimus 2x] Imperticus:
Is the FullHDmod_LG 1.0 LG camera for CM7 or is it for LG ROMs?
[LG Optimus 2x] xilw3r:
darn dude, so .... each frame in this is worth 2mb of data... thats pretty much like picture quality, only in movement... jesus christ man :D
[LG Optimus 2x] antoniouslj:
All of them are for CM7 only. I'm pretty sure the LG part of that one just corresponds to the LG Camera bitrates found in the stock rom. In other words, he just matched the quality from the LG Camera.
[LG Optimus 2x] LeJay:
To be honest, I don't know much about cameras... Below I'm dumping all the possible settings there are for the camera. There is no manual.

Those that end with "values" are lists of possible settings and the others are current setting.

If anyone knows this stuff and sees something interesting, let me know.

----------------------O2X Camera Param dump--------------------------

nv-video-stabilization-values=off,on;rotation-values=0,90,180,270;zoom=0;nv-flip-mode-values=off,vertical,horizontal,both;zoom-supported=true;whitebalance=auto;scene-mode=auto;jpeg-quality=100;nv-exif-model=p999bn;camera-sensor-values=0,1;preview-format-values=yuv420i,yuv420sp;rotation=0;jpeg-thumbnail-quality=90;preview-format=yuv420sp;video-size-values=176x144,320x240,352x288,640x480,720x480,720x576,1280x720;nv-picture-iso-values=auto,100,200,400,800;preview-size=800x480;focal-length=4.49;nv-contrast-values=lowest,low,normal,high,highest;nv-flip-mode=off;nv-manual-focus-values=0-100;nv-manual-focus=10;flash-mode-values=off,on,auto,torch;preview-frame-rate-values=5,7,10,12,15,20,24,25,30;arc-camera=-1;preview-frame-rate=30;focus-mode-values=auto,infinity,macro,fixed,manual;nv-zoom-step=0.5;jpeg-thumbnail-width=320;video-size=1920x1088;scene-mode-values=auto,action,portrait,landscape,beach,candlelight,fireworks,night,night-portrait,party,snow,sports,steadyphoto,sunset,theatre,barcode;jpeg-thumbnail-size-values=0x0,320x240;nv-image-stabilization-values=off,on;zoom-ratios=100,125,150,175,200,225,250,275,300,325,350,375,400,425,450,475,500,525,550,575,600,625,650,675,700,725,750,775,800;nv-mode-hint=video;preview-size-values=176x144,320x240,352x288,480x480,640x360,640x480,720x480,720x576,800x448,800x480,1280x720,1600x1200;picture-size-values=320x240,480x480,640x480,800x480,1024x768,1280x960,1600x1200,2048x1536,2560x1920,3264x2448;nv-picture-iso=auto;min-exposure-compensation=-10;antibanding=60hz;vertical-view-angle=50.100;nv-continuous-zoom-step-values=1,0.5,0.25;horizontal-view-angle=65.300;nv-timestamp-mode-values=off,on;nv-burst-picture-count=1;brightness=0-200;nv-mode-hint-values=no-hint,still,video;jpeg-thumbnail-height=240;smooth-zoom-supported=true;focus-mode=auto;nv-burst-picture-count-values=0,1,3,6,9;nv-sensor-mode=0x0x0;nv-areas-to-focus=0;camera-sensor=0;picture-format-values=jpeg,jfif,exif;nv-video-stabilization=off;nv-image-stabilization=off;max-exposure-compensation=10;exposure-compensation=0;exposure-compensation-step=0.3;nv-strobing-torch=off,on;flash-mode=off;effect-values=mono,negative,none,posterize,sepia,solarize,nv-emboss,nv-vivid,nv-blue,nv-negative-sepia;nv-exif-make=LG Electronics;picture-size=3264x2448;max-zoom=28;effect=none;whitebalance-values=auto,incandescent,fluorescent,warm-fluorescent,daylight,cloudy,shade,twilight;picture-format=jpeg;nv-timestamp-mode=off;nv-sensor-mode-values=0x0x0,1632x1224x30,3264x2448x15;nv-contrast=normal;nv-zoom-speed=99;nv-max-areas-to-focus=800;antibanding-values=off,auto,50hz,60hz

----------------------------------------------------------------------
[LG Optimus 2x] h1o:
Autofocusss ... greattt

But for another rom?
[LG Optimus 2x] asci:
@LeJay

I'm on cm #31 and I have installed your alpha 1.1 with autofocus. I tried to take a video but there was no autofocus. How is it supposed to work? Do I have to enable something?

Thx.
[LG Optimus 2x] LeJay:
It should work. I have a newer version though, I'll try that one... Understand it's very experimental for now. .
[LG Optimus 2x] asci:
It doesn't on mine. Can you post the last one?
[LG Optimus 2x] LeJay:
Try Autofocus1.1-signed.zip
[LG Optimus 2x] Renegade_Rulez:
The Autofocus 1.1 works fine for me.

It only does focus just before recording but it does what it should do :)

Touch to focus or continuous focus would be great though.
[LG Optimus 2x] ermacwins:
Anyway to get rid of the widescreen? OR is it possible to have the LG camera on cm7 with some dirty hacks?
[LG Optimus 2x] PYCON:
Sorry but I've not understood how to flash the zip file ( and what zip file )... :confused::confused::confused:
[LG Optimus 2x] petyo.tsanov:
Flash this zip via cwm recovery.
[LG Optimus 2x] PYCON:
Ya of course... :rolleyes: But how ? Such a rom ( install zip from sd card ) or an update ( install update... ) :confused:

ANd again, what file ??? Full low, mid, high... ?? :confused:
[LG Optimus 2x] LeJay:
If you're running cm7, downloading and opening it through your phones browser should get rom mananger to ask to install it for you.

Or you can download it to your sd card and use the install from zip function i cwm.

The do basically the same, just with different bitrates as listed in the post. Again, as written, I suggest mid as 17mbps gives pretty good video quality without stuttering while recording (at least for me). If you've installed one and wants to try another one, maybe higher bitrate, you simply install the new one on top. Will not cause any issues.
[LG Optimus 2x] traxxus:
The light exposure doesn't work with autofocus mod.

Its fixed to the light of the video-capture-start.
[LG Optimus 2x] LeJay:
I.e. I know :)
[LG Optimus 2x] traxxus:
Oh ok, sorry :)
[LG Optimus 2x] geirbergmann:
the sound in videorecording is much much lower than stock? Hard to hear what I say...
[LG Optimus 2x] LeJay:
I think that would be a cm7 issue, as I don't touch anything with sound... But interesting still. I'll take a look.
[LG Optimus 2x] MoreYummy:
how long can you record it at 17Mbps?
[LG Optimus 2x] LeJay:
Think the longest I've done is around 10 mins. Stopped it myself.