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)

nicolai 2011-10-05 10:26

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

Originally Posted by TiagoTiago (Post 1102897)
I mean the API, not the programs using the API; make your program use the fcam API to tweak the camera parameters.

I think the CSSU shouldn't rely on this API, and it requires its own
kernel modul.

Quote:

Originally Posted by TiagoTiago (Post 1102937)
If it's intended to replace the original, shouldn't all efforts be done to include all the functionalities of the original regardless of which path is taken in the background, so that people won't need to pass on using it 'cause it's missing stuff?

There isn't functionality missing ...
Quote:

Originally Posted by TiagoTiago (Post 1103037)
Click on the wrench, you got iso sensitivity and exposure compensation.

... this is already possible in the camera-ui replacement.
I can control the ISO settings and the exposure compensation
the same way as the builtin camera-ui.
It has the same features, and the same bugs:
https://bugs.maemo.org/show_bug.cgi?id=10384

It is just not possible to fully control the exposure setting
or to disable the autoexposure at all.

TiagoTiago 2011-10-05 10:53

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
Oh i see, sorry; i haven't got around trying it myself, i was just going with what was being said.

demolition 2011-10-05 16:32

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

Originally Posted by nicolai (Post 1103207)
I think the CSSU shouldn't rely on this API, and it requires its own
kernel modul.

... There isn't functionality missing ...

In fact, the CSSU camera-ui has made functionality available that the original either made hard to access or didn't have, so great job!

Quote:

It is just not possible to fully control the exposure setting
or to disable the autoexposure at all.
Is there exposure control in the Meego camera pipeline? I assume the UI is using presets but it would be good to know so action on this isn't futile.

About the missign height/width variables - does it work by storing px res and aspect ratios? Can these values (h & w) be synthesised?

freemangordon 2011-10-06 08:38

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

Originally Posted by nicolai (Post 1102787)
video-capture-width
video-capture-height
it seems, these parameters don't exist in maemo 5s camerabin

What is the problem if just set (960/1280)x720 for resolution and
(4/3)/(16/9) for aspect ratio here. That should work looking at the code path from camera-ui to camerabin in gstreamer-plugins-bad.

The only thing that will be needed is several new defines somewhere here

#define G_DIGICAM_CAMERABIN_VIDEO_4X3_HD_WIDTH 960;
#define G_DIGICAM_CAMERABIN_VIDEO_4X3_HD_HEIGHT 720;

#define G_DIGICAM_CAMERABIN_VIDEO_16X9_HD_WIDTH 1280;
#define G_DIGICAM_CAMERABIN_VIDEO_16X9_HD_HEIGHT 720;


And an UI to set that in camera-ui :D

nicolai 2011-10-06 09:05

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
I already tried this. (Right after your thread about 720 recording).

Somewhere down the pipeline from the gdigicam camera API
to gstreamer-camerabin and gstreamer-v4l2camsrc the resolution
change stops the pipeline.

I think I tracked this down to the number of buffers used in
gst_v4l2camsrc_init in
gstreamer0.10-plugins-camera-0.79\gst\v4l2cam\gstv4l2camsrc.c
So the resolultion switch may work but it can not change back
to the streaming state. More testing is needed.

Nicolai

freemangordon 2011-10-06 09:12

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
Do you mind to share sources somewhere on gitorious so I can test too, without redoing what you've already done?

nicolai 2011-10-06 09:37

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
No :-)
No real useful code. Just some random / try&error console outputs.
I (or you or someone else) need to take a deeper look at gstv4l2camsrc.c
and find out exactly what v4l2camsrc parameter are needed.

Nicolai

freemangordon 2011-10-06 10:47

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

Originally Posted by nicolai (Post 1103925)
No :-)
No real useful code. Just some random / try&error console outputs.
I (or you or someone else) need to take a deeper look at gstv4l2camsrc.c
and find out exactly what v4l2camsrc parameter are needed.

Nicolai

Have no idea what is the problem on your side, but works like charm here , camera-ui records in 720p ,give me a couple of minutes until I upload source on gitorous

freemangordon 2011-10-06 11:30

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
gdigicam source and binaries here

camera-ui here

HD 4x3 does not work, have to find correct resolution.

freemangordon 2011-10-06 12:05

Re: camera-ui2 (now a part of CSSU) (updated 09. May)
 
@nikolai - I think I know what was your problem - KP48. It has only 6MB videomemory, while 720p requires 8MB. So you need KP49.


All times are GMT. The time now is 10:34.

vBulletin® Version 3.8.8