[gstreamer-bugs] [Bug 400134] [playbin] support non-raw-formats sinks

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Jan 24 03:46:24 PST 2007


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=400134

  GStreamer | gst-plugins-base | Ver: 0.10.11


Edward Hervey changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bilboed at bilboed.com
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
            Summary|decodebin2 and playbin to   |[playbin] support non-raw-
                   |support external decoders   |formats sinks




------- Comment #1 from Edward Hervey  2007-01-24 11:44 UTC -------
Tommi, decodebin2 can do exactly what you're asking for... In fact it was
designed partly to support EXACTLY what you want to do (hint:n770).

What you need to do is to tell decodebin2 what formats you can handle outside
of it.

Let's say, for example, you can handle "audio/mpeg,mpegversion=1,layer=[1,3]"
with a dedicated sink. The easiest way is to add that caps to the 'caps'
property of decodebin2.
By default 'caps' contains all know raw audio/video/text formats, so you need
to create a new caps containing those PLUS your format:

mycaps =
gst_caps_from_string("video/x-raw-yuv;video/x-.....plain;text/x-pango-markup;audio/mpeg,mpegversion=1,layer=[1,3]");
g_object_set (mydecodebin2, "caps", mycaps, NULL);

decodebin2 will then consider mp3 as a final format and will provide you that
pad like any other raw stream (using 'new-decoded-pad' callback). Then you can
connect it to your dedicated sink.


On the other hand, playbin HAS to be modified to support what you request. In
the same way decodebin2 was created from scratch, there is a new playbin
(playbin2) currently being designed which will use all the advantages
decodebin2 brings and be able to handle the features you mention.

Changing the bug title accordingly.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list