gstreamer-android Digest, Vol 15, Issue 8

Miguel Casas-Sanchez miguel.casas-sanchez at alcatel-lucent.com
Fri Aug 24 04:43:05 PDT 2012


If it's just audio you're trying to decode (and not, say a movie), you 
could just try with a simpler pipeline, f.i.

filesrc location="name-of-your-mp3" ! mad ! audioconvert ! audioresample 
! osssink

(note that osssink most likely would need to be substituted with 
whatever sink you'll be using...) In this simpler way you'll see if your 
problem stems from a mad library situation or from your previous use of 
decodebin2. And btw in principle you don't need to load libmad yourself, 
it'd be done by the gstreamer plugin library.

What you could also try is running "ldd -v libgstXXX.so" which will walk 
the shared library tree of dependencies for a plugin named XXX, normally 
under /usr/lib/gstreamer-0.10, you could start with libgstdecodebin2.so 
or libgstmad.so; perhaps the problem is a dependency of a dependency...

Miguel

On 24/08/2012 12:57, Sandhya Sebastian wrote:
> Hi,
>
> I checked with gst-inspect and confirmed mad plugin is present.
> And what I understood is libgstmad.so is using libmad.
> So do we have to load libmad again through System.loadLibrary("libmad"); ?
> I am new to this .Sorry for the basic questions.
>
>
> Thanks & Regards,
> Sandhya Sebastian
> ________________________________________
> From: gstreamer-android-bounces+sandhya.sebastian=sasken.com at lists.freedesktop.org [gstreamer-android-bounces+sandhya.sebastian=sasken.com at lists.freedesktop.org] On Behalf Of gstreamer-android-request at lists.freedesktop.org [gstreamer-android-request at lists.freedesktop.org]
> Sent: Friday, August 24, 2012 12:30 AM
> To: gstreamer-android at lists.freedesktop.org
> Subject: gstreamer-android Digest, Vol 15, Issue 8
>
> Send gstreamer-android mailing list submissions to
>          gstreamer-android at lists.freedesktop.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>          http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
> or, via email, send a message with subject or body 'help' to
>          gstreamer-android-request at lists.freedesktop.org
>
> You can reach the person managing the list at
>          gstreamer-android-owner at lists.freedesktop.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of gstreamer-android digest..."
>
>
> Today's Topics:
>
>     1. gst player is not working on gst-android (Sandhya Sebastian)
>     2. Re: gst player is not working on gst-android (Arun Raghavan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 23 Aug 2012 13:53:44 +0530
> From: Sandhya Sebastian <sandhya.sebastian at sasken.com>
> To: "gstreamer-android at lists.freedesktop.org"
>          <gstreamer-android at lists.freedesktop.org>
> Subject: gst player is not working on gst-android
> Message-ID:
>          <2316A524B7DB8C4AB39B9EDEDF597C8F015B60701EA3 at EXGMBX01.sasken.com>
> Content-Type: text/plain; charset="us-ascii"
>
>
> Hi,
>
> I am new in gst android.I am trying to play mp3 file using gst player .But It is not playing and I am getting the following error.
>
> I/MediaPlayerService(   34): Create GstPlayer
>
> V/GstPlayer(   34): GstPlayer constructor
>
> V/GstDriver(   34): constructor
>
> V/GstDriver(   34): persist.gst.debug property 0
>
> V/GstDriver(   34): persist.gst.trace property /dev/console
>
> V/GstDriver(   34): route the trace to /dev/console
>
> V/GstDriver(   34): gstreamer init check
>
> V/GstPlayer(   34): GstPlayer send GstDriver Setup
>
> V/GstDriver(   34): create playbin2
>
> V/GstDriver(   34): playbin2 creation: playbin20
>
> W/GstDriver(   34): play bin flag is 0x77
>
> V/GstDriver(   34): persist.gst.verbose property = 0
>
> V/GstDriver(   34): set up mainloop
>
> V/GstDriver(   34): register bus callback
>
> V/GstDriver(   34): enter main loop
>
> V/GstDriver(   34): add surfaceflingersink to playbin
>
> V/GstDriver(   34): add surfaceflingersink to playbin
>
> V/GstDriver(   34): add audioflingersink to playbin
>
> I/GstPlayer(   34): GstPlayer setDataSource(16, 0, 3750641)
>
> I/GstDriver(   34): create source from fd 16 offset 0 lenght 3750641
>
> V/GstDriver(   34): dup(fd) old 16 new 25
>
> D/GstDriver(   34): GstDriver::setAudioSink: 0xedfc8
>
> D/GstAudioFlingerSink(   34): set audiosink: 0xedfc8
>
> V/GstPlayer(   34): GstPlayer prepareAsync
>
> V/GstDriver(   34): prepareAsync
>
> V/GstDriver(   34): bus receive message STATE_CHANGED old 1 new 2 pending 3
>
> V/GstDriver(   34): bus receive message STATE_CHANGED
>
> V/GstDriver(   34): nd 0x80b05be0 : sd 0x80b05a20
>
> V/GstDriver(   34): create and register appsrc callbacks
>
> D/GstAudioFlingerSink(   34): creating ringbuffer
>
> D/GstAudioFlingerSink(   34): created ringbuffer @0x113010
>
> D/GstAudioFlingerSink(   34): >gst_android_audioringbuffer_open_device
>
> D/audioflinger_wrapper(   34): Open AudioSink successfully : 0x110130
>
> D/GstAudioFlingerSink(   34): open an existed flinger, 0x110130
>
> D/GstAudioFlingerSink(   34): gst_audioflinger_sink_getcaps,0x110130
>
> D/GstAudioFlingerSink(   34): gst_audioflinger_sink_getcaps,0x110130
>
> D/GstAudioFlingerSink(   34): gst_audioflinger_sink_getcaps,0x110130
>
> D/GstAudioFlingerSink(   34): gst_audioflinger_sink_getcaps,0x110130
>
> V/GstDriver(   34): get unhandled message on bus src stream-status
>
> V/GstDriver(   34): get unhandled message on bus src stream-status
>
> V/GstDriver(   34): get unhandled message on bus id3demux0 tag
>
> D/GstAudioFlingerSink(   34): gst_audioflinger_sink_getcaps,0x110130
>
> D/GstAudioFlingerSink(   34): gst_audioflinger_sink_getcaps,0x110130
>
> D/GstAudioFlingerSink(   34): gst_audioflinger_sink_getcaps,0x110130
>
> V/GstDriver(   34): decodebin20: structure name=missing-plugin
>
> V/GstDriver(   34): a plugin is missing send error message gstreamer|0.10|<unknown>|MPEG-1 Layer 3 (MP3) decoder|decoder-audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, parsed=(boolean)true
>
> E/MediaPlayer(  347): error (0, 0)
>
> E/MediaPlayer(  347): Attempt to call getDuration without a valid mediaplayer
>
> E/MediaPlayer(  347): error (-38, 0)
>
> E/MediaPlayer(  347): Attempt to call getDuration without a valid mediaplayer
>
> E/MediaPlayer(  347): error (-38, 0)
>
> E/MediaPlayer(  347): Attempt to perform seekTo in wrong state: mPlayer=0x20d448, mCurrentState=0
>
> E/MediaPlayer(  347): error (-38, 0)
>
> V/GstPlayer(   34): GstPlayer getCurrentPosition
>
> V/GstDriver(   34): getPosition eos 0
>
> V/GstDriver(   34): Stream position 0 ms
>
> E/MediaPlayer(  347): Attempt to call getDuration without a valid mediaplayer
>
> E/MediaPlayer(  347): error (-38, 0)
>
> D/MediaPlaybackService(  347): restored queue, currently at position 0/0 (requested 0)
>
> V/GstDriver(   34): get unhandled message on bus uridecodebin0 warning
>
> E/GstDriver(   34): bus receive message ERROR 12: Your GStreamer installation is missing a plug-in. from /u/android_GB_bk/external/gstreamer_aggregate/gst-plugins-base/gst/playback/gstdecodebin2.c(3555): gst_decode_bin_expose (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:
>
> E/GstDriver(   34): no suitable plugins found
>
> E/MediaPlayer(  347): error (0, 0)
>
> E/GstDriver(   34): bus receive message ERROR 12: Your GStreamer installation is missing a plug-in. from /u/android_GB_bk/external/gstreamer_aggregate/gst-plugins-base/gst/playback/gstdecodebin2.c(3555): gst_decode_bin_expose (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:
>
> E/GstDriver(   34): no suitable plugins found.
>
>
> I have tried with gst-inspect and all plugins required are present.
> Please help with the same.
>
>
> Thanks in advance.
>
>
> SASKEN BUSINESS DISCLAIMER: This message may contain confidential, proprietary or legally privileged information. In case you are not the original intended Recipient of the message, you must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message and you are requested to delete it and inform the sender. Any views expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email.
> Read Disclaimer at http://www.sasken.com/extras/mail_disclaimer.html
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 23 Aug 2012 14:11:20 +0530
> From: Arun Raghavan <arun.raghavan at collabora.co.uk>
> To: Discussions about GStreamer on Android
>          <gstreamer-android at lists.freedesktop.org>
> Subject: Re: gst player is not working on gst-android
> Message-ID: <1345711280.11808.4.camel at localhost>
> Content-Type: text/plain; charset="UTF-8"
>
> Hi Sandhya,
>
> On Thu, 2012-08-23 at 13:53 +0530, Sandhya Sebastian wrote:
> [...]
>> V/GstDriver(   34): get unhandled message on bus uridecodebin0 warning
>>
>> E/GstDriver(   34): bus receive message ERROR 12: Your GStreamer installation is missing a plug-in. from /u/android_GB_bk/external/gstreamer_aggregate/gst-plugins-base/gst/playback/gstdecodebin2.c(3555): gst_decode_bin_expose (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:
>>
>> E/GstDriver(   34): no suitable plugins found
>>
>> E/MediaPlayer(  347): error (0, 0)
>>
>> E/GstDriver(   34): bus receive message ERROR 12: Your GStreamer installation is missing a plug-in. from /u/android_GB_bk/external/gstreamer_aggregate/gst-plugins-base/gst/playback/gstdecodebin2.c(3555): gst_decode_bin_expose (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:
>>
>> E/GstDriver(   34): no suitable plugins found.
>>
>>
>> I have tried with gst-inspect and all plugins required are present.
>> Please help with the same.
> Could you double-check that the mad plugin is available and functional?
> Note that your application might need to load libmad first using
> something like:
>
> System.loadLibrary("libmad");
>
> -- Arun
>
>
>
> ------------------------------
>
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android
>
>
> End of gstreamer-android Digest, Vol 15, Issue 8
> ************************************************
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android

-- 
-----------------------------------------------------------------------------
Miguel Casas-Sanchez
R&D Lead Mosami - Immersive Communications



More information about the gstreamer-android mailing list