Alexa SDK with gstreamer not playing audio

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

Alexa SDK with gstreamer not playing audio

deeps8us
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Alexa SDK with gstreamer not playing audio

Nicolas Dufresne-5
Le jeudi 04 juin 2020 à 22:59 -0500, deeps8us a écrit :

> We are integrating Alexa SDK on Broadcom platform.
> For audio output, Alexa uses appsrc -> decoder -> decodedQueue -> converter
> -> volume -> audioSink pipeline
> https://github.com/alexa/avs-device-sdk/blob/master/MediaPlayer/GStreamerMediaPlayer/include/MediaPlayer/MediaPlayer.h#L159
>
> In a Broadcom device, this gave error and no audio playing
> WARN               decodebin
> gstdecodebin2.c:4679:gst_decode_bin_expose:<decoder> error: no suitable
> plugins found:
> Missing decoder: audio/x-brcm-native (audio/x-brcm-native,
> format=(string)brcm)
>
> gst-launch filesrc location=<mp3_file> ! decodebin ==> also gives same error
>
> But instead of decodebin, if I pick individual elements, it work.
> gst-launch filesrc location=<mpe_file> ! mpegaudioparse ! brcmaudiodecoder !
> brcmaudiosink (works)

So from there I'm guessing that audio/x-brcm-native is the output of
brcmaudiodecoder. The problem is that decodebin will not recognize this
as a raw format (au autoaudiosink might not recognize brcmaudiosink as
a raw format either). This is HW specific case were due to the level of
customization, you will have to specify the sink explicitly. You may
also need to configure decodebin "caps" property to include "audio/x-
brcm-native" in many pipeline.

The correct approach here would have been for Broadcom to use a a caps
feature like audio/x-raw(memory:BRCMNative) or some or some name that
make sense for what is being customized.

> These same elements are used in decodebin as well.
>
> Any pointers would help.
>
> Thanks
>
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> 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