[gst-devel] spider / autoplugger / caps

Ronald Bultje rbultje at ronald.bitfreak.net
Tue Jan 27 03:02:11 CET 2004


Hi Thomas,

On Tue, 2004-01-27 at 01:43, Thomas Comiotto wrote:
> Is the autoplugger stuff working ? GstAutoplug doesn't seem to be defined 
> anymore. If yes, how and where to find out ?

Sort-of. Spider works in many cases, but not all... We're workin on the
cases where it doesn't work (ask Dave... He says he needs motivation. ;)
).

> Same question regarding GstCaps functions. Basic functions listed in the 6.4 
> API reference don't work with me, e.g. gst_caps_get_mime(), 
> gst_caps_get_name() and similar. Searched through docs/random but couldn't 
> find anything enlightning, what do I miss here ?

Sorry, I'm working on those docs right now. they're indeed outdated. For
now, please just look at how other plugins and apps do it as an example.
For this specific case, use:

GstStructure = gst_caps_get_structure (caps, 0);
const gchar *mime = gst_structure_get_name (structure);

> I am successfully running the following pipeline with gst-launch-0.7:
> filesrc location=pathtosomempegfile ! spider ! colorspace ! ximagesink
> 
> However, the equivalent c-code fails with:
> WARNING **: error scheduling group 0x822f1c8
> ERROR       scheduler( 2746) 
> gstoptimalscheduler.c(2074):gst_opt_scheduler_iterate:
> [GstOptScheduler at 0x81dcd88] in error state
> 
> The minimalistic code basically consists of an iterated bin containing the 
> four listed elements above. Shouldn't be a coding error or something.

Could you provide the code? Seems like you're forgetting something.

[don't know anything about schedulers, so skipping that question...]

> I also successfully managed to stick several ximagesinks to gstvideowidgets  
> via XOverlay. However, I didn't manage to do so with several xvimagesinks. It 
> only works for the first one. Every additional xvimagesink complains about a 
> missing X11 context, as in (fakecode)

You can only use one xvimagesink, afaik... All others will just display
blue. Julien, do you know more on this?

Ronald

-- 
Ronald Bultje <rbultje at ronald.bitfreak.net>
Linux Video/Multimedia developer





More information about the gstreamer-devel mailing list