maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Very dark front camera on my N900!! (https://talk.maemo.org/showthread.php?t=65521)

Cybergr 2010-11-12 15:26

Very dark front camera on my N900!!
 
I was wondering if there is a script or app that will permit me to change the brightness and contrast on my N900 front camera?!

lvlonkey 2010-11-12 15:30

Re: Very dark front camera on my N900!!
 
yeah...i would like to know also. the front camera is pretty terrible

Cybergr 2010-11-12 15:36

Re: Very dark front camera on my N900!!
 
Even with the default Kernel PR1.3 the results are horrible..!!Any suggestion??

James_Littler 2010-11-12 15:40

Re: Very dark front camera on my N900!!
 
There is a configuration file you can change to adjust contrast and brightness, but I haven't got a clue where it is, sorry.

Cybergr 2010-11-12 15:43

Re: Very dark front camera on my N900!!
 
We need that file..!Hope that someone wanna help us on this!

Joseph9560 2010-11-12 15:45

Re: Very dark front camera on my N900!!
 
agree with you all but what are you guys using iy for? internet call? or does 3g video call works in pr 1.3? i saw somewhere in setting saying show 3g/video call option. one of the service provider in my country started offering video calls at rate of normal call but sad my n900 is just like those iphones with kind of useless front cam(not doing itd primary function).

Cybergr 2010-11-12 15:53

Re: Very dark front camera on my N900!!
 
Ok...the other day i was looking to make a video call with one of my friend via Skype video call, but i noticed that the quality was so bad i can hardly see my self in there and u must imagine that i was in a well lighted room!!

PS: With PR 1.2 wasn`t much better but lets say it was ok!!

James_Littler 2010-11-12 15:54

Re: Very dark front camera on my N900!!
 
To change the brightness and contrast of front camera

gst-launch v4l2src device=/dev/video1 ! ffmpegcolorspace ! videobalance brightness=0.5 contrast=1.2 ! autovideosink

The "brightness" property

Allowed values: [-1,1] Default value: 0

The "contrast" property

Allowed values: [0,2] Default value: 1


You might need to install gstreamer0.10-plugins-good-extra for the video balance pipeline to be present.

Apparently you can change gamma too but I've not found that yet.

BTW I found all this using power search and searching the terms 'front brightness', just so you know.

Cybergr 2010-11-12 16:04

Re: Very dark front camera on my N900!!
 
I had searched before i post here and had found this solution too..Tried to play with some different values but with no luck to get a good result..Can u tell me the values u use now?

PS: Gamma will do the trick i think!

Cybergr 2010-11-12 16:52

Re: Very dark front camera on my N900!!
 
Tried again a variety of different values for brightness and contrast.Cant get a good result..Forgot to mention that all i get looks like i am using a night vision scope..all has a tint of green and black!

*Sonic* 2010-11-12 16:56

Re: Very dark front camera on my N900!!
 
Have you guys got a screen protector ?

I have and the camera is very dark but that is because my screen protector doesnt have a cut out for the front camera lens :)

James_Littler 2010-11-12 16:59

Re: Very dark front camera on my N900!!
 
Sounds like we need to work out the gamma property.

antezz 2010-11-12 17:05

Re: Very dark front camera on my N900!!
 
I googled for gst-launch gamma and i found to set gamma you use "gamma gamma=value" like

gst-launch v4l2src device=/dev/video1 ! ffmpegcolorspace ! videobalance brightness=0.5 contrast=1.2 ! gamma gamma=0.5 ! autovideosink

It do change something but.. you still look like the exorcist in night vision.

Cybergr 2010-11-12 17:31

Re: Very dark front camera on my N900!!
 
Quote:

Originally Posted by antezz (Post 871683)
I googled for gst-launch gamma and i found to set gamma you use "gamma gamma=value" like

gst-launch v4l2src device=/dev/video1 ! ffmpegcolorspace ! videobalance brightness=0.5 contrast=1.2 ! gamma gamma=0.5 ! autovideosink

It do change something but.. you still look like the exorcist in night vision.

Hahahaha!!!Nice one!!Btw i ll try me too and post back!!

PS. Seems like the values doesnt changed at all...I mean that when i changed the values i can see the results in the gst-launch window but with the miiror app. all remain the same.


-*Sonic* i have a screen protector but with a cut out for the front camera.

sixracer 2010-11-19 22:38

Re: Very dark front camera on my N900!!
 
I have a similar issue on my primary camera. it is very dark and yellowy and flash has stopped working. I updated my kernel to Titan's 46 and newest drivers for fcam from Devel to solve Operation Failed issue. Cam works now but images are terrible.

TiagoTiago 2010-11-19 23:37

Re: Very dark front camera on my N900!!
 
Skype seems to know how to play with the camera in mine, other programs just grabs the image in whatever state the camera was left (bad if i didn't try a skype video call, and better if i did); there still some issues like slight green vignetting and hot pixels, but that is nothing compared to what it is like when Skype hasn't touched it, without the tweaks its pretty much unusable.

Wikiwide 2010-11-20 00:17

Re: Very dark front camera on my N900!!
 
Quote:

Originally Posted by Cybergr (Post 871707)
PS. Seems like the values doesnt changed at all...I mean that when i changed the values i can see the results in the gst-launch window but with the miiror app. all remain the same.

Yes, of course, this command changes values only for this particular gst-launch, not for other applications, not permanently. This command can be replacement for mirror app, but nothing more.

Try using the front camera in bright sunny cloudless day.


All times are GMT. The time now is 16:53.

vBulletin® Version 3.8.8