![]() |
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 |
Re: [ANNOUNCE] Mirror
Quote:
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 |
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. |
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 |
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)
|
Re: [ANNOUNCE] Mirror
Quote:
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 ? |
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/
|
Re: [ANNOUNCE] Mirror
Quote:
(or, as they say on slashdot, "whoosh!") |
Re: [ANNOUNCE] Mirror
Quote:
|
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 |
Re: [ANNOUNCE] Mirror
I just installed mirror 1.0-2 and it installed libspeex1 gstreamer0.10-plugins-good-extra, but when I run it I get:
Quote:
anidel EDIT: forgot to say that I've installed it via apt-get install mirror |
Re: [ANNOUNCE] Mirror
How about swapping out v4l2src for v4l2camsrc.
|
Re: [ANNOUNCE] Mirror
Quote:
|
Re: [ANNOUNCE] Mirror
Quote:
Also, please try v4l2camsrc. I just looked at the source, it's plenty different than v4l2src. |
Re: [ANNOUNCE] Mirror
Ok, last pipeline. This one crops the top and the bottom so it fills the whole mirror window:
gst-launch-0.10 v4l2src device=/dev/video1 ! "video/x-raw-yuv,pixel-aspect-ratio=(fraction)1/1" ! ffmpegcolorspace ! videoflip method=4 ! videocrop top=60 bottom=160 right=122 ! xvimagesink force-aspect-ratio=true EDIT: v4l2camsrc looks identical to v4l2src :( |
Re: [ANNOUNCE] Mirror
Can we add a zoom feature so you can dial into that pimple? (Perhaps the swirly zoom from the browser ;) )
|
Re: [ANNOUNCE] Mirror
Quote:
|
Re: [ANNOUNCE] Mirror
Quote:
|
Re: [ANNOUNCE] Mirror
Quote:
Anyway, it's working fine. It's quite fast, but yes, the aspect ratio is to be fixed. No way to take snapshots? :) |
Re: [ANNOUNCE] Mirror
The zoom feature wouldn't be too hard, just crop the picture more and the remaining area will be hardware scaled to fill the screen.
|
Re: [ANNOUNCE] Mirror
Guys
I'm sorry to report a Portrait use-case at last !!!:D Mike C |
Re: [ANNOUNCE] Mirror
Quote:
|
Re: [ANNOUNCE] Mirror
I already started wrapping it in a pinch of python after connys remarks as a prospective v2, but will certainly take a look.
|
Re: [ANNOUNCE] Mirror
Quote:
|
Re: [ANNOUNCE] Mirror
Good news everyone !
Apparently the vertical band problem was a firmware issue that is already fixed in the upcoming firmware, and is confirmed to work OK with mirror. https://bugs.maemo.org/show_bug.cgi?id=5663 |
Re: [ANNOUNCE] Mirror
If only we could get an OTA!!!
so many bug fixes and no more firmware updates :( |
Re: [ANNOUNCE] Mirror
Btw, you may also want to have a look at this interesting piece of code:
http://wiki.maemo.org/Documentation/...mera_API_Usage |
Re: [ANNOUNCE] Mirror
I guess this widget would be great also if you think you are being followed just hold the n900 a little to the left of you and so you can see behind you. Every spy needs this.
|
Re: [ANNOUNCE] Mirror
Quote:
|
Re: [ANNOUNCE] Mirror
Quote:
|
Re: [ANNOUNCE] Mirror
I was hoping to see some cropping in the latest version... I guess you can leave the dark band in there for now, since that will be fixed, but crop the top and bottom to match the screen's aspect ratio, so that the user's face isn't stretched.
|
Re: [ANNOUNCE] Mirror
The next version will be a 2.0, which is a python script, so I can actually call it an app without blushing. It will contain all the mentioned goodies and hopefully please the testers so it has at least a remote chance of getting the 10 karma required for extras :)
|
Re: [ANNOUNCE] Mirror
2 Attachment(s)
I've attached a compiled FREMANTLE_ARMEL version of the camerabin directory from gst-plugins-bad0.10-0.10.13-git209/tests/examples.
Inside the camera directory you should be able to type: ./gst-camera It's a shell script that I think runs the gst-camera binary that's inside .libs. Maybe one of you n900 guys could give it a try and let us know what you see. EDIT: Here's a screen shot from my hacked x86 version: Attachment 4476 I think the bottom slider is for zooming. |
Re: [ANNOUNCE] Mirror
gunzip cb.gz just produces a file called cb...?
EDIT: Ok, it's a TAR. When I "tar xvf cb" it expands into a directory called "camerabin". |
Re: [ANNOUNCE] Mirror
daperl: The script is designed to be run inside scratchbox, and it just doesn't like being run on a real device. I replaced a bunch of scratchbox-specific stuff, but it still doesn't work, and I can't figure out what's going on. It seems to delete .libs/lt-gst-camera and then attempts to run it. What's up with that?
|
Re: [ANNOUNCE] Mirror
Quote:
|
Re: [ANNOUNCE] Mirror
Quote:
cd .libs ./gst-camera |
Re: [ANNOUNCE] Mirror
./gst-camera: line 1: syntax error: "(" unexpected
|
Re: [ANNOUNCE] Mirror
Quote:
|
Re: [ANNOUNCE] Mirror
1 Attachment(s)
Here, try this one.
|
| All times are GMT. The time now is 00:23. |
vBulletin® Version 3.8.8