vaapipostproc + colorbalance not working properly
Víctor Jáquez
vjaquez at igalia.com
Tue Jul 16 08:41:00 UTC 2019
On Tue, 16 Jul 2019 at 08:14, Timtchenko, Michael wrote:
> Hi all,
>
> i'm facing an issue related to gstreamers module "vaapipostproc" in version 1.14.4. I'm trying to adjust the colorbalance of a video stream by setting the following properties
>
>
> - saturation
>
> - contrast
>
> - brightness
>
> while active streaming.
>
> I'm doing this by setting the following properties:
>
> g_object_set( G_OBJECT( vaapipostproc ), "saturation", saturation, NULL );
> g_object_set( G_OBJECT( vaapipostproc ), "contrast", contrast, NULL );
> g_object_set( G_OBJECT( vaapipostproc ), "brightness", brightness, NULL );
>
> whereas saturation, contrast and brightness are properly initialized gfloat variables.
>
> It seems that there is a domination order contrast > brightness > saturation.
>
> I'll explain this shortly:
>
> Case I:
>
> 1. Setting saturation to maximum -> Image is properly adjusted
>
> 2. Minimal reduction of brightness -> Saturation of image is reset
>
> 3. Resetting brightness to default value -> Image has again the saturation of (1)
>
> Case II:
>
> 1. Setting brightness to maximum -> Image is properly adjusted
>
> 2. Minimal reduction of contrast -> Brightness of image is reset
>
> 3. Resetting contrast to default value -> Image has again the brightness of (1)
>
> Case III:
>
> 1. Setting saturation to maximum -> Image is properly adjusted
>
> 2. Minimal reduction of contrast -> Saturation of the image is reset
>
> 3. Resetting the contrast to default value -> Image has again the saturation of (1)
>
>
> I've checked this behavior by setting the property values programmatically in code and also by setting up the pipeline with the corresponding values up front.
>
> Am I doing wrong, or is there a bug in the module "vaapipostproc"?
It smells like a bug. But before, what backend are you using? can you share your
test app? and finally, can you share a GST_DEBUG=vaapipostproc:5 log?
You can open an issue in gitlab and upload those files :)
Thanks
vmjl
More information about the gstreamer-devel
mailing list