[gst-devel] demux with spider?

Mathew Spencer matthew.spencer at eu.sony.com
Mon Feb 9 04:25:22 CET 2004


Thanks for the pointers.

The problem I was having seemed to be that the templates for the pads 
were being attached in plugin_init rather than the _base_init function.

The autoplugging is now mostly working to the point that a sensible 
looking pipeline appears to be created when I execute:
  gst-launch filesrc location=some.mxf ! spider ! ffcolorspace ! ximagesink
but I get an error:
  GStreamer-WARNING **: push on peer of pad src_0:src but peer is not active

This is confusing me a little as the caps negotiation seems to be 
working fine, as I can run
  gst-launch filesrc location=some.mxf ! mxfdemux ! spider ! 
ffcolorspace ! ximagesink
and everything seems to work Ok.

Does anyone have any suggestions about what I may be doing wrong?  Or 
any pointers to where I can get more information about how the 
autoplugging system works.

Regards,

Mat


Ronald Bultje wrote:

>Hi Matt,
>
>On Fri, 2004-02-06 at 16:40, Mathew Spencer wrote:
>  
>
>>I am currently trying to write an MXF file demuxer with autoplug 
>>capabilities.
>>    
>>
>
>Sounds good!
>
>  
>
>>The problem I am running into is that the src caps for the demultiplexer 
>>are generated dynamicly after the stream metadata has been processed.  
>>This in turn means that the spider thinks that the demux has no src caps 
>>when it is trying to build the pipeline.
>>    
>>
>
>That's not an issue. Spider currently assumes caps are known before
>autoplugging starts; for demuxers, this means that you should set caps
>on pads before adding the pad to the element (that's when autoplugging
>is initiated).
>
>If you first add the pad to the element and then set caps, things go
>wrong. I suppose I should add a note on this to the demux section of the
>PWG...
>
>Ronald
>
>  
>




*************************************************************************
The information contained in this message or any of its
attachments may be privileged and confidential and intended 
for the exclusive use of the addressee. If you are not the
addressee any disclosure, reproduction, distribution or other
dissemination or use of this communication is strictly prohibited
*************************************************************************




More information about the gstreamer-devel mailing list