<html><head></head><body><div>On Sat, 2017-02-04 at 10:39 +0100, Walter Lucetti wrote:</div><div><br></div><blockquote type="cite"><div>how can I check runtime if a plugin is available in my C++ code?</div><div><br></div><div>To be more precise I would like to check if I can use omxh264enc to encode H264, if not I use xh264enc...</div></blockquote><div><br></div><div>if (!gst_registry_check_feature_version (gst_registry_get(),</div><div> "omxh264", GST_VERSION_MAJOR, 0, 0)) {</div><div> ...</div><div>}</div><div><br></div><div>Alternatively, you could also find H.264 encoders programmatically without knowing the names, something with:</div><div><br></div><div> encs = gst_element_factory_list_get_elements (GST_ELEMENT_FACTORY_TYPE_VIDEO_ENCODER, GST_RANK_MARGINAL);</div><div> </div><div> h264_encoders = gst_element_factory_list_filter (encs, h264_caps, GST_PAD_SRC, FALSE);</div><div><br></div><div>...</div><div><br></div><div>Cheers</div><div> -Tim</div><div><br></div><div><span><pre>-- <br></pre><div class="-x-evo-paragraph" style="font-family: monospace; width: 71ch; word-wrap: break-word; word-break: break-word;">Tim Müller, Centricular Ltd - <a href="http://www.centricular.com">http://www.centricular.com</a></div>
</span></div></body></html>