[FFmpeg-devel] [PATCH v2 0/1] avcodec/libjxlenc: Add libjxl_animated encoder
Zsolt Vadász
zsolt_vadasz at protonmail.com
Wed Dec 13 22:53:08 EET 2023
This patchset adds support for encoding animated JPEG XL images via a
new encoder (libjxl_animated). When using the encoder, the output format
needs to be set to raw video, as shown below:
`ffmpeg -i sample.gif -c:v libjxl_animated -f rawvideo out.jxl`
V2 changes:
- This version doesn't move the JxlBasicInfo struct into
LibJxlEncodeContext (the JxlPixelFormat struct is still in the encoder context because
it's used in multiple functions, while the encode callbacks only use
the `ysize` from the JxlBasicInfo, which is just `frame-height`)
- It also doesn't overwrite `avctx->time_base`
- Builds that disable libjxl now succeed
Zsolt Vadasz (1):
avcodec/libjxlenc: Add libjxl_animated encoder
configure | 1 +
libavcodec/allcodecs.c | 1 +
libavcodec/libjxlenc.c | 214 +++++++++++++++++++++++++++++++++--------
3 files changed, 177 insertions(+), 39 deletions(-)
--
2.43.0
More information about the ffmpeg-devel
mailing list