<br><font size=2 face="sans-serif">Ok. I did the following:</font>
<br><font size=1 color=blue face="sans-serif">static</font><font size=1 face="sans-serif">
gboolean</font>
<br><font size=1 face="sans-serif">examplefilter_init (GstExampleFilter
* examplefilter)</font>
<br><font size=1 face="sans-serif">{</font>
<br><font size=1 face="sans-serif"> GST_DEBUG_CATEGORY_INIT (gst_example_filter_debug,
</font><font size=1 color=#a11f12 face="sans-serif">"examplefilter"</font><font size=1 face="sans-serif">,
0, </font><font size=1 color=#a11f12 face="sans-serif">"Template examplefilter"</font><font size=1 face="sans-serif">);</font>
<br>
<br><font size=1 face="sans-serif"> </font><font size=1 color=blue face="sans-serif">return</font><font size=1 face="sans-serif">
gst_element_register (examplefilter, </font><font size=1 color=#a11f12 face="sans-serif">"examplefilter"</font><font size=1 face="sans-serif">,
GST_RANK_</font><font size=2><tt>MARGINAL</tt></font><font size=1 face="sans-serif">,
GST_ELEMENT_FACTORY_TYPE_DECODER);</font>
<br><font size=1 face="sans-serif">}</font>
<br>
<br><font size=1 color=blue face="sans-serif">static</font><font size=1 face="sans-serif">
</font><font size=1 color=blue face="sans-serif">void</font><font size=1 face="sans-serif">
gst_example_filter_base_init (gpointer gclass)</font>
<br><font size=1 face="sans-serif">{</font>
<br><font size=1 face="sans-serif"> GstElementClass *element_class
= GST_ELEMENT_CLASS (gclass);</font>
<br>
<br><font size=1 face="sans-serif"> gst_element_class_set_details_simple(element_class,</font>
<br><font size=1 face="sans-serif"> </font><font size=1 color=#a11f12 face="sans-serif">"ExampleFilter"</font><font size=1 face="sans-serif">,</font>
<br><font size=1 face="sans-serif"> </font><font size=1 color=#a11f12 face="sans-serif">"Decoder/Video"</font><font size=1 face="sans-serif">,</font>
<br><font size=1 face="sans-serif"> </font><font size=1 color=#a11f12 face="sans-serif">"Description"</font><font size=1 face="sans-serif">,</font>
<br><font size=1 face="sans-serif"> </font><font size=1 color=#a11f12 face="sans-serif">"Steffen
Roeber"</font><font size=1 face="sans-serif">);</font>
<br>
<br><font size=1 face="sans-serif"> gst_element_class_add_pad_template
(element_class, gst_static_pad_template_get (&src_factory));</font>
<br><font size=1 face="sans-serif"> gst_element_class_add_pad_template
(element_class, gst_static_pad_template_get (&sink_factory));</font>
<br><font size=1 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">The _init() functions of my decoder
are called. But the </font><font size=1 face="sans-serif">gst_example_filter_set_caps
</font><font size=2 face="sans-serif">is not called. I always get a </font><font size=1 color=#a11f12 face="sans-serif">Your
GStreamer installation is missing a plug-in.</font><font size=2 face="sans-serif">
message.</font>
<br><font size=2 face="sans-serif">Whcih function should be called at my
Plugin at next? I found that the </font><font size=1 face="sans-serif">gst_riff_create_video_caps</font><font size=2 face="sans-serif">
function returned 0, because it did not find my native fourcc code. How
is the fourcc transmitted to my plugin and how should I check it?</font>
<br>
<br><font size=2 face="sans-serif">Hella Aglaia Mobile Vision GmbH<br>
Steffen Roeber<br>
Firmware & Tools<br>
Treskowstr. 14, D-13089 Berlin<br>
Amtsgericht Berlin-Charlottenburg HRB 66976 B<br>
Geschäftsführer: Kay Talmi<br>
<br>
Fon: +49 30 200 04 29– 412<br>
Fax: +49 30 200 04 29– 109<br>
Mail: Steffen.Roeber@hella.com<br>
URL: www.aglaia-gmbh.de<br>
<br>
URL: www.mobilevision.de<br>
<br>
Dieses Dokument ist vertraulich zu behandeln. Die Weitergabe sowie Vervielfältigung,
Verwertung und Mitteilung seines Inhalts ist nur mit unserer ausdrücklichen
Genehmigung gestattet. Alle Rechte vorbehalten, insbesondere für den Fall
der Schutzrechtsanmeldung.<br>
This document has to be treated confidentially. Its contents are not to
be passed on, duplicated, exploited or disclosed without our express
permission. All rights reserved, especially the right to apply for protective
rights.</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=41%><font size=1 face="sans-serif"><b>Sebastian Dröge/</b></font>
<br>
<br><font size=1 face="Wingdings">(</font><font size=2 color=#000080 face="sans-serif">
</font>
<br><font size=1 face="sans-serif">Gesendet von: gstreamer-devel-bounces+steffen.roeber=hella.com@lists.freedesktop.org</font>
<p><font size=1 face="sans-serif">05.09.2011 13:44</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Bitte antworten an<br>
Discussion of the development of and with GStreamer
<gstreamer-devel@lists.freedesktop.org></font></div></table>
<br>
<td width=58%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">An</font></div>
<td><font size=1 face="sans-serif">Discussion of the development of and
with GStreamer <gstreamer-devel@lists.freedesktop.org></font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Kopie</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Thema</font></div>
<td><font size=1 face="sans-serif">Re: decodebin2 and plugins</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>On Mon, 2011-09-05 at 13:16 +0200, Steffen.Roeber@hella.com
wrote:<br>
> <br>
> Hi, <br>
> I tried to create a decoder for our native avi files. But I cannot<br>
> find an example of how to use it, so that decodebin2 does regconize
it<br>
> as a valid decoder plugin. Can anybody help me? <br>
<br>
You have to give it a rank >= GST_RANK_MARGINAL and add "Decoder"
to the<br>
element factory classification. The decoder element with the highest<br>
rank that accepts the stream's caps will be selected by decodebin2.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
gstreamer-devel@lists.freedesktop.org<br>
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br>
</tt></font>
<br>