sync=false does not seem to work in appsink

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

sync=false does not seem to work in appsink

Kazanian
This post was updated on .
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: sync=false does not seem to work in appsink

Nicolas Dufresne-5
Le mardi 22 septembre 2020 à 06:54 -0500, Kazanian a écrit :

> Hi,
>
> my pipeline looks like this:
> filesrc ! h264parse ! vpudec ! appsink sync=false
>
> The loaded h264-file has 50 fps. In the appsink callback function, I
> measured the framerate and the result is always 30 fps whether sync is true
> or false. But sync=false should result in processing the frames as fast as
> possible. Why is this not working with appsink?
>
> If I replace appsink by glimagesink sync=false, then I achieve 56 fps. So
> here it makes a difference but not with appsink.

appsink as-is may break zero-copy, so on top of the decoding overhead,
you may have detiling (linearization) overhead. If you need to maintain
zero-copy with appsink, consider adapting the caps and perhaps
implementing the allocation query (you can refer to kmscube sample app
from the Mesa team on how to use appsink in zero-copy).

>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: sync=false does not seem to work in appsink

Nicolas Dufresne-5
Le mercredi 23 septembre 2020 à 02:27 -0500, Kazanian a écrit :
> OK, that's a good hint, but my problem is not that appsink is too slow, but
> that it seems to discard the sync=false attribute and always sticks to 30
> fps.
>
> If sync=true or sync=false is set, 30 fps are processed. If I do some
> computation or nothing at all in the appsink callback function, I end up
> with 30 fps and that seems strange. If frames are processed as fast as
> possible when using sync=false, the framerate is expected to go down when
> doing more calculations in the callback.

Some HW decoder are configured to match to real-time performance
(reducing power consumption). I don't know if it's the case for you
with this VPU.

>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel