From: GStreamer (bugzilla.gnome.org) <bug...@bu...> - 2007-01-24 11:44:46
|
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=3D400134 GStreamer | gst-plugins-base | Ver: 0.10.11 Edward Hervey changed: What |Removed |Added -------------------------------------------------------------------------= --- CC| |bi...@bi... Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Summary|decodebin2 and playbin to |[playbin] support non-ra= w- |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 out= side of it. Let's say, for example, you can handle "audio/mpeg,mpegversion=3D1,layer=3D= [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 =3D gst_caps_from_string("video/x-raw-yuv;video/x-.....plain;text/x-pango-mar= kup;audio/mpeg,mpegversion=3D1,layer=3D[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 yo= u 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. --=20 Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail |