maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   N900 Video focus and led light, python script (https://talk.maemo.org/showthread.php?t=46427)

maartenmk 2010-08-05 12:49

Re: N900 Video focus and led light, python script
 
It doesn't look like it, the author has been absent for a while.
At the moment I cannot recommend it, due to the proximity sensor being used to bring up the focus slider. It happens much too easily, also when the camera app is not on the foreground. Especially a problem for left-handed people I suppose.

(If anyone knows where I could get the 0.520 version, where this function was not yet implemented, please let me know...)

Crogge 2010-08-10 20:49

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by maartenmk (Post 776519)
It doesn't look like it, the author has been absent for a while.
At the moment I cannot recommend it, due to the proximity sensor being used to bring up the focus slider. It happens much too easily, also when the camera app is not on the foreground. Especially a problem for left-handed people I suppose.

(If anyone knows where I could get the 0.520 version, where this function was not yet implemented, please let me know...)

We could use a older version for now, that worked fine without this annoying proximity sensor.

eitama 2010-08-10 21:59

Re: N900 Video focus and led light, python script
 
I found the sources of version 0.520 in the repositories but I have no idea on how to create a deb file out of it, I have not dealt with packaging python on N900.
If anyone knows, please let me know - We can set up a deb file with a descent version.

eitama 2010-08-11 13:25

Re: N900 Video focus and led light, python script
 
Good news!!!

For those who don't like the problems the proximity feature introduces, I found out how to disable it!!!

It is super easy.
  • In your preffered way, find a way to edit the "lfocuswi.py" file.
  • The file is located inside "/usr/lib/hildon-desktop" folder.
  • remove lines 97 - 101 completely (or comment them)
  • This will disable proximity sensor trigger.
  • Reboot your phone - And thats it.
  • Keep in mind, if you update this app with a newer version then the latest which is 0.528-4, this change will be overwritten - but, if there is a new version it means the developer is back and he will solve the problems anyway (i think).
  • We can just thank the original developer for developing this great app, and doing it in python while sharing the code, allowing us to hack it easily.

Cheers!
And just to show how good this really is for macro pics, I tested it after disabling the proximity sensor. (don't forget reboot phone)

Crogge 2010-08-21 20:59

Re: N900 Video focus and led light, python script
 
Thanks Eitama that worked fine :) Now I miss a option to use one of the keys outside to enable the menu ^^

eitama 2010-08-22 05:50

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by Crogge (Post 794364)
Thanks Eitama that worked fine :) Now I miss a option to use one of the keys outside to enable the menu ^^

What do you mean mate?

Crogge 2010-08-22 17:59

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by eitama (Post 794617)
What do you mean mate?

Well that you can open the "lfocus" menu for example with the "volume buttons" or anything else. Its a bit difficult to put out the keyboard all the time, still nothing serious :)

TiagoTiago 2010-08-25 01:04

Re: N900 Video focus and led light, python script
 
I can use the on screen stuff, but nothing happens when i press any key :(

Also, the on screen stuff messes up the image in the viewfinder while active, any way to avoid that?

m2cm2c 2010-09-12 16:22

Re: N900 Video focus and led light, python script
 
lfocus_0.912-1
fixed typo in description
added a help button to display help for lfocus
moved the keyboard toggle button to the lfocus dialog
proximity now requires holding on for two seconds to activate the lfocus dialog
Now available in Extras-testing


I'm in need of testers, thank you.

eitama 2010-09-12 16:28

Re: N900 Video focus and led light, python script
 
Welcome Back :)

Installing now.

WhiteWolf 2010-09-12 17:55

Re: N900 Video focus and led light, python script
 
I'll try those changes seem more appropriate.

Thank you.

kev 2010-09-12 23:10

Re: N900 Video focus and led light, python script
 
If anyone wants to know where v4l2-ctl is from it's a N900 version of Video for Linux 2 stuff http://www.linuxtv.org/downloads/v4l...pis/index.html

m2cm2c 2010-09-13 10:57

Re: N900 Video focus and led light, python script
 
lfocus_0.913-1
fixed an issue with proximity
Now available in Extras-testing


I'm in need of testers, thank you.

maartenmk 2010-09-14 10:04

Re: N900 Video focus and led light, python script
 
