que estas tratando de hacer?<br><br><div class="gmail_quote">2009/1/4 Andres Colubri <span dir="ltr"><<a href="mailto:andres.colubri@gmail.com">andres.colubri@gmail.com</a>></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've been struggling for a while with the appsrc element, and I wonder<br>
if anyone has any ideas about this. Basically, I'm trying to capture the<br>
contents of the screen into a video file. I'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'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>
> Hi Andres,<br>
> The appsrc and appsink are not part of the binary gstreamer-plugins-bad<br>
> package on ubuntu 8.10 (reasoning is that they "still randomly change<br>
> API and ABI" :-)<br>
> But you can always build them from source:<br>
> apt-get source gstreamer0.10-plugins-bad<br>
> cd gst-plugins-bad0.10-0.10.5 (you might need to cange the version here)<br>
> ./configure<br>
> make<br>
><br>
> After successful build, you can copy required shared libraries manually<br>
> (if you just need appsrc/appsink) as follows:<br>
> cp gst/app/.libs/libgstapp.so /usr/lib/gstreamer-0.10/<br>
> cp gst-libs/gst/app/.libs/libgstapp-0.10.so.0.0.0 /usr/local/lib<br>
> You might need to create additional symbolic links in /usr/local/lib<br>
> (both linking to libgstapp-0.10.so.0.0.0) : libgstapp-0.10.so.0 and<br>
> <a href="http://libgstapp-0.10.so" target="_blank">libgstapp-0.10.so</a><br>
><br>
> Now use gst-inspect to see if everything works fine...<br>
><br>
> Jure<br>
><br>
> Andres Colubri wrote:<br>
><br>
>> Hello,<br>
>><br>
>> I have tried to use appsrc, but for some reason it doesn't seem to be<br>
>> recognized (I'm using gst-plugins-bad 0.10.8 on ubuntu 0.8.10) by<br>
>> gstreamer. For example, when I run the appsrc_ex example, I get an<br>
>> assertion error right after<br>
>> app->src = gst_element_factory_make("appsrc", NULL);<br>
>> so seems that app->src is null<br>
>><br>
>> Also, gst-inspect doesn't find neither appsrc nor appsink.<br>
>><br>
>> Thanks<br>
>> Andres<br>
>><br>
>> Wim Taymans wrote:<br>
>><br>
>><br>
>>> On Wed, 2008-07-30 at 12:03 +0200, David SIORPAES wrote:<br>
>>><br>
>>><br>
>>><br>
>>>> Hello,<br>
>>>><br>
>>>> I would like to exchange buffers which are allocated and managed by an<br>
>>>> application of mine to and from a GStreamer pipeline.<br>
>>>><br>
>>>> By reading the documentation it looks like the appsrc/appsink are the<br>
>>>> solution for me, but I am also reading here<br>
>>>> <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>
>>>> that<br>
>>>><br>
>>>> "New API is being developed at the moment to make data insertion and<br>
>>>> extraction less painful for applications. It can be found as GstAppSrc<br>
>>>> and GstAppSink in the gst-plugins-bad module. At the time of writing<br>
>>>> (October 2007), this API is not quite stable and ready yet, even though<br>
>>>> it may work fine for your purposes."<br>
>>>><br>
>>>> So, may I ask whether it is safe to use such elements or not ? Or are<br>
>>>> there alternative solutions ?<br>
>>>><br>
>>>><br>
>>>><br>
>>> The versionsof appsink/appsrc in the latest release of gst-plugins-bad<br>
>>> are full-featured and ready for consumption. See<br>
>>> <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>
>>> for a whole bunch of examples of different use cases.<br>
>>><br>
>>> Wim<br>
>>><br>
>>><br>
>>><br>
>>>> Thanks,<br>
>>>><br>
>>>> David S.<br>
>>>><br>
>>>><br>
>>>><br>
>>>><br>
>>>> -------------------------------------------------------------------------<br>
>>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
>>>> Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
>>>> Grand prize is a trip for two to an Open Source event anywhere in the world<br>
>>>> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><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>
>>>><br>
>>>><br>
>>>><br>
>>> -------------------------------------------------------------------------<br>
>>> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
>>> Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
>>> Grand prize is a trip for two to an Open Source event anywhere in the world<br>
>>> <a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><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>
>>><br>
>>><br>
>>><br>
>>><br>
>> ------------------------------------------------------------------------------<br>
>> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.<br>
>> The future of the web can't happen without you. Join us at MIX09 to help<br>
>> pave the way to the Next Web now. Learn more and register at<br>
>> <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>
>> _______________________________________________<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>
>><br>
>><br>
><br>
><br>
> ------------------------------------------------------------------------------<br>
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.<br>
> The future of the web can't happen without you. Join us at MIX09 to help<br>
> pave the way to the Next Web now. Learn more and register at<br>
> <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>
> _______________________________________________<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>
><br>
><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>