<div dir="ltr"><div><div><div><div><div>Hi,<br><br></div>Sorry if I'm asking something stupid, but i was unable to find anything about this subject on the docs (about caps it always explaining how the different negotiation scenarios happens, but not this).<br>
<br></div>I want to use a application specific caps on a <span style class="">plugin</span> that I'm writing, it will basically receive audio and produce a proprietary binary format (neither audio or video).<br><br></div>
So i create my caps like:<br><br>static <span style class="">GstStaticPadTemplate</span> <span style class="">src</span>_factory = <span style class="">GST</span>_STATIC_PAD_TEMPLATE ("<span style class="">src</span>",<br>
<span style class="">GST</span>_PAD_<span style class="">SRC</span>,<br> <span style class="">GST</span>_PAD_ALWAYS,<br> <span style class="">GST</span>_STATIC_CAPS ("application/<span style class="">vnd</span>.<span style class="">mydata</span>+octet-stream")<br>
);<br><br></div>And i run a pipeline with <span style class="">fakesink</span> or <span style class="">filesink</span> (both accepts "any" caps), but it fails to link it:<br><br>WARNING: erroneous pipeline: could not link <span style class="">myplugin</span> to fakesink0<br>
<br></div><div>if i just change the caps to:<br><br>static <span style class="">GstStaticPadTemplate</span> <span style class="">src</span>_factory = <span style class="">GST</span>_STATIC_PAD_TEMPLATE ("<span style class="">src</span>",<br>
<span style class="">GST</span>_PAD_<span style class="">SRC</span>,<br> <span style class="">GST</span>_PAD_ALWAYS,<br> <span style class="">GST</span>_STATIC_CAPS ("audio/x-raw")<br> );<br><br></div>
<div><div>It works perfectly fine. It makes no sense to me since <span style class="">fakesink</span>/<span style class="">filesink</span> should accept any type of data.<br><br></div><div>Is <span style class="">Gstreamer</span> limited to a fixed set of caps ? I cant define a new application specific caps ?</div>
<div><br></div><div>Best regards,<br></div><div><span style class="">Tiago</span> <span style class="">Katcipis</span><br></div></div></div>