Alexa SDK with gstreamer not playing audio
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
> 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,
> 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.
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
More information about the gstreamer-devel