[FFmpeg-devel] [PATCH v7 3/7] avcodec/webp_parser: parse each frame into one packet

Andreas Rheinhardt andreas.rheinhardt at outlook.com
Thu Dec 7 19:42:58 EET 2023


Thilo Borgmann via ffmpeg-devel:
> ---
>  libavcodec/webp_parser.c | 130 +++++++++++++++++++++++++++------------
>  1 file changed, 89 insertions(+), 41 deletions(-)
> 

According to
https://developers.google.com/speed/webp/docs/riff_container#extended_file_format
metadata chunks are stored after the image data; if you split the data
into packets, then the metadata while only become available for the very
last frame, although it pertains to all of them. This makes your
approach unworkable.

Additionally, the WebP muxer expects animations to be contained in a
single packet, hence the warnings from Michael.

- Andreas



More information about the ffmpeg-devel mailing list