Opened 9 years ago
Last modified 4 months ago
#4907 open enhancement
Support decoding animated WebP images
Reported by: | Urvang Joshi | Owned by: | Artem |
---|---|---|---|
Priority: | wish | Component: | avcodec |
Version: | git-master | Keywords: | webp |
Cc: | shaunspiller@gmail.com, pcgeek86@gmail.com, k.bumsik@gmail.com, me@jozen.blue, irdroid3@gmail.com, xanashi@gmail.com, Zipdox, nbryskin, junk, Thomas, Kelly Clowers | Blocked By: | |
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description
Summary of the bug:
Currently, FFmpeg can encode animated WebPs, but cannot decode them, which is inconvenient for users.
Decoding animated WebPs right now generates "image data not found error" due to "unsupported chunk": https://github.com/FFmpeg/FFmpeg/blob/master/libavcodec/webp.c#L1504
How to reproduce:
(example input image: https://www.gstatic.com/webp/animated/1.webp)
% ffmpeg -i 1.webp 1.gif ffmpeg version N-75787-g1d4af04 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04) configuration: --enable-libwebp libavutil 55. 2.100 / 55. 2.100 libavcodec 57. 4.100 / 57. 4.100 libavformat 57. 3.100 / 57. 3.100 libavdevice 57. 0.100 / 57. 0.100 libavfilter 6. 10.100 / 6. 10.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.100 / 2. 0.100 [webp @ 0x3782940] image data not found [webp_pipe @ 0x3781360] decoding for stream 0 failed < Rest of the output truncated >
Attachments (5)
Change History (35)
by , 9 years ago
comment:1 by , 9 years ago
Keywords: | webp added |
---|---|
Priority: | normal → wish |
Reproduced by developer: | set |
Status: | new → open |
Version: | unspecified → git-master |
comment:2 by , 5 years ago
Cc: | added |
---|
comment:3 by , 5 years ago
Cc: | added |
---|
comment:4 by , 4 years ago
Cc: | added |
---|
comment:5 by , 4 years ago
Is anybody working on this? I am thinking that I would eventually implement this but do not want to duplicate work.
by , 4 years ago
Animated WebP image (YUV) with transparent black surroundings of the object
comment:7 by , 4 years ago
Cc: | removed |
---|
comment:8 by , 4 years ago
Cc: | added |
---|
comment:9 by , 4 years ago
comment:10 by , 4 years ago
Cc: | added |
---|
comment:11 by , 4 years ago
Cc: | added |
---|
comment:12 by , 4 years ago
Cc: | added |
---|
comment:13 by , 3 years ago
comment:14 by , 3 years ago
Another file with the same problem:
https://0x0.st/-FzA.webp - (Link only available in less of 1 year)
comment:16 by , 3 years ago
Cc: | added |
---|---|
Priority: | wish → important |
I propose setting the priority to important. Not being able to decode animated WebP is a huge problem for projects that use FFmpeg for thumbnail generation and image/video scaling.
follow-ups: 18 19 comment:17 by , 2 years ago
Priority: | important → wish |
---|
follow-up: 20 comment:18 by , 2 years ago
Replying to Carl Eugen Hoyos:
I also suggest changing this priority to important. Our service also has lots of webp animated images and ffmpeg failed to handle them. Kill please help to get this prioritized. Need this badly.
comment:19 by , 2 years ago
Replying to Carl Eugen Hoyos:
I also suggest changing this priority to important. Our service also has lots of webp animated images and ffmpeg failed to handle them. Kill please help to get this prioritized. Need this badly.
comment:20 by , 2 years ago
Replying to Qian Chang:
Replying to Carl Eugen Hoyos:
I also suggest changing this priority to important. Our service also has lots of webp animated images and ffmpeg failed to handle them. Kill please help to get this prioritized. Need this badly.
We do not look into priority. And not bugs can only be tagged as wish.
comment:21 by , 2 years ago
Cc: | added |
---|
comment:22 by , 2 years ago
Owner: | set to |
---|
I also suggest making this a priority.
I want to decode webp to mp4 also web to images
comment:23 by , 2 years ago
Cc: | added |
---|
comment:25 by , 15 months ago
Cc: | added |
---|
comment:26 by , 13 months ago
Cc: | added |
---|
comment:27 by , 10 months ago
anyone currently working on this? I just started writing some code for this
comment:28 by , 8 months ago
I seem to have created duplicated ticket on https://trac.ffmpeg.org/ticket/10934 . Linking it here for more details and in case its closed.
follow-up: 30 comment:29 by , 8 months ago
@linleo345: There is work being done on it, see the ffmpeg-devel
An animated WebP image