yashsingh1/xdaforums huggingface dataset:
[G4 General] blake_spector:
Hey, I've got a quick question.. I want to experiment with ND filters and long exposures - would it be possible to let the camera expose shots for even longer than 30 seconds?

Thanks, and keep up the good work!!
[G4 General] Ramsey:
You should have seen the G2. It was watercolor at its best lol

Concerning the G4, I'd love to tone down sharpness a tad.
[G4 General] One Twelve:
Which one is the G4 ?

If someone can post a comparison of two shots here at full resolution it would be easier to see this.

At high iso its going to be there regardless raw or not.
[G4 General] sdfsdfsfs:
how to turn off denoise in freedcam?

you have to choose cam2api first?
[G4 General] troopii:
no its not possible that way. its locked to that specific exposure time. but defcomg wrote theoretical part already to expand it

but we can get 30frames per sec at full size then stack the images with renderscript. that would produce it simliar

i dont have the g4 myself. but i try to get the shots i did.

high iso gets always worse^^

yep you must choose api2.

then you see in options wavelet denoise.

with api1 it is yet very limited(need framework.jar to get latest cameraimplementaion from lg, let see what they now did^^)
[G4 General] Ramsey:
I uploaded the whole framework folder to defcomg a few posts back. Here's the link: https://app.box.com/s/o9zt4lkcd15emvwdjuus5amgnjwsagyk

Does that help?
[G4 General] blake_spector:
thank you for your reply, i'm not sure wether or not we have a misunderstanding here... (if so, i'm sorry, and blame it on language barrier.. english isn't my first language!) i wasn't asking for more frames per second (video) but rather single photo exposure time! right now, the software lets you open up the shutter for 30 seconds max... i'm curious if thats just a software limitation, thus perhaps allowing for even longer exposure times with some sparkly magic added to the software by you guys ^^ or not.

again, thanks a lot in any case!
[G4 General] defcomg:
We understand what you mean the 30 seems to be hardocded into the hal which shouldnt be hard to modfify however it maybe limited else where such as in libmmcamera_imx234.so

what [MENTION=5128617]troopii[/MENTION] meant is somthing like this https://youtu.be/cCTKOOCwAbo

what it does is set exposure to like one second then starts merging the frames it does well in simulating an nd filter without physically attaching one ie image number 4 http://bbs.nubia.cn/thread-537243-1-2.html
[G4 General] blake_spector:
Okay, now I'm starting to get it.... thanks for the insight!! - simulating a ND filter that way is really really clever! Oo

You guys rock! No doubt!

I still wouldn't be mad if there was a way to trick the camera into taking longer exposure shots 'the hard way'. ;)

Cant wait to see how this topic evolves!
[G4 General] One Twelve:
This pair looks like the simulated nd filter.

F22, 25.6s

f22, 30.6s :eek:

The K zoom also allows thes very high apertures in manual, always wondered what they were for. now i know.

almost like a double exposure. Nice idea.

Hmm, is there a nd applied here ? nope, it does not work in the traditional sense to tone down highlights.
[G4 General] troopii:
Freedcam has a burstmode in manual settings. With that you can create yet longer exposures. Set exposuretime to 30sec and set burst to two images you get 1min. But you have to stack images later.
[G4 General] sdfsdfsfs:
is it possible in manual mode to apply noise reduction similar to that in auto mode?
[G4 General] Ramsey:
What will that do btw? I haven't tried it yet. I don't want to mess too much with stock files. I'm just waiting for the noise reduction to be returned in auto mode but to keep NR off in manual :D. any luck getting a button to work?
[G4 General] One Twelve:
yes, from what i understood.

thing is with the mod you then loose the NR in auto.
[G4 General] xdabbeb:
I don't own the device, but people have run the same app to check

The Nexus 5 does not use the same sensor, however...imx179 vs imx135 in G2/G3/GFlex2. Also, if you're looking to explore the G4's cam2 capabilities, I'd highly recommend using freedcam to do so. [MENTION=5128617]troopii[/MENTION] and [MENTION=377973]defcomg[/MENTION] have done more than most there.

RE: Base ISO...I looked quickly at the sample photos referenced before and didn't immediately see obvious bit depth reduction. Given how close they looked (other than noise, etc), I tend to believe the analog stage was operating under the same parameters and the differences we're seeing are post-A/D (curve remapping, etc). The strange mult throws another wrench in...has anyone tried the modified versions?
[G4 General] defcomg:
I think you right about the iso, I think what happens with iso is that it half's the shutter speed then uses tone curve to bring highlights under control but analog gain is the same between iso 100 and 50. What makes me wonder tho is why bother add it to manual menu in raw mode.
[G4 General] sdfsdfsfs:
i wonder why you can not change exposure with touch to screen.

