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)

woody14619 2011-09-27 18:06

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
Quote:

Originally Posted by nicolai (Post 1042665)
Hi ahmedamaj,
I can not reproduce this. I made 50 shots yesterday on my
way home. And all worked.

Nicolai

Nicolai, I'm having the same issue now, getting 0 byte "image" files from snapped photos 90% of the time. (I did get it to work once, but I'm not sure how/why.) I tried doing a re-install of the fcam-drivers and the camera-ui package, and it didn't help. The odd part is, Bless and FCam work just fine. And camera-ui snaps the photo, shows the preview, and correctly names the file, it just has no contents.

I've tried using the stock voltage profile and my slightly tweaked one. I'm using k49 & CSSU... so yes, it's quite customized. I've tried saving both to internal memory and the uSD card with identical results. One other interesting side note is I'm finding it's not saving settings either. I turn on GPS tagging, but each time I reboot it's off again. Maybe it's a gconf-based issue?

Since I don't use the camera that often, and can still use FCam/Bless if I need to, I'd be happy to offer debug time if you like. I can run a custom version, turn on debug output, maybe even give you an IP to ssh into to check it out if you think it would help. Worst case I can always revert to the old UI, but I really do like the one you've made, minus the part about it not saving pictures. :D

int_ua 2011-09-27 18:50

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
Hi, I'm getting 'Playback error' sometimes. Looks like the video files sometimes are broken. Can't reproduce it, but it happened 2 times. Anyone else experiencing this?

nicolai 2011-09-27 19:19

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
Where are your images saved, device or memory card?
Overclocked?
Do you have sysklogd installed, if so are there any camera-ui
related logs?
Or run the camera-ui from the command line:
In X-Term as root:
dsmetook -k /usr/bin/camera-ui
(this stops the camera-ui from running in the background)
then as user(!)
/usr/bin/camera-ui
And post any error messages here.

Nicolai

woody14619 2011-09-27 21:13

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
Quote:

Originally Posted by nicolai (Post 1097532)
Where are your images saved, device or memory card?

I've tried both, and both fail.

Quote:

Originally Posted by nicolai (Post 1097532)
Overclocked?

I've tried both overclocked and with standard settings, both failed.

Quote:

Originally Posted by nicolai (Post 1097532)
Do you have sysklogd installed, if so are there any camera-ui related logs?

I haven't installed it, but if it would be helpful I'd be willing to give it a go.

Quote:

Originally Posted by nicolai (Post 1097532)
Or run the camera-ui from the command line: ... And post any error messages here.

Done, and I got two failure lines (highlighted in red) just as the file was trying to save. Looks like it's a dsp error?

Code:

-:14: Unable to locate image file in pixmap_path: "../../../icons/hicolor/scalable/hildon/camera_zoom_background.png"
-:16: border (or stretch) without valid file
-:20: Unable to locate image file in pixmap_path: "../../../icons/hicolor/scalable/hildon/camera_zoom_slider.png"
-:21: border (or stretch) without valid file
preview window topmost TRUE
create_node: dsp node allocate failed
sink_setcaps: dsp node creation failed

preview window topmost FALSE

Is there a package maybe that I don't have installed? Or one I should attempt a re-install on? I did a package list for dsp related stuff, output below:

Code:

~# dpkg -l | grep -i dsp
ii  dsp-manager  1.1.0-1+0m5  DSP handler and watchdog.
ii  gstreamer0.10-dsp  0.7.0-0maemo2.4+0m5  GStreamer plug-in for TI's OMAP DSP.
ii  libbridge2  0.200934.1+0m5  library to access TI DSP bridge
ii  libspeexdsp1  1.2~rc1-1maemo7+0m5  The Speex extended runtime library
ii  omap3430-dsp-baseimage-ti  0.201007-1+0m5  DSP base image
ii  omap3430-dsp-libraries-ti  0.201007-1+0m5  DSP codecs

Looking at the gstreamer plugins, I'm seeing one that looks out of place, not being at version 0.10-something:
Code:

ii  gstreamer0.10-plugins-camera  0.79-1+0m5  GStreamer plugins for camera application
Could that be the culprit?

Also, I assume I use dsmetool -t /usr/bin/camera-ui to re-enable the run-in-background feature again, yes? :) Thanks for any tips. I'll look at turning on sysloging tonight and see what more I can get debug wise from that.

EDIT: Installed sysklog, and enabled user debugging, got the following in the user log:

Code:

camera-ui[23559]: GLIB WARNING ** GStreamer - pad v4l2camsrc0:src returned caps which are not a real subset of its template caps
camera-ui[23559]: GLIB WARNING ** Gtk - Invalid icon size 216
camera-ui[23559]: GLIB WARNING ** GStreamer - pad v4l2camsrc0:src returned caps which are not a real subset of its template caps
camera-ui[23559]: GLIB WARNING ** Gtk - Invalid icon size 216
camera-ui[23559]: GLIB WARNING ** GStreamer - pad v4l2camsrc0:src returned caps which are not a real subset of its template caps
camera-ui[23559]: dspjpegenc0: dsp node allocate failed
camera-ui[23559]: dspjpegenc0: dsp node creation failed

