Facing problems running gstreamer element in pull mode

Tim-Philipp Müller t.i.m at zen.co.uk
Fri May 6 03:46:58 PDT 2011


On Wed, 2011-05-04 at 16:47 -0700, Rajashree Chivakula wrote:

Hi,

> I'm developing an application to implement Adaptive Streaming. For
> this, I have the souphttpsrc element that's linked to my
> adaptivestreaming element. The adaptivestreaming element needs to send
> out URIs to the souphttpsrc element and download chunks of data from
> the network, which it then passes along to the demux/decoders. Each
> chunk has it's own URI. The problem I'm facing is : how do i design it
> such that my adaptivestreaming element will control the flow of data
> from souphttpsrc ? Basically run my adaptivestreaming element in pull
> mode (I'm not really interested in random accesses, I need to download
> all the data that's accessible by the URI); I did implement the
> activate_function and activatepull_function, but it didn't work. I
> could not enter my looping function associated with the sinkpad of my
> adaptivestreaming element. 
> In my activate function :
> (snip)
> gst_pad_check_pull_range() returned FALSE ;  But souphttplivesrc does
> support getrangefunc(); Any idea what’s happening here ?

You might want to have a look at the new hlsdemux plugin in
gst-plugins-bad git/pre-release (and the upcoming release).

souphttpsrc does not support operating in pull mode, it derives from
GstPushSrc.

Cheers
 -Tim





More information about the gstreamer-devel mailing list