I briefly tested, it worked well, thanks.
I must say I still don't like the proximity sensor option, but mainly because it is also active when the camera app is on the background.

m2cm2c 2010-09-14 12:46

Re: N900 Video focus and led light, python script
 
lfocus_0.914-1
proximity will only work if the camera is running (not on standby)
Now available in Extras-testing


I'm in need of testers, thank you.

techie 2010-09-14 17:30

Re: N900 Video focus and led light, python script
 
Okay I think I found an issue..
  • Use Stop RLED from the onscreen menu to disable red light.
  • Press record button, Red led will come on for a moment then go off.
  • Now stop recording,but do not exit the camera.
  • Hit record again.Red light will come on and this time stay on!
If you check the menu now, the stop red led is still selected but the red led continues to be on.

[Request] Is it possible to completely disable the red led so that it won't even flash once initially while recording.

Another issue I am having is that when the menu appears, everything behind the screen goes black.So the manual focus now becomes useless as I can't actually see anything.Is it just me?:confused:

Mentalist Traceur 2010-09-14 20:22

Re: N900 Video focus and led light, python script
 
Anyone have trouble updating? My Live Focus app is version 5. something, and apparently apt-get never noticed any of the later versions that never made it out of testing and devel - I had my application catalogues configured funny - after making it more consistent, it found the later Live Focus version, but it fails to upgrade. It starts downloading the update, then says unable to update, after which the newer version still shows up in app manager, but doesn't have the icon anymore, and the install field says "broken but installable". Trying to install again has the same result of downloading then being unable to update.

Developer: Would you like me to experiment for you with apt-get or run some commands to give you the outputs for debugging purposes? If not, I'll just uninstall Live Focus and reinstall to the newest version.

Darkwolf 2010-09-17 08:48

Re: N900 Video focus and led light, python script
 
Two problems I've found:

- Proximity sensor response is very poor. Holding it down for a few seconds usually in no response at all or it pops up after 4 seconds or more

- The state of the LED still doesn't get remembered when shooting video. As soon as the camera button is half pressed to focus the LED already turns off.

Now, I found that when I look back at the settings without pressing the camera shutter button that the Remember LED state button is already off. Your software never held on to said setting in the first place.

I really hope this can be fixed, because this is the sole purpose function of your app that I really like using.
So far I cannot remember this function ever worked on my phone as long as you've been developing this application.

eitama 2010-09-17 09:18

Re: N900 Video focus and led light, python script
 
HI,

I also found a problem in the latest ver,
Setting the focus to manual with the toggle icon, and then setting the focus with the volume keys works, but only for a single pic. The next attempt to take a picture will trigger auto-focus.

Thanks for the work!
Eitam.

m2cm2c 2010-09-17 10:21

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by Main Post
[Edit]
lfocus_0.528-3
fixed led remember state button and made it always off, so it needs to be turned on by the user only when taking a video
[Edit]
lfocus_0.528-4
fixed stop RLED toggle button and made it always off, so it needs to be turned on by the user only when taking a video


Quote:

Originally Posted by techie (Post 816013)
Okay I think I found an issue..
  • Use Stop RLED from the onscreen menu to disable red light.
  • Press record button, Red led will come on for a moment then go off.
  • Now stop recording,but do not exit the camera.
  • Hit record again.Red light will come on and this time stay on!
If you check the menu now, the stop red led is still selected but the red led continues to be on.

[Request] Is it possible to completely disable the red led so that it won't even flash once initially while recording.

Another issue I am having is that when the menu appears, everything behind the screen goes black.So the manual focus now becomes useless as I can't actually see anything.Is it just me?:confused:

as you can see from version 0.528-4 it is supposed to be turned on by the user every time before taking a video and this issue will be fixed in a newer version with a confirmation dialog box.


Quote:

Originally Posted by Darkwolf (Post 818725)
Two problems I've found:

- Proximity sensor response is very poor. Holding it down for a few seconds usually in no response at all or it pops up after 4 seconds or more

- The state of the LED still doesn't get remembered when shooting video. As soon as the camera button is half pressed to focus the LED already turns off.

Now, I found that when I look back at the settings without pressing the camera shutter button that the Remember LED state button is already off. Your software never held on to said setting in the first place.

I really hope this can be fixed, because this is the sole purpose function of your app that I really like using.
So far I cannot remember this function ever worked on my phone as long as you've been developing this application.

