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

Cosmin Stejerean cosmin at cosmin.at
Fri Dec 8 04:02:24 EET 2023



> On Dec 7, 2023, at 9:42 AM, Andreas Rheinhardt <andreas.rheinhardt at outlook.com> wrote:
> 
> 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.

What would be a better approach here, keeping all the animations in a single packet and decoding multiple frames from it, by essentially moving this logic to split them from the parser to the decoder?

- Cosmin


More information about the ffmpeg-devel mailing list