Notices


Reply
Thread Tools
eiffel's Avatar
Posts: 600 | Thanked: 742 times | Joined on Sep 2008 @ England
#41
Thanks for that screenshot, matteone. It shows that the resolution of the front-facing camera may be the limiting factor.

To improve the quality of the image, perhaps the application can be modified to use the main camera. Of course the difficulty with that approach is that you can't see the screen while you're pointing the main camera at your face. But if you have a small mirror with you, you can position it so that you can see the N900 screen.

Regards,
Roger
 

The Following User Says Thank You to eiffel For This Useful Post:
daperl's Avatar
Posts: 2,427 | Thanked: 2,986 times | Joined on Dec 2007
#42
Originally Posted by matteone View Post
And the program runs without any problem. But ... ... in the scree I see a darker band than the rest on the right side.
I tried on 2 N900 ... and the results is the same.
Is this a problem of the internal camera or ... what is this ?
That looks close to 160 pixels. Try the following:

Code:
gst-launch-0.10 v4l2src device=/dev/video1 ! video/x-raw-yuv,width=640,height=480,framerate=30/1 ! ffmpegcolorspace ! videoflip method=4 ! autovideosink
__________________
N9: Go white or go home
 

The Following 2 Users Say Thank You to daperl For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#43
Same problem as always, daperl:

...could not negotiate formate.... check your filtered caps, if any....

As soon as you try to tidy up the output of the camera, it gorks.

EDIT: Setting it to ... ! video/x-raw-yuv,width=640 ! ... works, but it looks exactly the same.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2009-10-20 at 17:24.
 

The Following 2 Users Say Thank You to qole For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#44
Ok this isn't stretched anymore, but it still has the dark band:

gst-launch-0.10 v4l2src device=/dev/video1 ! "video/x-raw-yuv,pixel-aspect-ratio=(fraction)1/1" ! ffmpegcolorspace ! videoflip method=4 ! xvimagesink force-aspect-ratio=true
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 2 Users Say Thank You to qole For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#45
The dark band problem is deeper, either electronics or kernel driver level. It's there even I don't use gstreamer at all (=direct v4l2)
 

The Following 2 Users Say Thank You to attila77 For This Useful Post:
lcuk's Avatar
Posts: 1,635 | Thanked: 1,816 times | Joined on Apr 2008 @ Manchester, England
#46
Originally Posted by eiffel View Post
Thanks for that screenshot, matteone. It shows that the resolution of the front-facing camera may be the limiting factor.

To improve the quality of the image, perhaps the application can be modified to use the main camera. Of course the difficulty with that approach is that you can't see the screen while you're pointing the main camera at your face. But if you have a small mirror with you, you can position it so that you can see the N900 screen.

Regards,
Roger

just an observation.

you want to use a small mirror in your possession to hack together an app supposed to work as a mirror?

isn't that a little redundant ?
__________________
liqbase sketching the future.
like what i say? hit the Thanks, thanks!
twitter.com/lcuk
 

The Following User Says Thank You to lcuk For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#47
In case some devs wants to track progress or make their own packages, I opened a garage project for this 'app' (talk about waste of resources ). The address is https://garage.maemo.org/projects/mirrorapp/
 

The Following 3 Users Say Thank You to attila77 For This Useful Post:
eiffel's Avatar
Posts: 600 | Thanked: 742 times | Joined on Sep 2008 @ England
#48
Originally Posted by lcuk View Post
isn't that a little redundant ?
precisely!

(or, as they say on slashdot, "whoosh!")
 

The Following User Says Thank You to eiffel For This Useful Post:
Posts: 3,319 | Thanked: 5,610 times | Joined on Aug 2008 @ Finland
#49
Originally Posted by lcuk View Post
isn't that a little redundant ?
Ever tried to take a look at the back of your head with a single mirror ? Can get tricky ! The solution is simple though, use TWO N900s and display the main cam image on the OTHER unit. Now THAT is a PUSH project right there
 

The Following 4 Users Say Thank You to attila77 For This Useful Post:
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#50
Ok, so here's how to get rid of the dark band. Use "videocrop" to crop it away!

The new pipeline to produce a properly sized image with no dark band:

gst-launch-0.10 v4l2src device=/dev/video1 ! "video/x-raw-yuv,pixel-aspect-ratio=(fraction)1/1" ! ffmpegcolorspace ! videoflip method=4 ! videocrop right=122 ! xvimagesink force-aspect-ratio=true
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!
 

The Following 2 Users Say Thank You to qole For This Useful Post:
Reply

Tags
beauty, brush, i'm so pretty, is that a booger?, makeup, mirror, vanity


 
Forum Jump


All times are GMT. The time now is 14:24.