notification on every frame played

Matt Feury mattfeury at gmail.com
Tue Jan 24 16:26:06 UTC 2023


You should be able to leverage the identity
<https://gstreamer.freedesktop.org/documentation/coreelements/identity.html>
element, specifically the `handoff` callback which gets called for every
buffer that passes through it. Add that element to your pipeline, and that
function will get called for every buffer. (Note that a buffer is not
always guaranteed to equal a frame depending on the source you're using.
For most live sources this seems to be true though)

Matt

On Tue, Jan 24, 2023 at 8:00 AM Belisko Marek via gstreamer-devel <
gstreamer-devel at lists.freedesktop.org> wrote:

> Hello,
>
> It would be possible somehow to get notification from the gstreamer on
> every frame which was played. So when video have 30fps then notify 30
> times / second. I was searching for some examples and found
> gst_bus_timed_pop_filtered but I'm not sure which GST)MESSAGE_STATE*
> can be used for my purpose.
>
> Thanks and BR,
>
> marek
>
> --
> as simple and primitive as possible
> -------------------------------------------------
> Marek Belisko - OPEN-NANDRA
> Freelance Developer
>
> Ruska Nova Ves 219 | Presov, 08005 Slovak Republic
> Tel: +421 915 052 184
> skype: marekwhite
> twitter: #opennandra
> web: http://open-nandra.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20230124/758ecda7/attachment.htm>


More information about the gstreamer-devel mailing list