[gst-devel] Using a Bin
Andoni Morales
ylatuya at gmail.com
Sat Oct 16 01:30:17 CEST 2010
El día 16 de octubre de 2010 00:28, José Luis Segura Lucas
<josel.segura at gmx.es> escribió:
> I just try to use gst.Bin directly and it works (using ghost pads and
> so...).
>
> The only way I can't get it working is creating the Bin using the
> function parse_bin_from_description. :-(
You need to set the second argument to True, this will automatically
create a ghost pad for unliked pad in the bin.
Andoni
>
> El Sat, 16 Oct 2010 00:13:48 +0200
> José Luis Segura Lucas <josel.segura at gmx.es> escribió:
>> El Fri, 15 Oct 2010 14:23:07 -0300
>> Luciana Fujii Pontello <luciana at holoscopio.com> escribió:
>> > On Fri, 2010-10-15 at 18:25 +0200, José Luis Segura Lucas wrote:
>> >
>> > > If I create the bin usign the "normal" way (declare the bin, the
>> > > elements, add it to the bin...) it simply can't link the
>> > > videotestsrc to the bin.
>> >
>> > When creating your bin you need to create a ghost pad targeting the
>> > decodebin2 sink pad, so you can link the videotestsrc to the bin.
>> > Other than that, you also need to connect to "new-decoded-pad"
>> > signal from decodebin2 and link the pad to autovideosink in you
>> > callback.
>> >
>> > > If I create the bin using parse_bin_from_description, all goes
>> > > fine, but the image of the videotestsrc "freeze". I suppose that
>> > > I'm missing some step... Can you help me?
>> >
>> > I don't know what may be causing that. Check if that happens when
>> > you do it the "normal" way too.
>>
>> Doing it the normal way (videotestsrc -> decodebin2 -> autovideosink)
>> works perfect (without using Bin)
>>
>>
>> > But it's a little odd to use decodebin2
>> > in that pipeline. Why are you doing that?
>>
>> Well, I know. It is only an example. I use the decodebin2 because I
>> need two elements inside the bin and one outside. My problem is in
>> another program, but this is the smallest snippet I can imagine to
>> show the problem to you :-)
>>
>> >
>> > Regards,
>>
>> Thanks for your time!
>>
>
>
> ------------------------------------------------------------------------------
> Download new Adobe(R) Flash(R) Builder(TM) 4
> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
> Flex(R) Builder(TM)) enable the development of rich applications that run
> across multiple browsers and platforms. Download your free trials today!
> http://p.sf.net/sfu/adobe-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
--
Andoni Morales Alastruey
LongoMatch:The Digital Coach
http://www.longomatch.ylatuya.es
More information about the gstreamer-devel
mailing list