Alexa SDK with gstreamer not playing audio
Nicolas Dufresne
nicolas at ndufresne.ca
Fri Jun 5 12:27:01 UTC 2020
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
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list