notification on every frame played

Belisko Marek marek.belisko at
Thu Jan 26 14:20:48 UTC 2023


On Tue, Jan 24, 2023 at 5:26 PM Matt Feury <mattfeury at> wrote:
> You should be able to leverage the identity 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)
Thanks for the info. In my pipeline I'm using playbin3 and  adding
identity component isn't not possible to pipeline. Is there any other
way how to do this?
> Matt
> On Tue, Jan 24, 2023 at 8:00 AM Belisko Marek via gstreamer-devel <gstreamer-devel at> 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:

Thanks and BR,


More information about the gstreamer-devel mailing list