<div dir="auto">Thank you very much guys.<div dir="auto"><br><div dir="auto">I'm writing a streamer that can work both on desktop and embedded systems and I would like to use HW encoder/decoder when available.</div><div dir="auto"><br><div data-smartmail="gmail_signature" dir="auto">-- <br>Walter Lucetti<br><br>email: <a href="mailto:myzhar@gmail.com">myzhar@gmail.com</a><br>web: <a href="http://www.robot-home.it">www.robot-home.it</a> - <a href="http://www.opencv.it">www.opencv.it</a><br>project: <a href="http://myzharbot.robot-home.it">http://myzharbot.robot-home.it</a></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">Il 05 Feb 2017 11:30, "Tim Müller" <<a href="mailto:tim@centricular.com">tim@centricular.com</a>> ha scritto:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><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_<wbr>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_<wbr>elements (GST_ELEMENT_FACTORY_TYPE_<wbr>VIDEO_ENCODER, GST_RANK_MARGINAL);</div><div> </div><div> h264_encoders = gst_element_factory_list_<wbr>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="m_-1413903426445978938-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" target="_blank">http://www.centricular.com</a></div>
</span></div></div><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div></div>