For example....if you have a bright sky in the background, touching the sky in the screen does not alter the exposure.

In every other camera if you touch the sky in the screen, it will expose the sky correctly but the rest of the scene will be dark.

In G4....this is not possible.
[G4 General] Ramsey:
Mine does that, not sure why yours doesn't.. I touch with my finger where I want and it will change exposure.

Works perfect.

Not every phone has that, trust me. Galaxy phones don't.
[G4 General] rick09:
Works fine for me too!

Sent from my VS986
[G4 General] defcomg:
Using VTS Studio it's been acting strange since updating to Win10 at the moment it only lets me decompile apk's without touching res folder so what i did instead is attach nr off to lg-iso param so basically you need to enter manual mode and maybe move iso slider in any direction for nr to be turned off.

also could you share this file libmmcamera_imx234.so and libmmcamera_t4ka3.so

found the 240fps conifig for imx234
Active Pixels 668 * 366
Frame Length Line / Total Hor Pixels 6144
Lines per Frame / Total Ver Pixels 406
PCLK 600000000
CLK 93120000
FPS 240

so basically G4 does 240fps @ 640*360

so quality should be like this https://www.youtube.com/watch?v=YN_F_-Y3JBI
[G4 General] Ramsey:
This one isn't working well.

noise reduction is always off, can't control it or activate it.

in Auto mode when I press on Mode it crashes the camera.

Moving ISO slider in manual mode doesn't do anything.

I attached the libmmcamera files.
[G4 General] defcomg:
hmm okay will try figure something else the alternative would be rename cam name so you have stock apk and modded one
[G4 General] Ramsey:
Thought about that too! but what do I need to rename exactly? wouldn't I need to rename lots of other files and text also?

Also, I tried the other mod you did a few pages back for NR off and I realized it also crashes when I press Mode in auto.
[G4 General] Ramsey:
I finally tried this and as soon as I launched the apk you posted it crashes. Can't do anything.
[G4 General] defcomg:
what does the logcat say ?

the package name from ie com.lge.camera to like com.lge.camerax and app name Add like MOD i did it with HTC Camera on M8 and my device but Lg's apk does not wanna behave in VTS Studio

---------- Post added at 01:38 AM ---------- Previous post was at 01:36 AM ----------

yeah [MENTION=5128617]troopii[/MENTION] said lg framework has to be used to access those params currently its not implimented hence FC
[G4 General] faizalotai:
Did you used customs camera config.xml?
[G4 General] Ramsey:
What is that ? and why ? :)
[G4 General] Ramsey:
I attached logcat. No idea what it's saying. First time I do this. Lots of info inside. LG Camera Mode info should be towards the end as I paused it after the crash.
[G4 General] faizalotai:
If you're using file from camera mod(60fps for 1080p), that camera config.xml file using the latest updates that camera UI settings have been changed and its written in that file..

So it will crashed when entering mode.
[G4 General] defcomg:
try this renamed package to com.lge.camerax and app name to CamMod try install this like normal apk if it fails copy to /system/app/

about mode fc seems original apk had some changes made to it
[G4 General] Ramsey:
Oh, no we're not using that mod. Only noise reduction off mod.
[G4 General] faizalotai:
I guess you lower the gain to make iso double the value..

using proshot there's no more iso50.the lowest is 100.

but the problem is when using stock cam, switch to manual to see what's the iso, its shows different value from what is written in exif.

20150930_211509 by Faizal Awang, on Flickr
[G4 General] defcomg:
it is the original noise reduction mod just renamed

---------- Post added at 03:36 AM ---------- Previous post was at 03:31 AM ----------

hmmm do this use original libs take a picture at iso 50 and iso 100 then change to modded libs use iso 100 then compare the three images check if the shutter speed from original lib matches the one in modded.

The Nubia uses Z9 uses the same sensor as G4 its lowest iso is 100 with the mod i think it shows true iso gain as it is
[G4 General] faizalotai:
Mod shutter speed at 100 same as 50 in original
[G4 General] One Twelve:
Double the gain to double ISO, makes it more sensitive.
[G4 General] faizalotai:
I see..:D
[G4 General] defcomg:
in case anyone wants to play around with fps heres modded lib 1080p @ 90 fps and 720p @ 175fps
[G4 General] AvivEliyahu:
I also noticed that , reading all those posts i didnt manage to understand if theres a fix though?
[G4 General] Ramsey:
I installed this as normal apk, it installs fine but it crashes as soon as I click to open it. I attached logcat.

