[gst-devel] How to create a IPLImage

lubiao lubiao.py at gmail.com
Fri Apr 9 12:57:39 CEST 2010


On Fri, Apr 9, 2010 at 4:30 PM, Carlos Castro <carloscastro7 at gmail.com> wrote:
> Hi everyone,
>
> I'm trying to get a snapshot from a webcam that is continuously
> sending the picture to a GTK+ app using a gtreamer pipeline, so I can
> save that snapshot as a IPLImage, to later use it with OpenCV.
>
> I searched the web to find the answer and I found that I could use a
> gstbuffer to store the frame that gstreamer grabs from the v4l2src,
> but I couldn't get it to work...  How do I get the data from the
> pipeline to the buffer?
>
> Thanks,
> Carlos Castro
>
snapshot  example

gst-launch uridecodebin uri=file:///path/to/some/file ! \
  ffmpegcolorspace ! videoscale !
  pngenc snapshot=false ! multifilesink location=output-%05d.png

http://www.gstreamer.net/wiki/MultiFileSink




More information about the gstreamer-devel mailing list