Appsink: How to drop samples?

Nicolas Dufresne nicolas at ndufresne.ca
Tue Apr 23 20:11:28 UTC 2019


Le mardi 23 avril 2019 à 20:53 +0300, Ilya Aleshkov a écrit :
> Hi,
> 
> I have a pair of pipelines for recording (thanks to Nicolas Dufresne):
> 
> ksvideosrc ... ! tee name=t
>     t. ! queue ! glimagesaink
>     t. ! queue ! appsink
> 
> appsrc ! x264enc tune=zerolatency ! video/x-h264,stream-format=byte-stream ! filesink location=video.h264
> 
> My app pass the samples from appsink to appsrc when needed. Everything works.
> But I have to always keep the emit-signals property enabled. I guess It's not good for performance. Am I right? If I enable emit-signals only while recording I get a large time shift in recorded files. It looks like buffering inside appsink. How to drop these samples?

First thing I would try, set properties drop=1 and max-buffers=1 (or a
decently low value) on appsink.

> 
> Thanks,
> Ilya
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190423/b8cb77c2/attachment.sig>


More information about the gstreamer-devel mailing list