I then tried to put in system/app but same thing.

Just to let you know the apps are installed in system/priv-app in LG G4, not sure if there's a difference. Every app has its own folder.
[G4 General] sdfsdfsfs:
I don't understand what are you trying to achieve here?

the photo has a lot of noise
[G4 General] blake_spector:
Hey, I've got another question:

See, in manual when setting the ISO and/or shutter speed the camera automatically turns on AE-L (auto exposure lock).

Is there a way to stop that? Let's say I want full manual control - setting ISO, shutterspeed AND exposure (sometimes I want to deliberately over/underexpose a photograph) - is that possible?

Thanks again!!
[G4 General] troopii:
You answerd the question yourself.

With using manual mode ae must deactivated/locked. Ae controls shutter and iso. When you set shutter and iso to your needs you can tweak the exposure with the exposure slider. If that is already min/max you must increase/decrase iso or shutterspeed.

1/2 shutterspeed with iso400 should capture same light as shutter 1sec with iso200 at same aperture.
[G4 General] sdfsdfsfs:
In auto mode in low light scenes , the shutter uses 1/10 as a lowest speed.

Is it possible to change that to 1/5 ?
[G4 General] defcomg:
you can hex edit the exposure tables found in libchromatix_imx234_snapshot.so

troopii built a hex wrapper for old version of chromatix lib but g4 uses newer

this is the magic number

77.900002

get hex workshop search 32bit float work your way up the hex to the table or seach hex values

010000010000000801

that will be the begining of exposure table
[G4 General] Ramsey:
1/9 actually.

If you figure out how to change that with defcomg's help, let me know :).
[G4 General] faizalotai:
We're trying to get rid of aggressive NR in auto in lower iso..of course it will affect NR in higher iso as well

20151004_211636 by Faizal Awang, on Flickr

20151004_211737 by Faizal Awang, on Flickr
[G4 General] Ramsey:
Can't see picture or even get to flickr because it asks me to login to Yahoo. I don't have an account there.
[G4 General] faizalotai:
try again,forgot to make it public
[G4 General] Ramsey:
Arg, Flickr now forces me to sign in to download the pic! Can't see it full size because of that.

Btw, what is the difference between both pics? seems like both are 0.5 shutter speed, ISO 50.
[G4 General] faizalotai:
I've attach the files

https://www.mediafire.com/?cukeg9homdy9puz

https://www.mediafire.com/?lmecsciaak6epkn
[G4 General] Ramsey:
Thanks! yeah that's the issue, ISO 50 to 400 has too much noise reduction. 450 and up noise reduction is about 50% gone and you can see more details. I know that in your case you probably used the mod and stock to show the difference.
[G4 General] sdfsdfsfs:
i zoomed in at 100% in both pictures.

The first one with mod haw better details but chroma noise is present.

The stock one has fewer details because of NR, but noise is absent.
[G4 General] One Twelve:
ok, lets make this simpler to follow.

This is the stock, under manual ISO 50, 0.5s

This is the same photo with the mod applied that removes this NR that 'some' people do not like. It increases the file size from stock which was 6MB up to 8.5MB. Other difference i noticed in the exifis is the stock has a 'brightness value' of -3.17 and for the mod, brightness value is shown as 0. if that means anything.

Both of these images were taken in manual as you can't get 0.5s exposures in auto.

Actually i would say the opposite. In auto there is a tendency to over sharpen. Have find them a bit over sharpened when it comes to foilage and would rather have raw file to play with to reduce the sharpening and get a more natural looking image.

landscapes with leaves and bushes are more demanding. Therefore if you remove whatever little NR is there in stock with this mod it will look even worse with landscapes (!)

Having looked at both, at the PIXEL level, think that i prefer the look of the stock manual image over the modded manual image. that is to say in this pair of images i think that whatever stock NR has been done with a delicate touch. The modded image is a little more over sharpened ie artificial looking and also little more clear. Would not describe the NR as seen in the stock image here aggressive in any way whatsoever.

its a delicate balance NR vs sharpening and must work across different scenes. to get this kind of shot more sharp means other kinds of shots will look worse. There is no good answer, if you don't like it better to use RAW. then you can develop as you please whatever way you want, to your taste etc.

