GStreamer - appsrc as audio source
Tim-Philipp Müller
t.i.m at zen.co.uk
Thu Jul 14 09:30:09 PDT 2011
On Thu, 2011-07-14 at 08:57 -0700, canetti wrote:
> I'm capturing audio in my application and trying stream it via GStreamer .
> From some reason, I hope, by this post, clarifies, no pipeline I build using
> appsrc as my
> audio source transmits the data wheater the destination is a file , or a UDP
> sink , or the audio source
> stands alone , or with a video source , both undergoing format encoding and
> muxing .
>
> In all cases GStreamer reacts to data pushes with the following log lines :
>
> 0:00:00.118112000 5136 09653CB0 WARN basesrc
> gstbasesrc.c:2563:gst_base_src_loop:<AppAudioSource> error: Internal data
> flow error.
> 0:00:00.118112000 5136 09653CB0 WARN basesrc
> gstbasesrc.c:2563:gst_base_src_loop:<AppAudioSource> error: streaming task
> paused, reason not-negotiated (-4)
> 0:00:10.121569000 5136 09653CB0 WARN wavenc
> gstwavenc.c:262:gst_wavenc_push_header:<wavenc0> push header failed: flow =
> wrong-state
>
> Here are 2 pipeline examples that yeild this result :
> 1:
> appsrc name=AppAudioSource
> caps="audio/x-raw-int,rate=44100,width=16,channels=16,depth=2,signed=(boolean)true"
> ! wavenc ! filesink location=abc.wav
Try adding an endianness field as well.
flow=not-negotiated means there's a problem with caps (either no caps or
wrong caps or incomplete caps or there's a converter like
audioconvert/audioresample missing somewhere).
Cheers
-Tim
More information about the gstreamer-devel
mailing list