woheller69 / TimeLapseCamera

GNU General Public License v3.0
96 stars 10 forks source link

Feature request: Exposure Lock #10

Open MyNameIsTroll opened 1 year ago

MyNameIsTroll commented 1 year ago

Hi, thanks for making this app, I'm having fun with it :)

When I do long timelapse and it's overcast and cloudy, I find that there are automatic exposure changes on the videos, it's not very nice unfortunately.

It would be nice to have an option to block the exposure.

woheller69 commented 1 year ago

For normal video and time lapse video this apk sets setAutoExposureLock(true) after mediaRecorder.start()

I have no time to test, not sure if it works. Please try.

Uninstall Remove .zip Install

app-release.apk.zip

woheller69 commented 1 year ago

did you try it?

MyNameIsTroll commented 1 year ago

I didn't understand what I had to do, I uninstall the TimeLapseCamera app and install the apk in the zip? Is that the modified application?

woheller69 commented 1 year ago

yes, it is modified. Not sure if it makes a difference

MyNameIsTroll commented 1 year ago

All right, I'll try this weekend, I'll tell you if it works, thank you.

ColinC101 commented 1 year ago

Hi, I've encountered the exact same usecase with the autofocus function, as the phone tries to update the focus when brightness changes or movement occurs.

Would it be relevant / is there an easy way to implement such a feature to lock auto-focus when recording timelapse ? Feels like both those parameters are closely related

woheller69 commented 1 year ago

You can try this. I tried to lock AutoExposure, AutoWhiteBalance and AutoFocus after start of recorder (only for mp4 recordings) app-release.apk.zip

Don't know if it works...

    mMediaRecorder.start();
    Camera.Parameters params = mCamera.getParameters();
    mCamera.cancelAutoFocus();
    if (params.isAutoExposureLockSupported()) {
        params.setAutoExposureLock(true);
        Log.d("AutoExposureLock","true");
    } else Log.d("AutoExposureLock","not supported");
    if (params.isAutoWhiteBalanceLockSupported()) {
        params.setAutoWhiteBalanceLock(true);
        Log.d("AutoWhiteBalanceLock","true");
    } else Log.d("AutoWhiteBalanceLock","not supported");
woheller69 commented 1 year ago

In my tests this does not seem to have any effect. Have you seen any improvements?

MyNameIsTroll commented 1 year ago

I'm sorry, I wanted to try but I couldn't install the application. When I rename the zip file to apk my explorer opens the apk instead of installing it... I don't know how to do it :)

woheller69 commented 1 year ago

try with TotalCommander

MyNameIsTroll commented 1 year ago

Thank you, it worked. I'll do a test today and let you know if it works.

MyNameIsTroll commented 1 year ago

After a few tries, I didn't notice any change. The automatic exposure is still on.

woheller69 commented 1 year ago

then maybe it is not possible. Maybe some day someone has an idea.

ColinC101 commented 1 year ago

Finally able to do some tests on my side, I can confirm that it does not seem to change anything. Let's hope someone finds a way.

andreasb242 commented 5 months ago

I got this working with my Camera 2 Branch: #39 But for now you need to configure ISO and Exposure manual, if you configure just one, it don't seem to work