Internal data flow error with TCP
Tim Müller
tim at centricular.com
Fri Jul 24 01:33:05 PDT 2015
On Thu, 2015-07-23 at 18:02 -0700, doon wrote:
Hi,
> I use these pipelines for audio streaming:
>
> gst-launch-1.0 filesrc location=test.ogg ! tcpclientsink port=7887
> gst-launch-1.0 tcpserversrc port=7887 ! oggdemux ! vorbisdec ! audioconvert
> ! autoaudiosink
>
> All works fine, but when I use this:
>
> gst-launch-1.0 filesrc location=test.ogg ! oggdemux ! vorbisdec !
> tcpclientsink port=7887
> gst-launch-1.0 tcpserversrc port=7887 ! audioconvert ! autoaudiosink
>
> I get: *ERROR: from element
> /GstPipeline:pipeline0/GstTCPServerSrc:tcpserversrc0: Internal data flow
> error.*
>
> But tcpclientsink and tcpserversrc have Capabilities: ANY, so why I get
> error?
audioconvert will reject the data, because it has not received a CAPS
event so it doesn't know what format the data is in.
You will need an audioparse element after tcpserversrc and set
properties appropriately. Alternatively, add a gdppay before the sink
and a gdpdepay after the src.
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list