<div dir="ltr">On Thu, Mar 7, 2013 at 5:18 AM, tajourim <span dir="ltr"><<a href="mailto:tajouri.maher@gmail.com" target="_blank">tajouri.maher@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Good morning,<br>
i resolve my problem cuased by the filesrc cannot link its src pad to my<br>
element's sink pad. I just add activate_function which choose a scheduling<br>
mode ,so it seems correct. Now i want to expose my plugin to gstreamer in<br>
order that the autoplugin detects my plugin and its type media. I understant<br>
the concept of autoplugin but i didn't know how to implement it.<br></blockquote><div><br></div><div style>Glad you resolved that problem, it definitely required a bit of investigation. If your element is just a decoder, it would be best to use the base class, GstVideoDecoder, as it handles many important details for you.</div>
<div style><br></div><div style>As for autoplugging in something like decodebin, you need to implement a typefinding function, and then make sure the rank (GstRank) is high enough to be preferred over any other decoders that can handle the same format:</div>
<div style><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-types-typefind.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/pwg/html/section-types-typefind.html</a><br></div>
<div style><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPluginFeature.html#GstRank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstPluginFeature.html#GstRank</a><br>
</div><div style><br></div><div style>-Josh</div></div></div></div>