cutter with vorbis or opus: not-negotiated error

Antoine Martin antoine at nagafix.co.uk
Fri Sep 8 10:05:16 UTC 2017


Hi,

I'm trying to use the cutter element before either vorbisenc or opusenc
but I consistently get the "not-negotiated" error.
The same pipeline works just fine with most other audio encoders.

Examples that work fine:
gst-launch-1.0 audiotestsrc ! cutter ! lamemp3enc ! fakesink
Same pipeline also works with flacenc, wavenc, speexenc, faac..

Now the more detailed output with the ones that don't work:
gst-launch-1.0 -vtm audiotestsrc ! cutter ! vorbisenc  ! fakesink
WARNING: erroneous pipeline: could not link cutter0 to vorbisenc0

gst-launch-1.0 -vtm audiotestsrc ! cutter ! wavpackenc ! fakesink
WARNING: erroneous pipeline: could not link cutter0 to wavpackenc0

gst-launch-1.0 -v audiotestsrc ! cutter ! opusenc ! fakesink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
/GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0.GstPad:src: caps =
audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
rate=(int)44100, channels=(int)1
/GstPipeline:pipeline0/GstCutter:cutter0.GstPad:src: caps = audio/x-raw,
format=(string)S16LE, layout=(string)interleaved, rate=(int)44100,
channels=(int)1
/GstPipeline:pipeline0/GstCutter:cutter0.GstPad:sink: caps =
audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
rate=(int)44100, channels=(int)1
ERROR: from element
/GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0: Internal data
stream error.
Additional debug info:
gstbasesrc.c(2939): gst_base_src_loop ():
/GstPipeline:pipeline0/GstAudioTestSrc:audiotestsrc0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...


What do I need to do to make it work?
(my actual pipeline usually gets its src from pulsesrc)

Thanks
Antoine


More information about the gstreamer-devel mailing list