Error when passing raw PCM through adder

Tim Müller tim at centricular.com
Wed Aug 27 02:17:22 PDT 2014


On Wed, 2014-08-27 at 10:42 +1000, Andrew Nesbit wrote:

Hi,

> I've constructed the following pipeline to mix two raw PCM audio
> streams together. The inputs and output are named pipes:
> 
> mkfifo input1 input2 output
> 
> gst-launch-1.0 \
>   filesrc location=input1 \
>     ! queue \
>     ! audio/x-raw, channels=2, format=S16LE, rate=44100,
> layout=interleaved \
>     ! audioconvert \
>     ! adder name=m \
>     ! audio/x-raw, channels=2, format=S16LE, rate=44100,
> layout=interleaved \
>     ! filesink location=output \
>   filesrc location=input2 \
>     ! queue \
>     ! audio/x-raw, channels=2, format=S16LE, rate=44100,
> layout=interleaved \
>     ! m.
> 
> where input1 and input2 are supplied with raw PCM by two FFmpeg
> processes, and output is consumed by a third FFmpeg process.
> 
> On executing the above pipeline, although the audio seems to be
> processed OK, the following error is repeated as long as the stream is
> running:
> 
> ** (gst-launch-1.0:44): CRITICAL **: gst_audio_buffer_clip: assertion
> 'segment->format == GST_FORMAT_TIME || segment->format ==
> GST_FORMAT_DEFAULT' failed
> 
> What is likely to be causing this, and what would be the best way to
> address it?

when reading raw pcm from a file, use the 'audioparse' element to chunk
it properly and put timestamps on it.

Cheers
 -Tim


-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list