cutter with vorbis or opus: not-negotiated error

Yasushi SHOJI yasushi.shoji at gmail.com
Mon Sep 11 02:15:42 UTC 2017


Hi,

On Fri, Sep 8, 2017 at 7:05 PM, Antoine Martin <antoine at nagafix.co.uk> wrote:
> 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..

those encoders supports

      audio/x-raw
                 format: { (string)S8, (string)S16LE }

which is the format cutter's src pad supports.  You can check that
with

    $ gst-inspect-1.0 cutter

> 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

These encoders don't supports S8 nor S16LE, but F32LE or S32LE.
You need to convert the format with 'audioconvert'

    $ gst-launch-1.0  audiotestsrc ! cutter ! audioconvert ! fakesink
-- 
              yashi


More information about the gstreamer-devel mailing list