This is the whole point of raw otherwise everybody is forced to accept what some algorithm thinks is correct :)
[G4 General] Ramsey:
That's correct. In that example it is not bad but I took some shots the other day (and deleted them) that were worse, details were very much smudged. Thanks to manual mode, we can recover details. I wish we could control level of NR.
[G4 General] sdfsdfsfs:
Anyways, how do we apply this mod? and what happens in high iso levels?

---------- Post added at 03:37 PM ---------- Previous post was at 03:32 PM ----------

Your theory is correct. I always wondering why i can not achieve the same level of detail with auto when i was shooting manual at very low iso 50.

I thought the pic was blurry because of movement.But the explanation is clear now.Because of aggressive ΝR
[G4 General] defcomg:
Qualcomm isp sharpness images like crazy i always have sharpness at value of 1 outta 36 i find sharpening of sky quite unpleasant i only shoot jpeg for hdr with textured things like grass asphalt etc.

by the way in the original mod i can kill the sharpening so it toned down

still tryna figure out how to handle nr in auto mode
[G4 General] Ramsey:
The mod that defcomg made? You must be rooted. Go to System/Priv-app and copy LGCameraApp somewhere safe. Take the camera apk file from defcomg and put in the root of LGCameraApp folder in system/priv-app. Overwrite and then launch camera. It will crash first time then work fine. Mode will always crash though, needs to be fixed.

Defcomg is also trying to add a button to let us disable noise reduction on the fly, that would be awesome because in high ISO, there is a lot of chroma noise.

I'm not using the Mod now btw as I'm waiting for the improvement and fix mentioned above but what I did for situations that require high ISO is to lower ISO and increase shutter speed, then you get an image that almost looks like it's out of a DSLR.

I'd be interested in less sharpening. I can test it for you. Do you think there's a way to control noise reduction? ProShot does it but I'd like more control as the low in ProShot is still too much.

I'm kind of thinking of lightroom type of control haha. If only images could come out like a raw file and automatic low noise reduction is applied.

Btw I added your mod to the first post.
[G4 General] One Twelve:
Pic is not blurry because of movement i think faizal has used a tripod. No way to get 0.5s clear like that otherwise.

The blur is background blur because subject is less than 2m. But if you look at the musical notes its much nicer in the stock than the mod. See the books on the shelf that are similar distance as the music sheet. Mod shows little more details than stock. This is NOT aggressive NR.

LG prefers details so they are using more sharpening and trying to preserve details even at high ISO.

The OP's contention that more NR is used at low ISO than at high ISO makes no sense to me at all.

Can somebody demonstrate this ? You need to take the photo in auto, this means light has to be more. Then you need to take another with the mod in manual.
[G4 General] faizalotai:
I'm with you, at least there's a little of NR otherwise the image will pop with chroma noise

Yes, you're correct, but some prefer point and shoot and less editing work
[G4 General] One Twelve:
Best thing would be if we had a sharpness slider like on the M9. We don't have that. I have it on my k zoom and i hardly use it.

I wonder if you have anyway to decipher the user comments in the exif. It shows up in some weird strings of chars. its important to see this so we understand how the camera thinks. Its nice that LG puts this info in their exifs. We can tell is a shot is HDR or not which AFAIK samsung, sony, htc and apple do not do.

But it needs to be in english :)
[G4 General] defcomg:
can you post example of the user comment
[G4 General] sdfsdfsfs:
The problem with the camera is in manual mode.It uses different algorithms than auto.

As a result anything above iso 300 will result in a lot of chroma noise.

We need to apply the same NR model that is used in auto...for maximum results.
[G4 General] shurensly95:
20150926_144812-01 by Alluisses Kock, on Flickr

[MENTION=5512893]One Twelve[/MENTION] i gotta say im still amazed by this phone tho... love how this picture kept its details but it lost its exif idk why
[G4 General] One Twelve:
I'll give you two

User Comment : FM0 FC111111111:zzzzzz3 91bc 078043874441663838014c0 bac22e121 e48 010310e4 0 e5 8aa 010f 5b7 0118 a24 0121 c21 012a f06 01331112 012a10e2 0(349 null bytes)

This is the stock, under manual ISO 50, 0.5s

With the mod

User Comment : FM0 FC000000000:zzzzzz0 a1bc 078043874441663838014c0 bac231116 bf8 ebd f8 98c ce9104 655 71d10d 699 7ce116 766 93e11f 991 cbd128 c2010c5131 f36152f13a102e1585131 e2311d6(338 null bytes)

