Opened 5 years ago
Closed 3 years ago
#8453 closed defect (fixed)
converting png frames to gif is broken
Reported by: | AyrA | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avfilter |
Version: | git-master | Keywords: | paletteuse |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug
Converting png frames with transparency creates weird looking animations.
- The first non-transparent row of each frame is replaced with a semi-transparent red line, sometimes other colors.
- Using local palette occasionally replaces the transparent sections with green
- The frame disposal is set to "replace" instead of "combine"
Version Info
OS: Windows 7 SP1 x64
ffmpeg: git-2019-12-29-e20c6d9
Note: The issue with the frame disposal and transparency being green does not exists in version N-91266-g8c20ea8ee0. The issue with the horizontal lines exists in both versions
How to reproduce
Using a global palette:
ffmpeg -framerate 2 -i %02d.png -filter_complex "[0:v] split [a][b];[a] palettegen [p];[b][p] paletteuse" test.gif
Using a local palette (one for each frame):
ffmpeg -framerate 2 -i %02d.png -filter_complex "[0:v] split [a][b];[a] palettegen=stats_mode=single [p];[b][p] paletteuse=new=1" test.gif
Note: attached are the frames as well as generated outputs
Attachments (1)
Change History (7)
by , 5 years ago
Attachment: | ffmpeg.zip added |
---|
comment:1 by , 5 years ago
The first issue is bug in swscale - it badly converts pal to other formats, workaround is using black color for transparency with palettegen.
comment:2 by , 5 years ago
comment:3 by , 5 years ago
This one is about ffmpeg inserting lines of red (and sometimes green) color. The other ones aren't.
comment:4 by , 4 years ago
Component: | undetermined → avfilter |
---|---|
Keywords: | paletteuse added |
Not gif-related afaict.
comment:5 by , 3 years ago
Status: | new → open |
---|
The issue with green frame with new=1 have been fixed.
comment:6 by , 3 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Input PNG frames, example commands, generated GIF files