<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 30 avr. 2019 08 h 10, Stefan Persson <<a href="mailto:johli392@student.liu.se">johli392@student.liu.se</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I would like to analyse the video data that is being to sent to<br>
autovideosink for display in the Android app.<br>
<br>
My plan is to use an appsink element and tee the output to that one. However<br>
I'd like to avoid any copying the data as the appsink will only read the<br>
content and output statistics.<br>
<br>
How can I minimize the performance loss? Are there any caps for appsink or<br>
tee I can set to force pass by reference?<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Appsink passes references by default. So you should try. You need not to hold for too long on the buffers to avoid reducing perf.</div><div dir="auto"><br></div><div dir="auto">If you still see copies (high CPU load), that could be because of the lack of video meta support. You can then implement allocation query to advertise video meta, or replace the tee/appsink with a pad probe. Just ping again if you need more details about this alternative.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
I'd like to avoid having to write a complete plugin for this as the code<br>
will only be used in one small part of the app.<br>
<br>
Best Regards<br>
<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div>