EDIT: SOLUTION FOUND
So, after lots of hair pulling and using the much slower loading Bless for a while (great when you have time, sucks when you want it fast), I accidentally stumbled on a solution. Turns out, no matter how I tweaked my settings nothing worked until I installed the latest upstream drivers for dsp, via scripts freemangordon put together to pull them from the N950 repository (and some of which he rebuilt himself). Since then I've not seen this issue crop up again.

So if you're seeing this behavior, and nothing else has fixed it, it may be worth a shot to try installing the upstream drivers!

nicolai 2011-09-27 22:16

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
Quote:

Originally Posted by woody14619 (Post 1097603)
Looking at the gstreamer plugins, I'm seeing one that looks out of place, not being at version 0.10-something:
Code:

ii  gstreamer0.10-plugins-camera  0.79-1+0m5  GStreamer plugins for camera application
Could that be the culprit?

No, I have all the same versions.

Quote:

Originally Posted by woody14619 (Post 1097603)
EDIT: Installed sysklog, and enabled user debugging, got the following in the user log:

Code:

camera-ui[23559]: GLIB WARNING ** GStreamer - pad v4l2camsrc0:src returned caps which are not a real subset of its template caps
camera-ui[23559]: GLIB WARNING ** Gtk - Invalid icon size 216
camera-ui[23559]: GLIB WARNING ** GStreamer - pad v4l2camsrc0:src returned caps which are not a real subset of its template caps
camera-ui[23559]: GLIB WARNING ** Gtk - Invalid icon size 216
camera-ui[23559]: GLIB WARNING ** GStreamer - pad v4l2camsrc0:src returned caps which are not a real subset of its template caps
camera-ui[23559]: dspjpegenc0: dsp node allocate failed
camera-ui[23559]: dspjpegenc0: dsp node creation failed


Ah, I remember that once I had the same error
"v4l2camsrc0:src returned caps which are not a real subset of its template caps"
It vanished after I removed (or reinstalled?) bless900.
I think I had an older version of bless or the fcam-drivers.

woody14619 2011-09-27 23:47

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
Quote:

Originally Posted by nicolai (Post 1097631)
Ah, I remember that once I had the same error
"v4l2camsrc0:src returned caps which are not a real subset of its template caps"
It vanished after I removed (or reinstalled?) bless900.
I think I had an older version of bless or the fcam-drivers.

Hmm.. see, I've tried that already though. I've also tried reverting to the standard camera-ui, which yields an identical series of failures. Right now I'm trying removing the fcam-drivers completely (they were at 1.0.7-2) and seeing if maybe it's one of the apps associated with them that's causing it. The only ones claiming a dependency are mir-translator, blessn900, fcamera and hdrcapture.

Does camera-ui actually use the fcam drivers at all? I'm guessing it doesn't? Since after uninstalling it still tries to take pictures? :P What package controls the dsp stuff? In particular the dsp-jpeg-encoder stuff? If there a lib package for that I can try re-installing? I'd really hate to have this boil down to a re-flash. :confused:


Edit:
So, I'm not sure what caused it to work again, but it's mainly working. I'm still getting an occasional "dsp_thread: failed waiting for events", but those are pretty rare. I wound up purging and re-installing most of the camera apps, and the fcam-drivers package. I also re-installed anything with dsp in it's title from package manager, as well as the camera-firmware package. (That was one of the last few I did before it started working.)

Whatever the cause, I'm no longer seeing the error messages I was seeing before about "template caps" when things start up. I'm also not seeing anything special outside the normal debug output about the bad icons now. :p So, if someone has a similar problem, a solution may be to simply re-install the dsp packages and camera-firmware and see if that helps? I love my quirky little device, but there are times I really have to wonder how close it's coming to being the next "Johnny 5".

Thanks for the help! May not seem like much, but even knowing someone else had this issue and solved it was encouraging. :rolleyes:

SHARP66 2011-10-03 23:40

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
still waiting for my image with alpha channel on top of camera screen.
for: -golden rule
-photo reference

i wander why no one needs something like that

nicolai 2011-10-04 08:20

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
Don't have much use of this, but I can try to implement this.
Can you provide me with some example grids you would like
to have.
One problem that may arise is, I don't know if the aspect ratio
and field of view of the viewfinder image is always the same as for
the resulting image.

Would you like to test this for me, capture an image and
make a screenshot of the viewfinder image and compare both.

Nicolai

petur 2011-10-04 11:38

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
nicolai, the grid that most cameras implement is just a 3x3 grid, ie divide the screen in 9 equal chunks. Never used it though, gets in the way of proper compositions :)

demolition 2011-10-04 12:34

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
Apologies if I've missed any reference to this but I'm not sure how to resolve the following:

1. Problem: Exposure duration control.
I would like to explicitly set the amount of time the shutter is open and/or have the ability to hold the shutter open while the camera button is being held down. For example in low-light situations

2. Problem: Image "temperature"
I hope that's the correct term. I would like to be able to increase the saturation of red-colouring and reduce that of blue-green. It may be that the physical mechanism for capturing the images is insufficiently sensitve to longer wavelengths (i.e. oranges and reds). If so, this problem cannot be satisfactorally addressed.

Grateful for any help...

Should I raise these as feature-request bugs?


All times are GMT. The time now is 15:33.

vBulletin® Version 3.8.8