[gst-devel] More fun with homemade src's

Tim Müller t.i.m at zen.co.uk
Tue Sep 26 21:23:34 CEST 2006


On Sat, 2006-09-23 at 01:40 +0100, Iain * wrote:

> I've been writing my channel src over the last while and
> think I've got it working more or less, but it'll link to fakesink ok,
> but I cannot for the life of me get it to play after its been linked
> to alsasink.
> 
> Basically pipeline is
> 
> channel-src -----> audioconvert -------> alsasink
> 
> The channel-src outputs audio/x-raw-float, channels = 1, rate = 16000
> The link between audioconvert and alsasink is filtered to audio/x-raw-int
> It all links ok, but when set playing audioconvert complains that
> negotiation never happened.
> 
> Error: Internal data flow error.
> Debug: gstbasesrc.c(1569): gst_base_src_loop (): /test-src/src:
> streaming task paused, reason not-negotiated (-4)

For posterity: the problem is that the float caps set on the buffers
aren't complete. They are missing an "endianness" and a "width" field,
so audioconvert's sink setcaps function rejects them, which causes the
not-negotiated flow error.

 Cheers
  -Tim






More information about the gstreamer-devel mailing list