#10070 closed defect (invalid)
apng enc artefacts
| Reported by: | ami_stuff | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | unspecified | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
https://trac.ffmpeg.org/raw-attachment/ticket/10068/gold2.avi
./ffmpeg -i gold2.avi -vcodec apng -y out.apng
ffmpeg version N-109101-g822da7a317 Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
configuration: --enable-libopenjpeg
libavutil 57. 42.100 / 57. 42.100
libavcodec 59. 52.102 / 59. 52.102
libavformat 59. 34.101 / 59. 34.101
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 50.100 / 8. 50.100
libswscale 6. 8.112 / 6. 8.112
libswresample 4. 9.100 / 4. 9.100
Input #0, avi, from 'gold2.avi':
Duration: 00:00:12.00, start: 0.000000, bitrate: 153 kb/s
Stream #0:0: Video: srgc (srgc / 0x63677273), bgra, 299x171, 149 kb/s, 15 fps, 15 tbr, 15 tbn
Stream mapping:
Stream #0:0 -> #0:0 (srgc (native) -> apng (native))
Press [q] to stop, [?] for help
Output #0, apng, to 'out.apng':
Metadata:
encoder : Lavf59.34.101
Stream #0:0: Video: apng, rgba(pc, gbr/unknown/unknown, progressive), 299x171, q=2-31, 200 kb/s, 15 fps, 15 tbn
Metadata:
encoder : Lavc59.52.102 apng
frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbframe= 110 fps=0.0 q=-0.0 size= 57kB time=00:00:07.33 bitrate= 64.2kbits/frame= 180 fps=0.0 q=-0.0 Lsize= 94kB time=00:00:11.93 bitrate= 64.3kbits/s speed=14.6x
video:94kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.089694%
Change History (5)
comment:1 by , 3 years ago
| Resolution: | → invalid |
|---|---|
| Status: | new → closed |
comment:2 by , 3 years ago
| Resolution: | invalid |
|---|---|
| Status: | closed → reopened |
ffmpeg -i gold2.avi out.apng
ffmpeg -i out.apng out.avi
ffplay out.avi
a black rectangles are visible
it's either a bug in encoder or decoder - I don't know
comment:3 by , 3 years ago
| Resolution: | → invalid |
|---|---|
| Status: | reopened → closed |
You need to be always precise in your reports, otherwise they are not useful and just pile up like junk.
APNG encoder is not buggy in this case, nor SRGC decoder. Video have alpha with moving mouse pointer. Post what input/output should look like....
comment:4 by , 3 years ago
I was talking about a possible bug in apng decoder, not srgc...
When one convert directly "gold2.avi" file to "out.avi", there won't be any visible artefacts/black rectangles while playing the output "out.avi" file with ffplay:
ffmpeg -i gold2.avi out.avi
ffplay out.avi
but when one do conversion like this:
ffmpeg -i gold2.avi out.apng
ffmpeg -i out.apng out.avi
ffplay out.avi
artefacts/black rectangles will be visible while playing the output "out.avi" file with ffplay
How is this not a bug?



I see nothing wrong with apng encoded file.