[gst-devel] why i cannot get the audio output from MKV?
michael young
mcygogo at gmail.com
Thu Jun 3 11:41:53 CEST 2010
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
More information about the gstreamer-devel
mailing list