maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   camera-ui2 (now a part of CSSU) (updated 09. May) (https://talk.maemo.org/showthread.php?t=70870)

poogash 2011-03-16 20:41

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by handaxe (Post 969151)
Regarding dsmetool: I have found that I get a reboot if I try it on the n900 x-terminal BUT if I ssh in (as root) I can get it to work. I once had problems via ssh but I got it to work after the reboot. Since then, I have been able to use dsmetool via ssh to unload and reload between camera-ui and camera-ui2 at will.

What happens if you "dsmetool -k camera-ui" as root and then try to run camera-ui2 from the terminal as user?

you are the man thanks a lot i'll give this bad boy a test

nicolai 2011-03-16 20:52

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by poogash (Post 969079)
i have tried using the dsmetool command way and just replacing camera-ui with your file both give me instant reboot, just replacing gives me the reboot loop.

am i going about this all wrong? am i best just leaving it for more experianced users?

I run it from command line.
It isn't ready yet to replace the stock camera-ui. Please don't
use dsmetool. But I must admit, I don't had any reboots
when I used dsmetool.
First, be sure the stock camera-ui does not run.
dsmetool -k /usr/bin/camera-ui
then you can start my app with
dsmetool -t <where ever you put it>

Btw the stock camera-ui in /usr/bin/camera-ui isn't the real
application, but a link to /usr/bin/maemo-invoker.
When you start /usr/bin/camera-ui maemo-invoker
is started and starts (depending on the name of the link)
an application (/usr/bin/camera-ui.launch).
camer-ui.launch is the real camera-ui "application". It isn't really
an application but a shared library with a "main" function.
maemo-launcher now loads the shared library and calls this
main function.
This is how the maemo application framework tries to reduce
the start up time of the stock applications (modest, mediaplayer ...)

regards
Nicolai

AgogData 2011-03-16 20:52

Re: camera-ui2 testers needed (updated 14.03)
 
how can i install the application ? the file inside the .tar file doesn't have an extension

handaxe 2011-03-16 21:01

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by AgogData (Post 969194)
how can i install the application ? the file inside the .tar file doesn't have an extension

It does not need an extension - untar it and that is the executable. You can run it from the command line as "./dir/dir/camera-ui2" the dir/dir bit being the path to where you have the executable. Or cd into the directory and "./camera-ui2" will do the trick. BUT, as Nicolai shows above, you first need to remove camera-ui from contention using dsmetool.

poogash 2011-03-16 21:11

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by nicolai (Post 969192)
I run it from command line.
It isn't ready yet to replace the stock camera-ui. Please don't
use dsmetool. But I must admit, I don't had any reboots
when I used dsmetool.
First, be sure the stock camera-ui does not run.
dsmetool -k /usr/bin/camera-ui
then you can start my app with
dsmetool -t <where ever you put it>

Btw the stock camera-ui in /usr/bin/camera-ui isn't the real
application, but a link to /usr/bin/maemo-invoker.
When you start /usr/bin/camera-ui maemo-invoker
is started and starts (depending on the name of the link)
an application (/usr/bin/camera-ui.launch).
camer-ui.launch is the real camera-ui "application". It isn't really
an application but a shared library with a "main" function.
maemo-launcher now loads the shared library and calls this
main function.
This is how the maemo application framework tries to reduce
the start up time of the stock applications (modest, mediaplayer ...)

regards
Nicolai

thanks Nicolai i was using the dsmetool -k /usr/bin/camera-ui cmd in root and the dsmetool -t /usr/bin/camera-ui2 (where i unpacked your file) but this was causing a reboot. so i did as handaxe said and ran your file in user not root and it works.
i've got to say what i have seen it looks good works quite well.
i have found auto video mode is a litlle eratic in lower light levels the colour style short cut works well while recording.

Char 2011-03-16 21:16

Re: camera-ui2 testers needed (updated 14.03)
 
would running it like this cause problems?
nohup ~/bin/camera-ui2 >/dev/null &
I haven't seen any absurd effects on CPU ever since you updated it the first time. dsmetool -t always crashes for me :(

nicolai 2011-03-16 22:12

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by Char (Post 969211)
would running it like this cause problems?
nohup ~/bin/camera-ui2 >/dev/null &

I don't know.
Quote:

Originally Posted by Char (Post 969211)
I haven't seen any absurd effects on CPU ever since you updated it the first time. dsmetool -t always crashes for me :(

Have you used the full path
dsmetool -t /fullpathtobinary

And of course, you can make your own .desktop file:


[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=camera_ap_camera
Exec=/usr/bin/camera-ui2
Icon=tasklaunch_camera
X-Osso-Service=com.nokia.cameraui2
X-Osso-Type=application/x-executable
X-Text-Domain=osso-camera-ui

poogash 2011-03-16 22:30

Re: camera-ui2 testers needed (updated 14.03)
 
i have noticed on after each photo is taken the transition from camera to the captured image has the open lens cover screen.
also when in front facing camera i need to restart camera to get back to the main camera.

does the front cam need extra software/drivers as it seems so dark?

nicolai 2011-03-16 22:45

Re: camera-ui2 testers needed (updated 14.03)
 
Quote:

Originally Posted by poogash (Post 969257)
i have noticed on after each photo is taken the transition from camera to the captured image has the open lens cover screen.

Yes, I will fix this.
Quote:

Originally Posted by poogash (Post 969257)
also when in front facing camera i need to restart camera to get back to the main camera.

Yes, capturing images with the front camera does not work. I added
the front camera only for the video mode, but I missed to
disable it when you change back to image capture mode.
Quote:

Originally Posted by poogash (Post 969257)
does the front cam need extra software/drivers as it seems so dark?

No, the front camera is just bad in low light environment.

Nicolai

nicolai 2011-03-16 23:18

Re: camera-ui2 testers needed (updated 17.03.)
 
Updated (see first post).

Fixed
- no "lenscover screen" in transition to the preview window.
- zoom key z/Z updates zoom slider
- switch back from frontcamera to backcamera when scene mode
changed to image capture mode.
- recorded videos are now in "recorded from device" category
- start image viewer/mediaplayer button in preview window
opens the image viewer/mediaplayer with the last taken image/video
(in the prior version the image viewer/ mediaplayer was just opened)
- preview window closes after deleting the image/video

Thank you for your feedback!

Nicolai


All times are GMT. The time now is 09:49.

vBulletin® Version 3.8.8