que estas tratando de hacer?<br><br><div class="gmail_quote">2009/1/4 Andres Colubri <span dir="ltr">&lt;<a href="mailto:andres.colubri@gmail.com">andres.colubri@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
I&#39;ve been struggling for a while with the appsrc element, and I wonder<br>
if anyone has any ideas about this. Basically, I&#39;m trying to capture the<br>
contents of the screen into a video file. I&#39;m not sure how to construct<br>
the pipeline to do it. I know that it has to start with an appsrc and<br>
end at a filesink, but I don&#39;t know how to initialize the appsrc (caps,<br>
max-bytes, etc) and what other intermediate elements are needed<br>
(encoders, demuxers). I looked at the examples that come with the source<br>
of appsrc, but these are for different scenarios (reading data from a<br>
file, streaming).<br>
<br>
Any help will be greatly appreciated.<br>
<br>
Thanks,<br>
<font color="#888888">Andres<br>
</font><div><div></div><div class="Wj3C7c"><br>
<br>
Jure Zitnik wrote:<br>
&gt; Hi Andres,<br>
&gt; The appsrc and appsink are not part of the binary gstreamer-plugins-bad<br>
&gt; package on ubuntu 8.10 (reasoning is that they &quot;still randomly change<br>
&gt; API and ABI&quot; :-)<br>
&gt; But you can always build them from source:<br>
&gt; apt-get source gstreamer0.10-plugins-bad<br>
&gt; cd gst-plugins-bad0.10-0.10.5 (you might need to cange the version here)<br>
&gt; ./configure<br>
&gt; make<br>
&gt;<br>
&gt; After successful build, you can copy required shared libraries manually<br>
&gt; (if you just need appsrc/appsink) as follows:<br>
&gt; cp gst/app/.libs/libgstapp.so /usr/lib/gstreamer-0.10/<br>
&gt; cp gst-libs/gst/app/.libs/libgstapp-0.10.so.0.0.0 &nbsp;/usr/local/lib<br>
&gt; You might need to create additional symbolic links in /usr/local/lib<br>
&gt; (both linking to libgstapp-0.10.so.0.0.0) : libgstapp-0.10.so.0 and<br>
&gt; <a href="http://libgstapp-0.10.so" target="_blank">libgstapp-0.10.so</a><br>
&gt;<br>
&gt; Now use gst-inspect to see if everything works fine...<br>
&gt;<br>
&gt; Jure<br>
&gt;<br>
&gt; Andres Colubri wrote:<br>
&gt;<br>
&gt;&gt; Hello,<br>
&gt;&gt;<br>
&gt;&gt; I have tried to use appsrc, but for some reason it doesn&#39;t seem to be<br>
&gt;&gt; recognized (I&#39;m using gst-plugins-bad 0.10.8 on ubuntu 0.8.10) by<br>
&gt;&gt; gstreamer. For example, when I run the appsrc_ex example, I get an<br>
&gt;&gt; assertion error right after<br>
&gt;&gt; app-&gt;src = gst_element_factory_make(&quot;appsrc&quot;, NULL);<br>
&gt;&gt; so seems that app-&gt;src is null<br>
&gt;&gt;<br>
&gt;&gt; Also, gst-inspect doesn&#39;t find neither appsrc nor appsink.<br>
&gt;&gt;<br>
&gt;&gt; Thanks<br>
&gt;&gt; Andres<br>
&gt;&gt;<br>
&gt;&gt; Wim Taymans wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt; On Wed, 2008-07-30 at 12:03 +0200, David SIORPAES wrote:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Hello,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; I would like to exchange buffers which are allocated and managed by an<br>
&gt;&gt;&gt;&gt; application of mine to and from a GStreamer pipeline.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; By reading the documentation it looks like the appsrc/appsink are the<br>
&gt;&gt;&gt;&gt; solution for me, but I am also reading here<br>
&gt;&gt;&gt;&gt; <a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/section-data-spoof.html</a><br>

&gt;&gt;&gt;&gt; that<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; &quot;New API is being developed at the moment to make data insertion and<br>
&gt;&gt;&gt;&gt; extraction less painful for applications. It can be found as GstAppSrc<br>
&gt;&gt;&gt;&gt; and GstAppSink in the gst-plugins-bad module. At the time of writing<br>
&gt;&gt;&gt;&gt; (October 2007), this API is not quite stable and ready yet, even though<br>
&gt;&gt;&gt;&gt; it may work fine for your purposes.&quot;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; So, may I ask whether it is safe to use such elements or not ? Or are<br>
&gt;&gt;&gt;&gt; there alternative solutions ?<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; The versionsof appsink/appsrc in the latest release of gst-plugins-bad<br>
&gt;&gt;&gt; are full-featured and ready for consumption. See<br>
&gt;&gt;&gt; <a href="http://webcvs.freedesktop.org/gstreamer/gst-plugins-bad/examples/app/" target="_blank">http://webcvs.freedesktop.org/gstreamer/gst-plugins-bad/examples/app/</a><br>
&gt;&gt;&gt; for a whole bunch of examples of different use cases.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Wim<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; Thanks,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; David S.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt; -------------------------------------------------------------------------<br>
&gt;&gt;&gt;&gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
&gt;&gt;&gt;&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
&gt;&gt;&gt;&gt; Grand prize is a trip for two to an Open Source event anywhere in the world<br>
&gt;&gt;&gt;&gt; <a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
&gt;&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt;&gt; gstreamer-devel mailing list<br>
&gt;&gt;&gt;&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt;&gt;&gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt; -------------------------------------------------------------------------<br>
&gt;&gt;&gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
&gt;&gt;&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
&gt;&gt;&gt; Grand prize is a trip for two to an Open Source event anywhere in the world<br>
&gt;&gt;&gt; <a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
&gt;&gt;&gt; _______________________________________________<br>
&gt;&gt;&gt; gstreamer-devel mailing list<br>
&gt;&gt;&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt;&gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt; ------------------------------------------------------------------------------<br>
&gt;&gt; SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.<br>
&gt;&gt; The future of the web can&#39;t happen without you. &nbsp;Join us at MIX09 to help<br>
&gt;&gt; pave the way to the Next Web now. Learn more and register at<br>
&gt;&gt; <a href="http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/" target="_blank">http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/</a><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; gstreamer-devel mailing list<br>
&gt;&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
&gt; ------------------------------------------------------------------------------<br>
&gt; SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.<br>
&gt; The future of the web can&#39;t happen without you. &nbsp;Join us at MIX09 to help<br>
&gt; pave the way to the Next Web now. Learn more and register at<br>
&gt; <a href="http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/" target="_blank">http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/</a><br>
&gt; _______________________________________________<br>
&gt; gstreamer-devel mailing list<br>
&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;<br>
&gt;<br>
<br>
<br>
------------------------------------------------------------------------------<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br>