8-channel raw audio file playback
Weipeng HE
heweipeng at gmail.com
Tue Jun 7 13:52:42 UTC 2016
Hi all,
I am trying to play an 8-channel raw audio file with gst-launch.
However, with the following commands, I didn't make it work:
gst-launch-1.0 filesrc location=file !
audio/x-raw,format=S16BE,rate=8000,channels=8 ! audioconvert ! autoaudiosink
OR (play the first channel)
gst-launch-1.0 filesrc location=file !
audio/x-raw,format=S16BE,rate=8000,channels=8 ! deinterleave name=d
d.src_0 ! queue ! audioconvert ! autoaudiosink
The error message is:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal
data flow error.
Additional debug info:
gstbasesrc.c(2948): gst_base_src_loop ():
/GstPipeline:pipeline0/GstFileSrc:filesrc0:
streaming task paused, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
It seems that it works totally fine with one or two channels. But with
more than two channels the error will occur. Is it because I didn't set
the channel positions? How can I set them?
I appreciate your help.
Best,
Weipeng
More information about the gstreamer-devel
mailing list