GNOME Bugzilla – Bug 797232
Gstreamer fails with AVS SampleApp for ARM platform
Last modified: 2018-10-02 11:56:19 UTC
Hi, I am using Alexa avs sdk on my embedded ARM platform. To compile avs sdk gstreamer is required. so I have manually cross compiled gstreamer, gst-plugins-base, gst-plugins-good, gst-plugins-bad, gst-plugins-libav, gst-plugins-ugly & orc for version 1.14.2 using source code, glib version is 2.58.0 & Host platform is Ubuntu 16.04. I have contacted AVS forum about this error and they say that gstreamer is properly not installed. Please help me what I am missing in gstreamer. How to cross compile gstreamer & its plugins for ARM platform? After the successful compilation is done I copy all the binaries & libraries on my ARM based board and then executing Application : # ./SampleApp ../Integration/AlexaClientSDKConfig.json /data/alexa/KittAiModels/ DEBUG9 Error: 2018-10-01 09:14:44.809 [ 1] I sdkVersion: 1.9.0 configFile ../Integration/AlexaClientSDKConfig.json Running app with log level: DEBUG9 2018-10-01 09:14:44.819 [ 1] 0 ConfigurationNode:initializeSuccess 2018-10-01 09:14:44.822 [ 1] 9 MediaPlayer:createCalled 2018-10-01 09:14:44.827 [ 1] E MediaPlayer:setupPipelineFailed:reason=createQueueElementFailed 2018-10-01 09:14:44.827 [ 1] E MediaPlayer:initPlayerFailed:reason=setupPipelineFailed 2018-10-01 09:14:44.827 [ 1] 9 MediaPlayer:~MediaPlayerCalled (SampleApp:15265): GStreamer-CRITICAL **: 09:14:44.827: gst_object_unref: assertion 'object != NULL' failed 2018-10-01 09:14:44.827 [ 1] 9 MediaPlayer:resetPipeline (SampleApp:15265): GLib-CRITICAL **: 09:14:44.827: g_main_context_find_source_by_id: assertion 'source_id > 0' failed 2018-10-01 09:14:44.828 [ 1] E RequiresShutdown:~RequiresShutdownFailed:reason=notShutdown,name=SpeakMediaPlayer 2018-10-01 09:14:44.828 [ 1] C SampleApplication:Failed to create media player for speech! 2018-10-01 09:14:44.828 [ 1] C SampleApplication:Failed to initialize SampleApplication Failed to create to SampleApplication! Below are the commands used to compile gstreamer & its plugins: To Cross Compile orc plugin: 1. ./autogen.sh --prefix=/home/ap/Desktop/VVDN_AVS/alexa/local_build_arm/orc CXX=aarch64-linux-gnu-g++-5 --host=aarch64-linux-gnu --build=x86_64-pc-linux-gnu --disable-gtk-doc PKG_CONFIG_PATH="$HOME/Desktop/VVDN_AVS/alexa/local_build_arm/glib/lib/pkgconfig" 2. make -j4 3. make install To Cross Compile gstreamer plugin : 1. ./autogen.sh --prefix=/home/ap/Desktop/VVDN_AVS/alexa/local_build_arm/gstreamer CXX=aarch64-linux-gnu-g++-5 --host=aarch64-linux-gnu --build=x86_64-pc-linux-gnu --disable-gtk-doc PKG_CONFIG_PATH="$HOME/Desktop/VVDN_AVS/alexa/local_build_arm/glib/lib/pkgconfig" 2. make -j4 3. make install Before compiling gst-plugins-base we need to compile alsa due to dependency. To cross compile alsa: 1. Install alsa-lib-1.1.6 2. ./configure --prefix=/home/ap/Desktop/VVDN_AVS/alexa/local_build_arm/alsa-lib --host=aarch64-linux-gnu --build=x86_64-pc-linux-gnu 3. make -j 4 4. make install To Cross Compile gst-plugins-base plugin: 1. ./autogen.sh --prefix=/home/ap/Desktop/VVDN_AVS/alexa/local_build_arm/gst-plugins-base CXX=aarch64-linux-gnu-g++-5 --host=aarch64-linux-gnu --build=x86_64-pc-linux-gnu --disable-x --disable-xvideo --disable-x11 --disable-gl --disable-libvisual --disable-opus --disable-xshm --disable-gnome_vfs --disable-ogg --disable-pango --disable-theora --disable-vorbis --disable-audiotestsrc --disable-gtk-doc --disable-examples PKG_CONFIG_PATH="$HOME/Desktop/VVDN_AVS/alexa/local_build_arm/gstreamer/lib/pkgconfig" 2. make -j4 3. make install To Cross Compile gst-plugins-good plugin: 1. ./autogen.sh --prefix=/home/ap/Desktop/VVDN_AVS/alexa/local_build_arm/gst-plugins-good --host=aarch64-linux-gnu --build=x86_64-pc-linux-gnu -disable-gtk-doc --disable-examples --disable-videobox --disable-videocrop --disable-videofilter --disable-videomixer --disable-x --disable-cairo --disable-aalib --disable-aalibtest --disable-flac --disable-jack --disable-libcaca --disable-libpng --disable-libdv --disable-pulse --disable-dv1394 --disable-gdk_pixbuf --disable-qt --disable-shout2 --disable-soup --disable-speex --disable-vpx --disable-wavpack PKG_CONFIG_PATH="$HOME/Desktop/VVDN_AVS/alexa/local_build_arm/gstreamer/lib/pkgconfig" 2. make -j4 3. make install To Cross Compile gst-plugins-bad plugin: 1. ./autogen.sh --prefix=/home/ap/Desktop/VVDN_AVS/alexa/local_build_arm/gst-plugins-bad --host=aarch64-linux-gnu --build=x86_64-pc-linux-gnu --disable-audiovisualizers --disable-bayer --disable-dvbsuboverlay --disable-dvdspu --disable-faceoverlay --disable-festival --disable-fieldanalysis --disable-freeverb --disable-frei0r --disable-gaudieffects --disable-geometrictransform --disable-hls --disable-inter --disable-ivfparse --disable-mxf --disable-pcapparse --disable-pnm --disable-segmentclip --disable-siren --disable-smooth --disable-speed --disable-subenc --disable-vmnc --disable-y4m --disable-directsound --disable-wasapi --disable-direct3d --disable-android_media --disable-apple_media --disable-shm --disable-vcd --disable-opensles --disable-assrender --disable-voamrwbenc --disable-voaacenc --disable-chromaprint --disable-dc1394 --disable-decklink --disable-wayland --disable-dts -hanks-disable-resindvd --disable-faac --disable-faad --disable-flite --disable-gsm --disable-ladspa --disable-lv2 --disable-libmms --disable-modplug --disable-mplex --disable-musepack --disable-neon --disable-ofa --disable-openal --disable-opencv --disable-opus --disable-rsvg --disable-teletextdec --disable-wildmidi --disable-sndfile --disable-soundtouch --disable-spc --disable-gme --disable-dvb --disable-acm --disable-vdpau --disable-zbar --disable-spandsp --disable-jp2kdecimator --disable-mpegdemux --disable-mpegpsmux --disable-mpegtsdemux --disable-mpegtsmux --disable-netsim --disable-jpegformat --disable-proxy --disable-rawparse --disable-videofilters --disable-videoparsers --disable-videosignal --disable-direct3d --disable-winscreencap --disable-midi --disable-videoframe_audiolevel --disable-sdp --disable-timecode --disable-yadif --disable-stereo --disable-librfb --disable-kms --disable-ttml --disable-examples --disable-gl --disable-gtk-doc --with-pkg-config-path="$HOME/Desktop/VVDN_AVS/alexa/local_build_arm/gstreamer/lib/pkgconfig" 2. make -j4 3. make install Thanks.
Looks like ARM people didn't want to support you with a custom build of GStreamer. Though, the ARM stuff we have no idea about and your bug report only give information about the ARM part. Is this OpenSource ? can you extract for us the snippet of code where it fails ? MediaPlayer:initPlayerFailed:reason=setupPipelineFailed To be fair, at first sight, this is not a bug report, but a support request, which has no place in bugzilla (support is given over gstreamer-devel mailing, by volunteers). I'll leave it Open with NEEDINFO, just so you can provide the snippet and we can evaluate if it's support or really a bug in GStreamer.
Created attachment 373825 [details] MediaPlayer.cpp
Hi Nicolas, Thank You for your response. yes avs sdk is opensource. Please find attached file (MediaPlayer.cpp Line No 19) which contains the snippet of failure code. Please let me know in case of any additional information required from my end. Thanks.
This is a bug in your setup. It the queue element that is not found. This is core plugins, propably that non of the plugins are found. You seem to have miss configured the plugin path. Use proper medium, like mailing list for further assistance.