Opened 2 years ago

Closed 2 years ago

#9538 closed defect (worksforme)

eq filter does not maintain transparency

Reported by: Jozef Chutka Owned by:
Priority: normal Component: undetermined
Version: 4.4.3 Keywords: eq
Cc: Jozef Chutka Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Using eq filter, the transparency information is lost and black pixles are rendered instead.

How to reproduce:

ffmpeg -filter_complex "color=color=green:size=1280x720[v];movie=input/rainbow.png,format=argb,eq=saturation=1,[v]overlay" -frames:v 1 output/out-eq.png -y

Notice, there is a small cut in the middle of rainbow.png. When using eq filter this part gets rendered as black instead of the proper background color.

Removing the eq from the chain, it does the job properly

ffmpeg -filter_complex "color=color=green:size=1280x720[v];movie=input/rainbow.png,format=argb,[v]overlay" -frames:v 1 output/out.png -y

The issue exists with 4.4.1 and also latest builds.

Attachments (1)

rainbow.png (227.5 KB ) - added by Jozef Chutka 2 years ago.

Download all attachments as: .zip

Change History (5)

by Jozef Chutka, 2 years ago

Attachment: rainbow.png added

comment:1 by Jozef Chutka, 2 years ago

potential fix is to use alphaextract+alphamerge however this might leave dark blending artefacts on semitransparent pixels

comment:2 by Michael Koch, 2 years ago

I can't reproduce this problem. In the output image the hole in the image is green.
Did work with a 2 weeks old Windows build, and also with the latest build from today.

Michael

comment:3 by Jozef Chutka, 2 years ago

Hi Michael,

thanks for looking into it, seems my "latest" was a bit older. I can confirm its working with current latest (86a2123a6e), however not with 4.4.1.

Any chance this would also land into 4.4.x?
Or what are the plans for 4.5 release?

in reply to:  3 comment:4 by Michael Koch, 2 years ago

Resolution: worksforme
Status: newclosed

Replying to Jozef Chutka:

Hi Michael,

thanks for looking into it, seems my "latest" was a bit older. I can confirm its working with current latest (86a2123a6e), however not with 4.4.1.

Any chance this would also land into 4.4.x?
Or what are the plans for 4.5 release?

I can't answer these questions because I'm not a developer. From my point of view, it makes sense to always use the latest version.

Michael

Note: See TracTickets for help on using tickets.