This is what shows up when using Phil Harvey's exif tool.

All i understood is in those two photos no faces were detected and thats it.

With the G3, the comments are more meaningful, one photo i saw had this

NightShot ProcInfo Gain=21,N_M=5,OBC=4,Y=2,C=1,Sharp=800,LuxMode=4,FaceNum=0 FocusArea=111111111

Something like this with the G4 would be much more useful in figuring out what the G4 did to the photo.

---------- Post added at 02:41 PM ---------- Previous post was at 02:26 PM ----------

Did you post process it with any app ?

have noticed this when people crop photos that the exifs get cropped as well (!) if the app isn't designed well.
[G4 General] shurensly95:
[MENTION=5512893]One Twelve[/MENTION] probably when i edited it in snapseed android app
[G4 General] defcomg:
seem like hex bytes dunno for what though.

new snapseed strips all the exif meta :eek:
[G4 General] One Twelve:
its the settings that the G4 picked for a photo it appears like some sort of encoding error. Some of those strings you can google for and you find G4 pics in albums with the same string.

Unless users start leaving them feedback to that effect the devs won't know.
[G4 General] sdfsdfsfs:
auto mode in low light

Indoors the pics are excellent with correct exposure.But if you shoot a night landscape where there are external light sources....the photo will be overxposed.
[G4 General] faizalotai:
Looks like we have another beast merge from h***..lol

Wish we can have that kind of algorithm tweaks

blogs.windows.com/devices/2015/10/15/camera-magic-on-microsoft-lumia-950-and-lumia-950-xl/
[G4 General] Ramsey:
Nice! Wish Nokia would come back with Android and give us a premium camera with a carl zeiss lens.
[G4 General] faizalotai:
One Twelve

Here's an attachment of manual and auto with stock n mod..

The mod comes with bigger file size.

I think its within 2m away..
[G4 General] Ramsey:
Yep, that's what I also get. Smudgy results below ISO 450 indoors.

I haven't been using the mod because of the bugs and I hope defcomg or someone can fix the little bugs.
[G4 General] faizalotai:
So its the same, i thought replacing some libs with v10 would have some different result but...lol

i kinda like mod result but with high iso the noise just terrible..
[G4 General] Ramsey:
In high ISO scenes, I would use manual with low ISO and slow shutter to remove noise. Awesome results.
[G4 General] defcomg:
how about we reduce noise reduction strength like on the m9
[G4 General] Ramsey:
How do we do that? That would be interesting to test.
[G4 General] faizalotai:
That would be interesting
[G4 General] One Twelve:
looked at these and i can see the bigger file size photo out of the pair is more clear maybe little more sharper. But it comes at a price, look at the toy drum and the blue colour. Do you see the noise in there. G4 in its default setup gets criticised for doing the same with a blue sky.

If we look at the modded photo, the carpet is more clear than with stock. can almost read text on the boxes. textures are more defined.

In two minds about this. I can see a use for it in niche cases, photo copy? what else. Not for every thing. How to know that ?

For what types of photos do you want to use this mod and which kinds would it not work. Anything with lots of solid colours is out. No portraits either. Noise in the shadows is going to be accentuated as well. That is why some NR is applied which is what the OP has an issue with.

I still like the default processing which already sharpens things some times a bit too much. This mod go further over the top. In the quest for more details people lose sight of the forest for the trees. In the forums its always about details, details and no notion of the whole. So we are in a sharpening war where the camera that resolves the most details is crowned the winner. What did it win ? you increase sharpness you cause problems with artifacts as well.

yeah there is no DOF issues here. A suitable demonstration of the OP's 'issue'. Thing is OP wants this for general use, heh i don't know about that.

PS: for some reason i did not receive any notificaiton about you tagging me. Just happened to drop by :)
[G4 General] Ramsey:
The issue that I found is all the noise reduction applied below ISO 450. If we raise ISO to 450 you will see that the noise reduction is less and you'll find more details. That's my point lol. I think we all lost track of what I'm trying to talk about. There is a lot of noise reduction below 450 and less NR after 450, which is strange.
[G4 General] defcomg:
ISO 300 and below use the same Denoise profile

ISO 380 - ISO 650 Same profile

ISO 880 - ISO 910

ISO 1000 - ISO 2500

ISO 2600 - ISO 5500

ISO 5700 - ISO 6000