yashsingh1/xdaforums huggingface dataset:
[Galaxy S II Themes and Apps] clownage:
Additional info:

If you want to get rid of the shutter sound, create a file in /data called local.prop and add the line "ro.camera.sound.forced=0" and restart your phone. This removes both the shutter sound and the focus sound when your phone is on silent, but keeps the sound when it's not on silent. - llBlackenedll

Ive got a noob question, if I'm using "Yaffs Explorer" how to i create the local.prop file in the /data folder? and where to I put in the line "ro.camera.sound.forced=0"

and also do I include the quotation marks? sorry for the simple question, still very new to this :/
[Galaxy S II Themes and Apps] Assadbeigi`:
Hi.

First of all thank you for your good job.

My SGS2 is rooted but I could not rename camera.apk

Help me please.
[Galaxy S II Themes and Apps] maysider:
thanks for the camera!!

to Potatoman: please, could you incorporate a network base tagging when gps is not launched.....would it be possible?

gps is not so necessary....a network base localisation is enough and doesn't drain battery

thank you!
[Galaxy S II Themes and Apps] maysider:
probably a problem with setting of your file system manager....first time I had to find it out too :)
[Galaxy S II Themes and Apps] TheMan42:
Can't seem to get the Infuse 4G to like this apk - followed all instructions - I'm running Infused 2.0.4 (Android 2.3.3)

Any hope for future support on the Infuse? I would love to use this.
[Galaxy S II Themes and Apps] Potatoman:
Sorry ive been neglecting support a bit- it's because I'm working on v2. I seem to have managed to get the hardware button mod working thanks to hyperX telling me which file it was in. I'm working on the Panorama resolution fix now, then hope to fix the focusing issue.

To those of you who have posted with problems, please use the search function to look through this thread, chances are I've already posted a fix or explained how to do it earlier. I'm not just ignoring you guys, I just hate repeating myself :p
[Galaxy S II Themes and Apps] :
Use root explorer like everyone else
[Galaxy S II Themes and Apps] DrSlump76:
Hi, i would like to bring to your attention a problem that may be fixed with the samsung galaxy s2 camera:

In two words, in low light conditions (for example indoor videos), the framerate goes down to 10/15fps when autofocusing. It's possible to temporary fix the problem by setting the exposure value to -2. It's still possible to see some frame dropping but its more accettable. The payback is a darker video.

My thoughts:

The filming tecnique uses the preview mode of the fujitsu isp, wich is capable of 1080P previewing. The same tecnique is used in preview mode used during photo preview. Using the camera in photo mode, in low light conditions, the iso is automatically gained up, so the framerate goes automatically down. Using a fixed iso200, the framerate is good and the video brightness is good too.

It's opinion to me that for focusing pourposes, the sensor gain is raised up while filming and refocusing. In low light condition the gain is already raised up so, while focusing, the gain is raised again to a value that makes the framerate unacceptable.

It's opinion to me that if there is a method to cut the max gain to an iso200 value equivalent, the problem should be resolved.

Have you any idea how to modify the camera app to obtain this? May i give an hand in this task?

Thankyou very much
[Galaxy S II Themes and Apps] bgx:
+1 for that! Would be great and I would donate for this!
[Galaxy S II Themes and Apps] JernejL:
In another thread we discussed a related autofocus recording issue and an alternative, to disable autofocus during video recording completely.

If video autofocus is disabled, then the framerate problem you have will be gone aswell. (the other thread: http://xdaforums.com/showthread.php?t=1218670 )
[Galaxy S II Themes and Apps] DrSlump76:
Disabling autofocus is a way to remove the problem.. bot we remove the autofocus too. During daylight filming viedos are ok with autofocus, it's during low light only that the autofocus has something wrong. But not all the sgs2 are affected by the problem, so i'm trying to understand where is the problem.

As i wrote, if it could be possible to cut out the max sensor gain during autofocusing, the problem could be easily bypassed.

The fujitsu m5mo isp seems to be very complex to program, maybe that samsung's engeeners does not know it very well yet.

Here i found the m5mo-ls core drivers:

http://lxr.free-electrons.com/source/drivers/media/video/m5mols
[Galaxy S II Themes and Apps] JernejL:
I have never seen continous autofocus during video recording function correctly on sgs2. I can show you plenty of completely normal outside scenes with plenty of lighting where autofocus would just continously blur the video, it simply never works properly for me.
[Galaxy S II Themes and Apps] DrSlump76:
Well yes, the refocusing system is not ideal: it gives to the video an "heart pumping" effect :o
[Galaxy S II Themes and Apps] eitama:
I myself am also very disappointed with the auto-focus quality.

It just doesn't work. Even on stills, I sometimes have to tap a few times to get the correct focus.
[Galaxy S II Themes and Apps] pspilot:
I double that and I also find the macro option not working. Doesn't make a difference for me, the min. distance is alway the same (about 20cm). The weird thing is, if I go closer, say 10cm, I can shortly see a sharp image while the AF is searching, but it never locks there - crap.
[Galaxy S II Themes and Apps] eitama:
I know exactly what you mean, for that reason, i have vignette. It's macro mode works perfect. and they improved the Software UI lots.
[Galaxy S II Themes and Apps] pspilot:
Thanks, I'll have a look at it.
[Galaxy S II Themes and Apps] JernejL:
Can you explain what vignette is?
[Galaxy S II Themes and Apps] pspilot:
You have 3 choices:

[ ] - A very funny tasting salad dressing

[ ] - Old fashioned female name from the Canary islands

[ ] - An Adrioid camera app EVERYONE can find on the market

:rolleyes:.

BTW, the macro choice works better there indeed. Have to test more.
[Galaxy S II Themes and Apps] mccune:
It's a camera application. You can find it in the Market.

Sent from an Android driven device
[Galaxy S II Themes and Apps] Potatoman:
Quick development update in the firstpost. Also, I added a donate link, partly because people keep asking for one, and partly because I'm about to go off to university after being accepted at Cardiff University to study ComputerScience (WOO!) and my student loan doesn't even cover the accommodation fees, so I need every penny I can get right now.

Any donations are VERY appreciated, and will motivate me to work on this even more! Plus, you'll get good karma points for helping the poor ;)

- Potatoman
[Galaxy S II Themes and Apps] JernejL:
I don't want to hold you hostage.. but i'll donate for the video autofocus fix.. PLEASE! :(
[Galaxy S II Themes and Apps] dipe7987:
On my phone, the lag autofocus problem is only Appears if I record the 720p mode...if I set below 720p or 1080p (without increasing exposure value), the video running smoothly, even it autofocus...but theres no lag :)
[Galaxy S II Themes and Apps] takato23:
it would be nice to improve capture speed of photos... it's really slow.. my atrix or vibrant takes 10 times faster pictures :S
[Galaxy S II Themes and Apps] rawfa:
I don't want to threadjack/deviate the main focus of this thread, but since this is camera related it would really be awesome to develop a hack to decrease the compression of the still photos (raw would be even better), hence increasing the quality. So that no one will be bothered by the change of subject I've started a thread for this right http://xdaforums.com/showthread.php?p=16880074#post16880074 .
[Galaxy S II Themes and Apps] JGS2:
Is there anyway of modifying it so that the brightness doesn't change when opening the camera app.

It bugs the hell out of me as I have my brightness on low and the stock camera app increases the brightness when you open it.

Was wondering if it was something you could modify please.

Thanks :)
[Galaxy S II Themes and Apps] mihaicp:
@potatoman please tell me if any of this is possible:

1. to save photos in .raw format and not jpeg

2. to film at 720/1080@60fps and not @30fps

ps:Thank you for trying to make the camera app a lot better than stock! ;)
[Galaxy S II Themes and Apps] rockky:
Gulp: How do you 'unrar' in root explorer?
[Galaxy S II Themes and Apps] rawfa:
This would be incredible!
[Galaxy S II Themes and Apps] skiflyer:
Potatoman, is it possible to improve the quality of the microphone to the iphone's one? Would be really a pleasure to have a great audio experience when recording live concerts, f.e. :)

Transmitted from the galaxy "S2" using a Lite'ning ;)
[Galaxy S II Themes and Apps] celiocalves:
I have the same problem and theres a trick to solve that:

- set exposure to -2

but with exposure in -2 the video quality is very poor, so i don't know if it's a hardware problem or a software problem...

@Potatoman

What do you think about this? Hardware or software? :confused:
[Galaxy S II Themes and Apps] DrSlump76:
Hi, it's opinion to me that the raw format is useless with this sensor. The sensor is an OmniVision OmniBSI coupled with a Fujitsu Milbeaut M-5MO. The m-5mo is basically a dual core arm based dsp and image processor that elaborates the raw data of the sensor and gives the final result to the main soc. It comunicates via i2c bus and mipi interface. All drivers are open source and can be downloaded.

I was not able to find the complete fujitsu datasheets, but i think that raw image format is not supported. The raw data from sensor is always processed by the m-5mo, it's impossible to have untouched data from the sensor as it's possible to do with large dlsr camera cmos sensors.

Even if it could be possible to modify the sip firmware to support the raw format, i think that the resulting image quality would be really low.
[Galaxy S II Themes and Apps] DrSlump76:
Hi the fujitsu m-5mo does not support 60fps @ 720P:

+static const struct m5mols_resolution m5mols_resolutions[] = {

+	/* monitor size */

+	{ 0x01, M5MOLS_RES_MON, 128, 96 },	/* SUB-QCIF */

+	{ 0x03, M5MOLS_RES_MON, 160, 120 },	/* QQVGA */

+	{ 0x05, M5MOLS_RES_MON, 176, 144 },	/* QCIF */

+	{ 0x06, M5MOLS_RES_MON, 176, 176 },	/* 176*176 */

+	{ 0x08, M5MOLS_RES_MON, 240, 320 },	/* 1 QVGA */

+	{ 0x09, M5MOLS_RES_MON, 320, 240 },	/* QVGA */

+	{ 0x0c, M5MOLS_RES_MON, 240, 400 },	/* l WQVGA */

+	{ 0x0d, M5MOLS_RES_MON, 400, 240 },	/* WQVGA */

+	{ 0x0e, M5MOLS_RES_MON, 352, 288 },	/* CIF */

+	{ 0x13, M5MOLS_RES_MON, 480, 360 },	/* 480*360 */

+	{ 0x15, M5MOLS_RES_MON, 640, 360 },	/* qHD */

+	{ 0x17, M5MOLS_RES_MON, 640, 480 },	/* VGA */

+	{ 0x18, M5MOLS_RES_MON, 720, 480 },	/* 720x480 */

+	{ 0x1a, M5MOLS_RES_MON, 800, 480 },	/* WVGA */

+	{ 0x1f, M5MOLS_RES_MON, 800, 600 },	/* SVGA */

+	{ 0x21, M5MOLS_RES_MON, 1280, 720 },	/* HD */

+	{ 0x25, M5MOLS_RES_MON, 1920, 1080 },	/* 1080p */

+	{ 0x29, M5MOLS_RES_MON, 3264, 2448 },	/* 8M (2.63fps@3264*2448) */

+	{ 0x30, M5MOLS_RES_MON, 320, 240 },	/* 60fps for slow motion */

+	{ 0x31, M5MOLS_RES_MON, 320, 240 },	/* 120fps for slow motion */

+	{ 0x39, M5MOLS_RES_MON, 800, 602 },	/* AHS_MON debug */

+};

+

+/* M5MOLS default FPS */

+static const struct v4l2_fract default_fps = {

+	.numerator	= 1,

+	.denominator	= M5MOLS_FPS_AUTO,

+};

+

+static u8 m5mols_reg_fps[] = {

+	[M5MOLS_FPS_AUTO]	= 0x01,

+	[M5MOLS_FPS_10]	= 0x05,

+	[M5MOLS_FPS_12]	= 0x04,

+	[M5MOLS_FPS_15]	= 0x03,

+	[M5MOLS_FPS_20]	= 0x08,

+	[M5MOLS_FPS_21]	= 0x09,

+	[M5MOLS_FPS_22]	= 0x0a,

+	[M5MOLS_FPS_23]	= 0x0b,

+	[M5MOLS_FPS_24]	= 0x07,

+	[M5MOLS_FPS_30]	= 0x02,

+};

Source:

http://www.spinics.net/lists/linux-media/msg28311.html

EDIT:

This is the omnivision main site. The sensors seems to be capable to achieve the 720P@60fps transfer rate... i don't know were is the bottleneck..

http://www.ovt.com/products/category.php?id=12
[Galaxy S II Themes and Apps] DrSlump76:
It's related to the main isp firmware, impossible to final user to be modified.
[Galaxy S II Themes and Apps] DrSlump76:
It could be hardware, becouse the problem is not present in all sold devices.

The strange behaviour is that during autofocus the sensor gain seems to be to high, lowering the preview fps. Since the autofocus is made by the main isp, it can be a sensor related problem.

Try this camera app:

http://it.androidzoom.com/android_applications/photography/lgcamerapro_nqaj.html

You can set the exposure to -4 and you can raise to 20Mbps the video and modify the audio quality parameters, even to 320Kbps,48KHz. It does not solve the camera problem, but it can save the settings so that you must not set the exposure value every time you open the camera app.

By the way, the fact that 3rd part camera apps have the same stuttering and low fps problems, demostrates that it's an hardware related problem.
[Galaxy S II Themes and Apps] celiocalves:
I have noticed 1 more problem with the camera:

-A pink spot on the center at low light (http://www.youtube.com/watch?v=GoI0PZnjcfA)

I very disappointed with that issue. I was thinking in replace my S 2 with a new one because a have it only for 2 days, but many people are saying that issue are present in all devices. I don't know what to do :(:(
[Galaxy S II Themes and Apps] pspilot:
Hey, 320x240 @ 120fps would be funny too! Are these modes accessable for the user anyhow?
[Galaxy S II Themes and Apps] Potatoman:
I actually tested that app a while ago before I made this mod, it doesnt seem to apply the settings you put in. Recording video at a new audio bitrate would either forceclose the app or record it in the same poor quality as the standard app. Unless it has been updated for the SGS2 I'd be wary before buying the full version, try the free version first so you dont blow £3 like i did :P

Side note, thanks for the really insightful info youve been posting, it's quite interesting and helpful :)
[Galaxy S II Themes and Apps] Potatoman:
At least in my device it certainly isn't present, though many people seem to experience it. You can always try replacing it, its under warranty so it's not like you have anything to lose, just backup the phone first and restore it when the new one arrives :)
[Galaxy S II Themes and Apps] Potatoman:
The problem with modifying such modes is that every change requires its own APK at the moment, hence the "Soundless/Highbit/Normal" versions, since I'm not yet capable enough to add a new menu option which would allow the user to select such a mode specifically. That's why I'm basing the new features and modes of v2 around things which the majority of people would want to use. Once I get good enough at modding to add new menu items and modes in a manner that allows the user to select them, I'll incorporate a range of specific features that you guys suggest in the thread, because it won't interfere with normal functionality, and just release them under one APK. But until then, I won't be doing anything like that I'm afraid :)
[Galaxy S II Themes and Apps] celiocalves:
thanks!

But one more question, the autoFocus breaks are a problem of firmware or hardware?

Do you have this problem?
[Galaxy S II Themes and Apps] Potatoman:
the RAR files have to be unrar'ed on a computer, i dont think there is a RAR client for android yet. Bad move of mine in hindsight, next time ill upload in ZIP format instead. Sorry!
[Galaxy S II Themes and Apps] pspilot:
Thanks for the explanation and no worries, the 120fps mode would be more a toy, nothing urgent. I love what you did so far, keep up the good work!
[Galaxy S II Themes and Apps] Potatoman:
I think it's either in the encoding capability of the chipset or the throughput of the storage medium, since even the stock bitrate for 720p in the apk is quite high, doubling the FPS may be too much write load for the internal storage to handle.

Or it's just a matter of power, I mean encoding 720p video at 60fps even on a home PC in decent quality is a demanding task.

Just my two cents though :)
[Galaxy S II Themes and Apps] DrSlump76:
Yes, trought the drivers calls i've joust copied here.
[Galaxy S II Themes and Apps] DrSlump76:
I've tested the app too, try the new relase, it applies the settings and the difference is really noticeable!

I've olso understood why the samsung coders decided to limit the sampling rate: noise. If you raise the sampling rate, you will notice much more white noise coming from the mic. This may be due to low quality adc and opamps.
[Galaxy S II Themes and Apps] DrSlump76:
Or maybe that the sensor used for the sgs2 is the first gen omniBSI... who knows..
[Galaxy S II Themes and Apps] Teio:
Try unrar from market...
[Galaxy S II Themes and Apps] maysider:
hi....just small idea but could be the perfect way for really greater possibilities (HDR).......could you implement choosing dominant object by touch so the brightness adjusts according the dominant object even if a majority of the picture is bright?
[Galaxy S II Themes and Apps] DrSlump76:
I've replaced 4 units, and all of them had the yellowish tint on the left, and the pinkspot. Unfortunately i could not verify the framedrop on the other units, becouse i discovered it casually, filming indoor @ my home. I can try bringing my unit to a samsung repair center, but i would be very disappointed to wait for a month for an unit that could be exactly the same :(

By the way, an OT:

This device's quality is far under the expectations compared to the price.
[Galaxy S II Themes and Apps] mihaicp:
The camera(5Mpxl) of my ex-phone (Omnia 2 - i8000) had a menu to film the video in slow motion. Since that phone had a 800MHz CPU and 256Mb Ram, I thought that for SGS2 this task will be a piece of cake. To be honest I even thought that this feature will also be available in SGS2 (in stock rom/camera apk)...but I was wrong :(

I add that the video was not of a great quality but the effect was pretty good and smooth. I don't know the frame rate or the *x* pixels size of the video, but I'll search my phone in the house and when I'll find it I'll shoot a video and see the fps and the pixel size of it...

Anyway, thank you for your interest in making a better camera application. Keep up the good work! :D
[Galaxy S II Themes and Apps] soyef:
Latest version of root explorer supports extraction of .rar files, just long press on the archive and the choose the extract option
[Galaxy S II Themes and Apps] JernejL:
From what i recall, android sadly lacks the API functionality, to make raw photography possible.
[Galaxy S II Themes and Apps] :
Archidroid, androzip pro... Etc.. Etc..

Search for rar in market and you will see lots of apps to unrar and unzip
[Galaxy S II Themes and Apps] norpan111:
Installed this because of annoying fps drops while recording. I see no difference after installing :( it stills lag thr crap out of me. Im at work so searching from phone was a little messy. Could someone share a tought about this? Im recording in 720 mostly.
[Galaxy S II Themes and Apps] DrSlump76:
Camera.apk does not fix the camera behaviour, new firmware or new hardware is needed for this purpose.
[Galaxy S II Themes and Apps] rafalense:
I'm back

[YOUTUBE]XlpUizuJHaE[/YOUTUBE]

:)
[Galaxy S II Themes and Apps] Potatoman:
The problem with this theory is an app called TapeRecorder. Using it to record at 48000hz works just fine- it's why I thought the setting would work fine for the camcorder as well. Either it's recording from another mic or the encoder settings I used were wrong. I'm working on noise reduction in the new version by swapping mic's, though at the moment the only solution for noise reduction is to drop sampling to 32000hz or lower.
[Galaxy S II Themes and Apps] norpan111:
Aw freaking crap :'(
[Galaxy S II Themes and Apps] beston94:
So umm without rushing you or anything. What does it take to be a tester? or maybe when will it be out for the public?
[Galaxy S II Themes and Apps] reggaemanu:
Sweeet ! Keep up your good job, this updated version will be a really great mod.
[Galaxy S II Themes and Apps] celiocalves:
This new version will have the continious focus disabled?
[Galaxy S II Themes and Apps] Potatoman:
That's what i'm trying to do right now, though the apk is being a right ***** about it, it either works then fc's or doesnt work at all -.-' :rolleyes:
[Galaxy S II Themes and Apps] celiocalves:
If it works maybe we don't have no more problems with "fps drops" because I think the autoFocus + lowLight = low fps /breaks...
[Galaxy S II Themes and Apps] DrSlump76:
In the picture, the render statistics with a low light video taken by my sgs2. As you can notice, the jitter is increased (and strange) during autofocus:

http://img32.imageshack.us/img32/2335/sgs2lowlightvideostatis.jpg

I think that it's important to understand why the autofocus does not introduce frame drops in low light conditions to all the sgs2 devices. I'm startig to think to an hardware failure, becouse of the high sensor gain applied during the autofocus that makes the image to be more brighter than the normal.
[Galaxy S II Themes and Apps] celiocalves:
I still had hope that this was the problem, but I see it is not: (

So I am disappointed ...
[Galaxy S II Themes and Apps] starbucks2010:
Please don't spam this thread. You tried already once and your thread has been closed (http://xdaforums.com/showthread.php?t=1234575). How can you ask people to donate you by promising an application that you don't have it?
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
Yeah, that con man should get a job!!!

How mi****ble u gotta be to try to cheat people...
[Galaxy S II Themes and Apps] soyef:
Errr...you do know that this mod was originally based off his work, there's even credits for him in the OP

the guy made a mistake, hes already shown he's capable of making the MOD, so no need to doubt him and lets stay on topic from now....
[Galaxy S II Themes and Apps] NoOneCanHelpMe:
based off his work?? what?? just a post to galaxy s forums... NVM... when u start asking for donations, but have not given anything...it smells rly fishy!!!

we need to be aware of cheaters, dont we... thank u Starbucks2010 for letting us know :)
[Galaxy S II Themes and Apps] comnam90:
Anyone know if you need bothHyperX-'s SuperHighBit mod and potatomans mod? or does potato's mod include these video modes?
[Galaxy S II Themes and Apps] norpan111:
People seems to think donations is a kind of payment method where you get to be the customer and expect or even demand stuff from the receiver. It's just a token of appreciation, if you feel someone did not do thing you appreciate or are grateful of. Don't donate?
[Galaxy S II Themes and Apps] starbucks2010:
Beta testing

Hey Potatoman,

Is it possible to release a beta version of KH3 just for testing?

Thank you.
[Galaxy S II Themes and Apps] Potatoman:
I don't like beta releases, until I get it working consistently on my phone without it forceclosing I won't be releasing it. I assure you as soon i can figure out the cause I will release it before working on any new functionality.

Also, please keep the thread on topic to discussion about my mod and the SGS2 camera only.
[Galaxy S II Themes and Apps] celiocalves:
I think we have to put "-2" on exposure forever at lowlight conditions :(
[Galaxy S II Themes and Apps] JernejL:
That simply doesn't work, i tried it in room and outside recording, nothing helps my SGS2 camera recording focusing.
[Galaxy S II Themes and Apps] celiocalves:
Not help on focusing, but with "-2" exposure you never have fps drops...works with my S 2
[Galaxy S II Themes and Apps] comnam90:
will this current one work with kh3?
[Galaxy S II Themes and Apps] DrSlump76:
There is another option: bring the device to a samsung repair center. They should repair the unit to work as it should..
[Galaxy S II Themes and Apps] Potatoman:
Yeah, the current one works fine, the one I'm still working on is the one that force closes all the time. All the unstable versions were taken down a while ago :)