[gst-devel] using video4linux

Benjamin Otte in7y118 at public.uni-hamburg.de
Thu Mar 4 07:16:06 CET 2004


(I'm assuming use of GStreamer 0.7, not 0.6 as the gst-launch syntax changed 
quite a bit)

  gst-launch v4lsrc ! filesink location=/path/to/file.raw
This outputs to a file in the format the v4lsrc tries to use.

  gst-launch v4lsrc ! fdsink
This outputs to stdout. Use "... fdsink fd=<nr>" to output to some other 
output, though the pipe must already be open, which means you can only use 
stdout or stderr from gst-launch.

  gst-launch v4lsrc ! ffcolorspace ! video/x-raw-rgb ! fdsink
This inserts a colorspace converter (ffcolorspace) and defines the format of 
the last link to be RGB video. GStreamer uses the mimetype video/x-raw-rgb for 
this. 

To find out more about mime types and formats, look at the output of gst-
inspect <pluginname> or ask Ronald where he documented them. I currently don't 
remember. ;)
The man page to gst-launch might help, too. THough a lot of people claim it's 
confusing...

Benjamin


Quoting Patrick R Griffin <griffinp at MIT.EDU>:

> Hello-
> 	I'm working on a project at MIT's Computer Science and Artificial
> Intelligence Laboratory, and was wondering if I could get some help
> using the video 4 linux plugins.  In particular, I'd like to find a way
> to capture video from a card and stream it into a pipe or file.  The
> formatting at the sink end isn't too important, although frames of raw
> RGB would be nice.  The idea would be to then hook the file/pipe output
> into a video processing system that we're working on.
> 	If anyone could help me figure out a gst-launch command or find an
> example code snippet, I'd appreciate it.  If you'd like to know a bit
> more about the project. the group website is at cag.lcs.mit.edu/raw.
> 
> Thanks-
>   Patrick Griffin
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
> 






More information about the gstreamer-devel mailing list