tags:

views:

56

answers:

2

What is the syntax for caps, specifying media capabilities, in gstreamer? Caps are strings that specify the type of media allowed and look like "audio/x-raw-int,..." but I haven't been able to find good documentation on exactly what is allowed in a caps string.

+1  A: 

This is how i use it in python...HTH

caps = gst.Caps("video/x-raw-yuv,format=(fourcc)AYUV,width=704,height=480")

capsFilter = gst.element_factory_make("capsfilter")

capsFilter.props.caps = caps

Hardy
I am looking for the syntax of the string that specifies the caps. "video/x-raw-yuv,..."
joeforker
+1  A: 

a partial answer, which i'm sure you've worked out already:

"MIMETYPE,PROPERTY1=VALUE1,PROPERTY2=VALUE2,..."

formally, caps are not represented by strings but by a GstCaps object containing an array of GstStructures. see the documentation here.

perhaps if we work out a definitive answer here we could submit a documentation patch for the function gst_caps_from_string()

Jeremiah Rose