vaapipostproc + (brightness|saturation|contrast) + huge memory leak
Timtchenko, Michael
Michael.Timtchenko at agcocorp.com
Tue Apr 21 12:55:14 UTC 2020
Hi all,
i'm currently facing a very strange behaviour within the gstreamer module vaapipostproc in version 1.16.2. I'm using this module for postprocessing of my video stream. Especially for adjustment of brightness, saturation and contrast, by changing the modules properties.
The decoding of the stream with vaapi, as well as the gl-texture-upload by glupload works like a charm. But when the stream is running and I'm trying to change the properties for brightness, saturation or contrast many times (in a calibration manner), I'm running out of memory.
Is it possible that there is a huge memory leak? When I'm steadily calibrating the mentioned properties for about 30 secs, I get an increase of memory about 2 GB. (I know from 14.4.4, that there were some issues related to a mutual exclusive color calibration, which were fixed by a patch.)
Could someone verify this issue?
Below I've attached the relevant code sequences:
Construction:
...
auto postproc = gst_element_factory_make( "vaapipostproc", "postproc" );
auto upload = gst_element_factory_make( "glupload", "upload" );
GstCaps* caps = gst_caps_from_string( "video/x-raw(memory:DMABuf), format=RGBA" );
if( !gst_element_link_filtered( postproc, upload, caps ) )
...
Setter for Properties (the lines below are executed very often, while stream is running):
...
gfloat tmp = 0.5
g_object_set( G_OBJECT( vaapipostproc ), "brightness", tmp, NULL );
...
Not sure whether i'm doing wrong, or there is sth broken in vaapipostproc.
Kind regards
Michael
Bitte beachten / Please note!
*******************************************************************************
AGCO GmbH
Sitz der AGCO GmbH: Johann-Georg-Fendt-Str.4, 87616 Marktoberdorf, Germany
Registergericht Amtsgericht Kempten HRB 10327
Gesch?ftsf?hrer: Christoph Groeblinghoff, Ingrid Bussjaeger-Martin, Dr. Heribert Reiter, Ekkehart Glaeser
Vorsitzender des Aufsichtsrates: Torsten Dehner
*******************************************************************************
Diese E-Mail ist nur f?r den Empf?nger bestimmt, an den es gerichtet ist und kann vertrauliches
bzw. unter das Berufsgeheimnis fallendes Material enthalten. Jegliche darin enthaltene Ansicht
oder Meinungs?u?erung ist die des Autors und stellt nicht notwendigerweise die Ansicht oder
Meinung von AGCO dar. Sind Sie nicht der Empf?nger, so haben Sie diese E-Mail irrt?mlich
erhalten und jegliche Verwendung, Ver?ffentlichung, Weiterleitung, Abschrift oder jeglicher
Druck dieser E-Mail ist strengstens untersagt. Weder AGCO noch der Absender ?bernehmen die
Haftung f?r Viren; es obliegt Ihrer Verantwortung, die E-Mail und deren angeh?ngte
Dateien (sofern vorhanden) auf Viren zu ?berpr?fen.
*******************************************************************************
This email is intended solely for the use of the individual to whom it is addressed and may contain
confidential and/or privileged material. Any views or opinions presented are solely those of the
author and do not necessarily represent those of AGCO. If you are not the intended recipient, be
advised that you have received this email in error and that any use, dissemination, forwarding,
printing or copying of this email is strictly prohibited. Neither AGCO nor the sender accepts any
responsibility for viruses and it is your responsibility to scan and virus check the email and its
attachment(s) (if any).
*******************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200421/1d65a651/attachment.htm>
More information about the gstreamer-devel
mailing list