maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [ANNOUNCE] Mirror (https://talk.maemo.org/showthread.php?t=33098)

eiffel 2009-10-20 17:08

Re: [ANNOUNCE] Mirror
 
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

daperl 2009-10-20 17:13

Re: [ANNOUNCE] Mirror
 
Quote:

Originally Posted by matteone (Post 352807)
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

qole 2009-10-20 17:21

Re: [ANNOUNCE] Mirror
 
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 2009-10-20 17:36

Re: [ANNOUNCE] Mirror
 
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

attila77 2009-10-20 17:40

Re: [ANNOUNCE] Mirror
 
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)

lcuk 2009-10-20 17:50

Re: [ANNOUNCE] Mirror
 
Quote:

Originally Posted by eiffel (Post 352853)
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 ?

attila77 2009-10-20 17:53

Re: [ANNOUNCE] Mirror
 
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/

eiffel 2009-10-20 17:56

Re: [ANNOUNCE] Mirror
 
Quote:

Originally Posted by lcuk (Post 352906)
isn't that a little redundant ?

precisely! :D

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

attila77 2009-10-20 18:00

Re: [ANNOUNCE] Mirror
 
Quote:

Originally Posted by lcuk (Post 352906)
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 ! :D 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 :D

qole 2009-10-20 18:04

Re: [ANNOUNCE] Mirror
 
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


All times are GMT. The time now is 00:23.

vBulletin® Version 3.8.8