Opened 3 years ago

Closed 3 years ago

#9453 closed defect (fixed)

Overlay with negative x/y produces artefacts

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

Description (last modified by Jozef Chutka)

Summary of the bug:

Overlaying image/movie over main with alpha channel (see [shape]) produces ugly artefacts esp. when used with negative x/y.

However, when color=c=0x000000 (no alpha) or x/y is positive there are no visible artefacts.

How to reproduce:

ffmpeg -filter_complex_script filter.txt -frames:v 1 out.png -y

filter.txt:

color=c=0xff0000:size=1280x720[main];
color=c=0x00000000:size=500x500[shape];
movie=640x640.jpg,[shape]overlay=y=-10,[main]overlay

Actually using ffmpeg 4.4, but this version is not avialble in version dropdown in this form.

Attachments (2)

out.png (169.9 KB ) - added by Jozef Chutka 3 years ago.
640x640.jpg (73.0 KB ) - added by Jozef Chutka 3 years ago.

Download all attachments as: .zip

Change History (5)

by Jozef Chutka, 3 years ago

Attachment: out.png added

by Jozef Chutka, 3 years ago

Attachment: 640x640.jpg added

comment:1 by Jozef Chutka, 3 years ago

Description: modified (diff)

comment:2 by Jozef Chutka, 3 years ago

I am aware that there are other ways to accomplish what I am trying to do, but this piece of filter comes from large one and current form is the minimum needed to replicate the issue.

comment:3 by Elon Musk, 3 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.