Not able to play mp3 file using playbin2 in gstreamer-android.

Sandhya Sebastian sandhya.sebastian at sasken.com
Mon Aug 27 23:07:15 PDT 2012


Hi All,

I am new in gstreamer android.
I am trying play mp3 file using playbin2 in command line.My setup contains android gingerbread version 2.3.4 and for the gstreamer setup
I am using the second method in http://gstreamer.freedesktop.org/wiki/GstreamerAndroid_InstallInstructions that is build gstreamer as part of android.
I tried to build the gstreamer aggregate which is downloaded using the local manifest file.But I was not able to build it.
So I copied the gstreamer related folders from the gstreamer_NDK_bundle to the gstreamer_aggregate folder.

Now I am trying the pipeline

gst-launch -v playbin2 uri="file:///sdcard/Dil.mp3" audio-sink=audioflingersink

But I am getting  the following error.

/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: ring-buffer-max-size = 0
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: buffer-size = -1
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: use-buffering = FALSE
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: download = FALSE
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: uri = "file:///sdcard/Dil.mp3"
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: connection-speed = 0
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: source = (GstFileSrc) source
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind.GstPad:src: caps = application/x-id3
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstID3Demux:id3demux0.GstPad:sink: caps = application/x-id3
Pipeline is PREROLLING ...
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstMPEGAudioParse:mpegaudioparse0.GstPad:sink: caps = audio/mpeg, mpegversion=(int)1, layer=(int)3
Missing element: MPEG-1 Layer 3 (MP3) decoder
WARNING: from element /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0: No decoder available for type 'audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true'.
Additional debug info:
/u/android_GB_bk/external/gstreamer_aggregate/gst-plugins-base/gst/playback/gsturidecodebin.c(873): unknown_type_cb (): /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0
ERROR: from element /GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20: Your GStreamer installation is missing a plug-in.
Additional debug info:
/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:
no suitable plugins found
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstMPEGAudioParse:mpegaudioparse0.GstPad:src: caps = audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)1, layer=(int)3, rate=(int)44100, channels=(int)2, parsed=(boolean)true
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstMPEGAudioParse:mpegaudioparse0.GstPad:src: caps = NULL
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstMPEGAudioParse:mpegaudioparse0.GstPad:sink: caps = NULL
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstID3Demux:id3demux0.GstPad:src: caps = NULL
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstID3Demux:id3demux0.GstPad:sink: caps = NULL
/GstPlayBin2:playbin20/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20/GstTypeFindElement:typefind.GstPad:src: caps = NULL
Freeing pipeline ...


I have checked for mad plugin using gst-inspect and it is present.

Please help with the same.


Thanks in advance,
Sandhya
________________________________________
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: Tuesday, August 28, 2012 12:30 AM
To: gstreamer-android at lists.freedesktop.org
Subject: gstreamer-android Digest, Vol 15, Issue 11

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. Re: gstreamer-android Digest, Vol 15, Issue 10 (Dayananda Madappa)
   2. Open GL Video sink plugin for GStreamer (Vikas Malhotra)
   3. RE: gstreamer-android Digest, Vol 15, Issue 10 (Sandhya Sebastian)
   4. Re: Open GL Video sink plugin for GStreamer (Stefan Sauer)
   5. playing mp3 file using GST_PLAYER from Android GB emulator
      (Dayananda Madappa)


----------------------------------------------------------------------

Message: 1
Date: Mon, 27 Aug 2012 11:24:25 +0530
From: Dayananda Madappa <ee206673 at sasken.com>
To: "gstreamer-android at lists.freedesktop.org"
        <gstreamer-android at lists.freedesktop.org>
Subject: Re: gstreamer-android Digest, Vol 15, Issue 10
Message-ID: <503B0B91.3050201 at sasken.com>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"

Hi,

I am playing mp3 media file through android GB emulator using GST_PLAYER,
But am facing decodebin2 plugin error,its saying missing decodebin2 plugin,
can anyone help on this issue.

Regards
Daya



gstreamer-android-request at lists.freedesktop.org wrote:
> 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. Re: gstreamer-android Digest, Vol 15, Issue 8 (Arun Raghavan)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 25 Aug 2012 00:41:10 +0530
> From: Arun Raghavan <arun.raghavan at collabora.co.uk>
> To: Discussions about GStreamer on Android
>       <gstreamer-android at lists.freedesktop.org>
> Subject: Re: gstreamer-android Digest, Vol 15, Issue 8
> Message-ID: <1345835470.25450.23.camel at localhost>
> Content-Type: text/plain; charset="UTF-8"
>
> On Fri, 2012-08-24 at 16:27 +0530, 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.
>>
>
> Unfortunately, when running an Android app, the loader does not load
> dependent libraries for the plugins that we load. So the behaviour in
> gst-launch will be different from the app itself. Adding the
> System.loadLibrary bit before you drop into native code and do a
> gst_init() should solve this.
>
> There might be other plugins or libraries with similar issues. There is
> usually some hint in adb logcat output. Disabling the registry is
> probably a good idea while you're getting the app up and running (a call
> setenv("GST_REGISTRY", "/dev/zero", 1) before gst initialisation should
> do the trick).
>
> -- 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 10
> *************************************************
> .
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20120827/d85a8d21/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 27 Aug 2012 12:55:14 +0530
From: Vikas Malhotra <ervikaspec at gmail.com>
To: gstreamer-android at lists.freedesktop.org
Subject: Open GL Video sink plugin for GStreamer
Message-ID:
        <CADkuiCyDGJb2n3B75JTz-UiPMyiU0XbgdCEdVvyJ7ga6xZOfKg at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi all,

I am working on a Open GL ES based video sink plugin for gstreamer. I am
following source code of surfaceflingersink for basic code and this link:

http://quirkygba.blogspot.in/2010/10/android-native-coding-in-c.html

for open GL ES functionality.

My plugin is not giving any errors but it is just playing audio and not
video.

Please help me solve the problem. I would also like to know if anyone has
worked on gst-plugins-gl to work on Android i.e. glimagesink.

Please help.



--

--------------------------------------
Vikas
Bachelor of Engineering
Computer Science and Engineering
<http://www.vikaspec.co.cc>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20120827/348ef222/attachment-0001.html>

------------------------------

Message: 3
Date: Mon, 27 Aug 2012 13:54:55 +0530
From: Sandhya Sebastian <sandhya.sebastian at sasken.com>
To: "gstreamer-android at lists.freedesktop.org"
        <gstreamer-android at lists.freedesktop.org>
Subject: RE: gstreamer-android Digest, Vol 15, Issue 10
Message-ID:
        <2316A524B7DB8C4AB39B9EDEDF597C8F015B60701EA5 at EXGMBX01.sasken.com>
Content-Type: text/plain; charset="us-ascii"

Hi Arun,

Thank you for your reply.

I have loaded the libmad in MediaPlayer.java and disabled the registry before gst_init_check in GstDriver.cpp.
But still It is giving the same error.

I replaced the audioflingersink with fakesink and tried then I am getting the following error:

external/qemu/tcg/tcg.c:1362: tcg fatal error
Aborted
 and emulator is getting killed.

I tried to play the mp3 file using gst-launch then also I am getting the qemu error and emulator is getting aborted.

Can this be a problem with my setup?

Please give suggestions.


Thanks & Regards,
Sandhya
________________________________________
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: Sunday, August 26, 2012 12:30 AM
To: gstreamer-android at lists.freedesktop.org
Subject: gstreamer-android Digest, Vol 15, Issue 10

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. Re: gstreamer-android Digest, Vol 15, Issue 8 (Arun Raghavan)


----------------------------------------------------------------------

Message: 1
Date: Sat, 25 Aug 2012 00:41:10 +0530
From: Arun Raghavan <arun.raghavan at collabora.co.uk>
To: Discussions about GStreamer on Android
        <gstreamer-android at lists.freedesktop.org>
Subject: Re: gstreamer-android Digest, Vol 15, Issue 8
Message-ID: <1345835470.25450.23.camel at localhost>
Content-Type: text/plain; charset="UTF-8"

On Fri, 2012-08-24 at 16:27 +0530, 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.

Unfortunately, when running an Android app, the loader does not load
dependent libraries for the plugins that we load. So the behaviour in
gst-launch will be different from the app itself. Adding the
System.loadLibrary bit before you drop into native code and do a
gst_init() should solve this.

There might be other plugins or libraries with similar issues. There is
usually some hint in adb logcat output. Disabling the registry is
probably a good idea while you're getting the app up and running (a call
setenv("GST_REGISTRY", "/dev/zero", 1) before gst initialisation should
do the trick).

-- 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 10
*************************************************

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: 4
Date: Mon, 27 Aug 2012 12:16:04 +0200
From: Stefan Sauer <ensonic at hora-obscura.de>
To: gstreamer-android at lists.freedesktop.org
Subject: Re: Open GL Video sink plugin for GStreamer
Message-ID: <503B48E4.5040507 at hora-obscura.de>
Content-Type: text/plain; charset="iso-8859-1"

On 08/27/2012 09:25 AM, Vikas Malhotra wrote:
> Hi all,
>
> I am working on a Open GL ES based video sink plugin for gstreamer. I
> am following source code of surfaceflingersink for basic code and this
> link:
>
> http://quirkygba.blogspot.in/2010/10/android-native-coding-in-c.html
>
> for open GL ES functionality.
>
> My plugin is not giving any errors but it is just playing audio and
> not video.
>
> Please help me solve the problem. I would also like to know if anyone
> has worked on gst-plugins-gl to work on Android i.e. glimagesink.

I think porting gst-plugin-gl would be the way to go. I've tried to
build it once, but realized that it needs an android equivalent for
GL_BACKEND=x11 (configure.ac) and the related treatment in the makefiles
+ sources.

Stefan

>
> Please help.
>
>
>
> --
>
> --------------------------------------
> Vikas
> Bachelor of Engineering
> Computer Science and Engineering
>
>
>
> _______________________________________________
> gstreamer-android mailing list
> gstreamer-android at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-android

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20120827/916d60ff/attachment-0001.html>

------------------------------

Message: 5
Date: Mon, 27 Aug 2012 16:33:32 +0530
From: Dayananda Madappa <ee206673 at sasken.com>
To: "gstreamer-android at lists.freedesktop.org"
        <gstreamer-android at lists.freedesktop.org>
Subject: playing mp3 file using GST_PLAYER from Android GB emulator
Message-ID: <503B5404.70004 at sasken.com>
Content-Type: text/plain; charset="ISO-8859-1"; format=flowed

Hi,

I am trying to play mp3 media file using GST_PLAYER through Android GB
emulator,

But am getting following error

*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
*

Could anyone tried playing media files using GST_PLAYER in android GB
emulator.

Regards
Daya


------------------------------

_______________________________________________
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 11
*************************************************


More information about the gstreamer-android mailing list