as of version 0.528-3 the user has to turn on the LED each time before taking a video and the same fix will be applied here with a confirmation dialog box.

Quote:

Originally Posted by eitama (Post 818751)
HI,

I also found a problem in the latest ver,
Setting the focus to manual with the toggle icon, and then setting the focus with the volume keys works, but only for a single pic. The next attempt to take a picture will trigger auto-focus.

Thanks for the work!
Eitam.

This issue is noted and a fix will be released in a newer version, thanks ! :D

eitama 2010-09-17 10:28

Re: N900 Video focus and led light, python script
 
Cheers buddy!

I am glad you are back! I hope you were absent for good reasons!

Rapparee 2010-09-24 17:42

Re: N900 Video focus and led light, python script
 
So my flashlight button on the system drop down is gone now that I have live focus installed. any one else notice this?

taril 2010-11-01 17:28

Re: N900 Video focus and led light, python script
 
Thank you for your development!

FEATURE REQUEST:
during video capturing, please, enable the focus locking camera button function (half pressing) to autofocus between far and near distances

Thanks!

TiagoTiago 2010-11-14 23:50

Re: N900 Video focus and led light, python script
 
Could you also add manual exposure and sensitivity (the "ISO" emulation) controls as well please?

Btw, would it be possible to control the brightness of the white LEDs too?

maxximuscool 2010-11-14 23:56

Re: N900 Video focus and led light, python script
 
I would love to have an autofocusing when pressing camera key. Instead of focusing it ourselve why not let the script finding the best focal point

moscatomg1 2010-12-09 02:35

Re: N900 Video focus and led light, python script
 
I just downloaded this app--and only for the option to turn off that annoying red led light by the lens. Now I'm not any kind of tech expert--though I'm enough of a tech enthusiast that I paid the $$$ for this gadget--but it took me forever to figure out how to get this app to actually turn off the red led. As far as the latest version of this app is concerned, the only way to switch it off is to 1) already be in the process of recording video, 2) navigate to the lfocus settings (again, while recording), 3) press only the "RLED" button, and 4) navigate away and continue recording. The instant you stop recording, the setting is reset and the RLED will turn back on again when you try to record. As far as I can tell, NOTHING else w/ this app version will turn that damn light off . . . . but I am appreciative that for the moment there is at least some way to do it.

. . . . As for the live focus feature, I am just perplexed by that. I assume it will take me longer to figure that one out, but it does seem a bit much to have to 1. deal w/ the zooming (irrelevant of the app) AND 2. manually focusing (w/ the app)--all while trying to video record and simply capture something in frame on this little device. But maybe someone else can explain this feature better for me.

jjchan87 2010-12-12 14:37

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by moscatomg1 (Post 892887)
I just downloaded this app--and only for the option to turn off that annoying red led light by the lens. Now I'm not any kind of tech expert--though I'm enough of a tech enthusiast that I paid the $$$ for this gadget--but it took me forever to figure out how to get this app to actually turn off the red led. As far as the latest version of this app is concerned, the only way to switch it off is to 1) already be in the process of recording video, 2) navigate to the lfocus settings (again, while recording), 3) press only the "RLED" button, and 4) navigate away and continue recording. The instant you stop recording, the setting is reset and the RLED will turn back on again when you try to record. As far as I can tell, NOTHING else w/ this app version will turn that damn light off . . . . but I am appreciative that for the moment there is at least some way to do it.

. . . . As for the live focus feature, I am just perplexed by that. I assume it will take me longer to figure that one out, but it does seem a bit much to have to 1. deal w/ the zooming (irrelevant of the app) AND 2. manually focusing (w/ the app)--all while trying to video record and simply capture something in frame on this little device. But maybe someone else can explain this feature better for me.

Maybe it's good to reset those setting back to default? If not next time when we use or after uninstall the app, the setting was keep at there.. Or can improved it with only reset it back to default every time we exit the app? just some opinion =)

AhmedXboss 2011-01-01 10:22

Re: N900 Video focus and led light, python script
 
i installed it and it worked but then i software update my phone and then the 2 logo were not there on the status bar i reinstalled and unistalled it like 20 times but still the same thing.then i install the 9. version but it says uncomplete pacage...please reply me...

