8-channel raw audio file playback

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

8-channel raw audio file playback

Weipeng He
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: 8-channel raw audio file playback

Nicolas Dufresne-4
Le mardi 07 juin 2016 à 15:52 +0200, Weipeng HE a écrit :
>   gst-launch-1.0 filesrc location=file !
> audio/x-raw,format=S16BE,rate=8000,channels=8 ! audioconvert !
> autoaudiosink

Use audioparse to properly frame and align your stream.

Nicolas
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (188 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 8-channel raw audio file playback

Weipeng He
It works! Thank you

Weipeng

On 08/06/16 02:01, Nicolas Dufresne wrote:

> Le mardi 07 juin 2016 à 15:52 +0200, Weipeng HE a écrit :
>>   gst-launch-1.0 filesrc location=file !
>> audio/x-raw,format=S16BE,rate=8000,channels=8 ! audioconvert !
>> autoaudiosink
>
> Use audioparse to properly frame and align your stream.
>
> Nicolas
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel