why i cannot get the audio output from MKV?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

why i cannot get the audio output from MKV?

michael young
hi all:

   I write a simple video player, but when I play the MKV file, I
cannot get the audio output, and Gstreamer give this Message:

** Message: don't know how to handle audio/mpeg, mpegversion=(int)4,
framed=(boolean)true, codec_data=(buffer)138856e5a0, channels=(int)1,
rate=(int)44100
** Message: don't know how to handle audio/mpeg, mpegversion=(int)4,
framed=(boolean)true, codec_data=(buffer)1290, channels=(int)2,
rate=(int)32000

and my playback code like this:


    pipeline = gst_pipeline_new ("gst-player");

    bin = gst_element_factory_make ("playbin", "bin");
    videosink = gst_element_factory_make ("ximagesink", "videosink");

    g_object_set(G_OBJECT (bin), "video-sink", videosink, NULL);
    gst_bin_add(GST_BIN (pipeline), bin);

    {
        GstBus *bus;
        bus = gst_pipeline_get_bus (GST_PIPELINE (pipeline));
        gst_bus_add_watch (bus, bus_cb, NULL);
        gst_object_unref (bus);
    }

    g_object_set (G_OBJECT (bin), "uri", uri, NULL);

    if (GST_IS_X_OVERLAY (videosink))
    {
        gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (videosink),
GPOINTER_TO_INT (window));
    }

    gst_element_set_state (pipeline, GST_STATE_PLAYING);

   How I should change my code to get the audio output?????
   thx

BW

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: why i cannot get the audio output from MKV?

Tim-Philipp Müller-2
On Thu, 2010-06-03 at 17:41 +0800, michael young wrote:

>    I write a simple video player, but when I play the MKV file, I
> cannot get the audio output, and Gstreamer give this Message:
>
> ** Message: don't know how to handle audio/mpeg, mpegversion=(int)4,
> framed=(boolean)true, codec_data=(buffer)138856e5a0, channels=(int)1,
> rate=(int)44100
> ** Message: don't know how to handle audio/mpeg, mpegversion=(int)4,
> framed=(boolean)true, codec_data=(buffer)1290, channels=(int)2,
> rate=(int)32000

This means you are missing an AAC decoder (e.g. faad). You probably also
got a missing-plugin message on the pipeline bus.


>     bin = gst_element_factory_make ("playbin", "bin");

You should use playbin2 for new projects/code.

Cheers
 -Tim



------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: why i cannot get the audio output from MKV?

michael young
hi Tim:
    I changed to playbin2 , then when I play MKV file, the Messages
disappeared .
But I still CANNOT hear the sound. And  when I play MPG file, I got
neither video nor
audio, if I use playbin , MPG file play well. do u know why??  thx

 On Thu, Jun 3, 2010 at 5:56 PM, Tim-Philipp Müller <[hidden email]> wrote:

> On Thu, 2010-06-03 at 17:41 +0800, michael young wrote:
>
>>    I write a simple video player, but when I play the MKV file, I
>> cannot get the audio output, and Gstreamer give this Message:
>>
>> ** Message: don't know how to handle audio/mpeg, mpegversion=(int)4,
>> framed=(boolean)true, codec_data=(buffer)138856e5a0, channels=(int)1,
>> rate=(int)44100
>> ** Message: don't know how to handle audio/mpeg, mpegversion=(int)4,
>> framed=(boolean)true, codec_data=(buffer)1290, channels=(int)2,
>> rate=(int)32000
>
> This means you are missing an AAC decoder (e.g. faad). You probably also
> got a missing-plugin message on the pipeline bus.
>
>
>>     bin = gst_element_factory_make ("playbin", "bin");
>
> You should use playbin2 for new projects/code.
>
> Cheers
>  -Tim
>
>
>
> ------------------------------------------------------------------------------
> ThinkGeek and WIRED's GeekDad team up for the Ultimate
> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
> lucky parental unit.  See the prize list and enter to win:
> http://p.sf.net/sfu/thinkgeek-promo
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel