<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">I am almost certain that BaseTransform ignore QoS because it does not have any segment timing to work with.</div><div class="">Therefore i wonder if it is possible to have QoS when the main sink is filesrc with a test file.</div><div class=""><br class=""></div><div class="">Considering the following pipeline :</div><div class=""><br class=""></div><div class="">filesrc ! decodebin ! queue ! videoconvert ! <my plugin> ! jpegenc ! multifilesink</div><div class=""><br class=""></div><div class="">In the debug log i have only one « <span style="background-color: rgba(0, 0, 0, 0.85098);" class=""><font color="#f4f4f4" face="Monaco" size="1" class="">gst_base_transform_chain ... </font></span><span style="color: rgb(244, 244, 244); font-family: Monaco; font-size: 10px; background-color: rgba(0, 0, 0, 0.85098);" class="">we have a pending DISCONT</span><span style="color: rgb(244, 244, 244); font-family: Monaco; font-size: x-small; background-color: rgba(0, 0, 0, 0.85098);" class="">» </span> but never twice.</div><div class="">I also never have a buffer dropped, looking at the code of GstBaseTransform i think this is because i don’t receive and segment information.</div><div class=""><br class=""></div><div class="">Is it possible to simulate a live feed from a video file with full QoS support so i can test my processing speed?</div><br class=""><div><blockquote type="cite" class=""><div class="">On 18 Dec 2017, at 15:24, Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca" class="">nicolas@ndufresne.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class=""><div class=""><br class=""><div class="gmail_extra"><br class=""><div class="gmail_quote">Le 18 déc. 2017 5:10 AM, "Jimmy De Pauw" <<a href="mailto:jimmy@dcode.eu" class="">jimmy@dcode.eu</a>> a écrit :<br type="attribution" class=""><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br class="">
<br class="">
I have been creating my own plugin using GstBaseTransform as the parent class.<br class="">
It works find but now i want to handle the QoS in my tranform method to know if i have to drop the buffer or not.<br class="">
<br class="">
I can see that BaseTransform already listen to QoS event on its sink and set some properties in its priv structure.<br class="">
I would like to have access to the earliest_time property from my own transform method but i don’t know how to do it, if it is possible at all.<br class="">
It sounds like i have no access to it at all.<br class="">
<br class="">
Looking at the videoconvert source code i don’t see how it handles QoS eventl.<br class=""></blockquote></div></div></div><div dir="auto" class=""><br class=""></div><div dir="auto" class="">It's entirely handled by the base class.  But you can catch the event on your srcpad, there is virtual functions for that.</div><div dir="auto" class=""><br class=""></div><div dir="auto" class=""><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br class="">
What is the proper way of using what is already there in the BaseTransform class to handle QoS on my own subclass?<br class="">
<br class="">
Thanks<br class="">
______________________________<wbr class="">_________________<br class="">
gstreamer-devel mailing list<br class="">
<a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.<wbr class="">freedesktop.org</a><br class="">
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank" class="">https://lists.freedesktop.org/<wbr class="">mailman/listinfo/gstreamer-<wbr class="">devel</a><br class="">
</blockquote></div><br class=""></div></div></div>
_______________________________________________<br class="">gstreamer-devel mailing list<br class=""><a href="mailto:gstreamer-devel@lists.freedesktop.org" class="">gstreamer-devel@lists.freedesktop.org</a><br class="">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel<br class=""></div></blockquote></div><br class=""></body></html>