bbkshine 2011-01-10 10:23

Re: N900 Video focus and led light, python script
 
Not Working for me :(

I installed it & no response in N900 :(

bbkshine 2011-01-14 11:50

Re: N900 Video focus and led light, python script
 
Come on Guys.. Please i need ur Help for installing this APP... Can anyone Guide me plz

TiagoTiago 2011-01-14 23:19

Re: N900 Video focus and led light, python script
 
I usually call it by the proximity sensor trigger (cover the sensor for a couple of seconds and then move away)

typer0149 2011-01-15 02:14

Re: N900 Video focus and led light, python script
 
anyword on that update hope youre alright m2cm2c

Crogge 2011-02-03 21:19

Re: N900 Video focus and led light, python script
 
It would be nice to see further updates, there are still some issues with the script:

- The menu is sometimes bad readable because the its scrolling not far enough when you touch it wrong

- The keyboard is not enabled by default, it takes time to enable it first, without it the focus is quite useless because the screen is dark when you use the slider

- The LEDs don't stay active if you start the record, you have to re-enable them first

- The auto focus bugs sometimes, its only active when you put the finger from the camera button but not when you try to take a picture

- The script goes insane if you use it while no camera app is running and may can even damage the focus?

- There is by default no possibility to disable the proximity sensor which can be quite annoying when you have the hand over it while you take pics

pthomas22 2011-02-14 12:13

Re: N900 Video focus and led light, python script
 
Will not work for me.
When I use the app the screen is black so I cannot see what is in focus or not.

pthomas22 2011-02-14 12:51

Re: N900 Video focus and led light, python script
 
Stupid me.
worked out how to make it work
Is there any way of having zoom and focus working at same time?
At the momemt I need to disable live focus to get zoom function back.

unixlife 2011-02-23 11:08

Re: N900 Video focus and led light, python script
 
My N900 dual LED flash lights were on during video recording, but it suddenly stopped working. Only RED LED is on, any clues?

rmarcus 2011-03-19 20:33

Re: N900 Video focus and led light, python script
 
So...is it working for anyone???:confused:

nkirk 2011-04-02 05:16

Re: N900 Video focus and led light, python script
 
works...pls read the 1st post clearly !.. easiest way is to cover the proximity sensor for 2 secs and remove....

m2cm2c any plans to update the app ? i/many would love to have continuous auto focus...i mean to auto focus every 5 secs while recording.

nkirk.

maartenmk 2011-04-23 08:37

Re: N900 Video focus and led light, python script
 
Quote:

Originally Posted by eitama (Post 782971)
Good news!!!

For those who don't like the problems the proximity feature introduces, I found out how to disable it!!!

It is super easy.
  • In your preffered way, find a way to edit the "lfocuswi.py" file.
  • The file is located inside "/usr/lib/hildon-desktop" folder.
  • remove lines 97 - 101 completely (or comment them)
  • This will disable proximity sensor trigger.
  • Reboot your phone - And thats it.
  • Keep in mind, if you update this app with a newer version then the latest which is 0.528-4, this change will be overwritten - but, if there is a new version it means the developer is back and he will solve the problems anyway (i think).
  • We can just thank the original developer for developing this great app, and doing it in python while sharing the code, allowing us to hack it easily.
[....]

Even with the latest version of the script, I didn't like the proximity sensor option (I am left-handed and constantly activate it without meaning to) so I switched it off using this method.
The version of the script is different; I now commented out lines 172-192 (the whole if-then-else part starting with 'if pxs == 1:')
It seems to work. Eitama, is that what you did as well?

I don't think the original developer m2cm2c is still active here, so I didn't bother requesting it.
By the way, it still works with the new camera-ui but the view goes black when the menu item comes up, so the keys are the only useful method now. But I preferred that anyway.

cjp 2011-04-23 08:50

Re: N900 Video focus and led light, python script
 
Wow this looks pretty cool!

This is such a huge thread I didn't read through it all the way, but have you considered giving something towards Nicolai's "camera-ui2" project? :)

I don't know if your projects differ too much anymore, but maybe you could give a hand here and there, share experiences, problems etc.? :)

Nicolai's project:
http://talk.maemo.org/showthread.php?t=70870


All times are GMT. The time now is 00:06.

vBulletin® Version 3.8.8