![]() |
Fremantle GStreamer
Hi all,
I'm willing to test GStreamer applications on Fremantle hardware. It would really help multimedia developers if someone could provide GStreamer Editor for Fremantle, to help figure out how to build correct pipelines. |
Re: Fremantle GStreamer
Ok, basic gstreamer pipeline from camera to screen:
v4l2src device=/dev/video0 ! autovideosink For high resolution (back) camera, it is /dev/video0 and for the front web camera, it is /dev/video1. The output needs to be massaged, so that the aspect ratio is correct, etc. |
Re: Fremantle GStreamer
Can you change the self.player line to the one below and try again. Post the output here.
Code:
self.player = gst.parse_launch ('v4l2src device=/dev/video0 ! video/x-raw-yuv,width=320,height=240,framerate=(fraction)15/1 ! autovideosink') |
Re: Fremantle GStreamer
Just trying that pipeline from the command line (gst-launch), I start getting "cannot negotiate format" as soon as I start adding the width, height, or framerate values...
How do you check what the device's capabilities are? There's got to be a way to query the device for acceptable parameters... |
Re: Fremantle GStreamer
Use the following generic string instead. It should either work or dump out an error message with some width/height info.
Code:
self.player = gst.parse_launch ('v4l2src device=/dev/video0 ! autovideosink') |
Re: Fremantle GStreamer
Yes, that very simple pipeline works. It displays the back camera's view in a square window in the middle of the screen (above your two buttons). I'd post a screenshot, but it appears that the screenshot utility doesn't capture the picture, just a black square where the picture is.
There was no output on the command line. |
Re: Fremantle GStreamer
Just a note for future reference, since it is in a completely different thread; daperl's original camera script can be found here.
|
Re: python / gstreamer / camera / xvimagesink issues
Ok, so the output of the large camera is 640 x 492 encoded as YUYV.
|
Re: python / gstreamer / camera / xvimagesink issues
Actually although that gives you good Y data, the U and V data are probably arranged a little differently in the data stream (as for each of these you get two images side by side).
More testing... |
Re: Fremantle GStreamer
The script you pointed to doesn't really do anything. The following really, really bad hack will actually take a picture and create a .png file on an n800. As is, it won't work on an n900, but the changes should be obvious.
Also, the file creation is really, really slow; about 25 seconds. It's strictly just a hard-coded, proof-of-concept that a picture can be taken on a tablet with just using PyGTK and GStreamer. Obviously, plenty of room for improvement. Code:
#! /usr/bin/env python |
All times are GMT. The time now is 08:22. |
vBulletin® Version 3.8.8