<br><blockquote style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;" class="gmail_quote">From: Thiago Sousa Santos <<a href="mailto:thiago.sousa.santos@collabora.co.uk">thiago.sousa.santos@collabora.co.uk</a>><br>
To: <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>Date: Tue, 15 Mar 2011 13:14:25 -0300<br>Subject: Re: Pushing images into a gstreamer pipeline<br>On Tue, 2011-03-15 at 17:05 +0100, Rodrigo Benenson wrote:<br>
> Hello gst developers !<br>
><br>
> After playing around with some toy applications, exploring the<br>
> documentation and googling around (including this mailing list<br>
> archives) I am still puzzled for what I would think is a rather common<br>
> use case.<br>
><br>
> I have an existing code that generates images (in memory) and I would<br>
> like to push these images into a gstreamer pipeline (to create a flv<br>
> video at the end).<br>
><br>
> I could not find an "obvious way to do it". My best guess will be to<br>
> dig in the source code of GstMultiFileSrc and its parent GstPushSrc,<br>
> to figure it out.<br>
><br>
> Could any of you point me out to the "obvious way" of doing this ?<br>
> Is it there any related piece of documentation/tutorial/example on this ?<br>
<br>
You want to use 'appsrc':<br>
<a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsrc.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-appsrc.html</a><br>
<br>
There should be examples in the source of gst-plugins-base, under<br>
tests/examples/app/</blockquote><div><br>Using appsrc would indeed work. IMHO the stumbling block will be figuring out how to put your image data into the proper format of a GstBuffer with a "caps" that ffmpegcolorspace can accept.<br>
<br>At this point, poking around the source for the videoscale element is the best I've found :(<br><br>Are there any elements to draw lines, circles, etc. into a GstBuffer to overlay onto a video frame?<br><br></div>