[gst-devel] Delayed linking

Jason Gerard DeRose jderose at jasonderose.org
Sat Oct 28 22:42:38 CEST 2006


You need to link the video pad in a handler for the 'pad-added' signal
(emitted by your demux element).

I've attached an example of doing this with vorbis from an ogg file.
Look at the on_pad_added() method.


David Johnson wrote:
> Hi all,
> I'm trying to setup a pipeline in Python to playback a video file.
> The problem I have is that the demux plugin (I'm testing with both flutsdemux 
> and ffdemux_mpegts, both show the same behaviour) doesn't have a video pad 
> until some time after playback has started.
> Viewing debug output from gst-launch, it initially fails to link the demux to 
> mpeg2dec due to the lack of a video pad, but later retries once the video pad 
> is added - how can I mirror this behaviour in Python?
> For completeness, the pipeline I'm using is:
> gst-launch filesrc location=foo.mpeg ! ffdemux_mpegts ! mpeg2dec ! xvimagesink
> I've tried everything I can think of to make this work, but can't figure it 
> out or find any examples (even an example in C would be useful). Any help 
> would be much appreciated!
> Thanks,
> David.
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vorbisplay.py
Type: text/x-python
Size: 3122 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20061028/dba16c72/attachment.py>

More information about the gstreamer-devel mailing list