Opened 3 years ago
Closed 3 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)
Change History (5)
by , 3 years ago
Attachment: | rainbow.png added |
---|
comment:1 by , 3 years ago
comment:2 by , 3 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
follow-up: 4 comment:3 by , 3 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?
comment:4 by , 3 years ago
Resolution: | → worksforme |
---|---|
Status: | new → closed |
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
potential fix is to use alphaextract+alphamerge however this might leave dark blending artefacts on semitransparent pixels