Handling of QoS in a BaseTransform subclass
Nicolas Dufresne
nicolas at ndufresne.ca
Wed Dec 20 14:42:22 UTC 2017
Le 20 déc. 2017 7:31 AM, "Jimmy De Pauw" <jimmy at dcode.eu> a écrit :
I am almost certain that BaseTransform ignore QoS because it does not have
any segment timing to work with.
Therefore i wonder if it is possible to have QoS when the main sink is
filesrc with a test file.
Considering the following pipeline :
filesrc ! decodebin ! queue ! videoconvert ! <my plugin> ! jpegenc !
multifilesink
In the debug log i have only one « gst_base_transform_chain ... we have a
pending DISCONT» but never twice.
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.
Is it possible to simulate a live feed from a video file with full QoS
support so i can test my processing speed?
As soon as you have time segment and timestamp (e.g. after
demuxer/parsing/decoding) you can add identity sync=1 to simulate a live
feed.
On 18 Dec 2017, at 15:24, Nicolas Dufresne <nicolas at ndufresne.ca> wrote:
Le 18 déc. 2017 5:10 AM, "Jimmy De Pauw" <jimmy at dcode.eu> a écrit :
Hello,
I have been creating my own plugin using GstBaseTransform as the parent
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.
I can see that BaseTransform already listen to QoS event on its sink and
set some properties in its priv structure.
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.
It sounds like i have no access to it at all.
Looking at the videoconvert source code i don’t see how it handles QoS
eventl.
It's entirely handled by the base class. But you can catch the event on
your srcpad, there is virtual functions for that.
What is the proper way of using what is already there in the BaseTransform
class to handle QoS on my own subclass?
Thanks
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20171220/8ba183fd/attachment.html>
More information about the gstreamer-devel
mailing list