[gst-devel] Getting started with gnonlin

Dominique Würtz housirer at gmx.de
Fri Jan 6 02:19:10 CET 2006

I tried out the latest gnonlin ( since I plan to use it for my 
project. I created a little Python script to to test its functionality. 
Unfortunately it wouldn't work. I think the pipeline gets stuck in the 
PREROLL state. The timeline source pad however is created.
Here is the code:

import gst
import gobject

def _timeline_new_pad_cb(self, pad):

sink = gst.element_factory_make("alsasink")
timeline = gst.element_factory_make("gnltimeline")
audiocomp = gst.element_factory_make("gnlcomposition")

gnlsource = gst.element_factory_make("gnlfilesource")
gnlsource.set_property("location", "foo.wav")
gnlsource.set_property("media-start", 0L)
gnlsource.set_property("media-duration", 100000L)
gnlsource.set_property("start", 0L)
gnlsource.set_property("duration", 100000L)

audiocomp.set_property("media-start", 0L)
audiocomp.set_property("media-duration", 100000L)
audiocomp.set_property("start", 0L)
audiocomp.set_property("duration", 100000L)

timeline.set_property("media-start", 0L)
timeline.set_property("media-duration", 100000L)
timeline.set_property("start", 0L)
timeline.set_property("duration", 100000L)

timeline.connect("pad-added", _timeline_new_pad_cb)

pipeline = gst.Pipeline()
pipeline.add(timeline, sink)


Just a side note:

This works: gst-launch filesrc location="foo.wav" ! decodebin ! alsasink
While this won't: gst-launch gnlfilesrc location="foo.wav" ! decodebin ! 

Any ideas why the pipeline won't play?

More information about the gstreamer-devel mailing list