[FFmpeg-devel] [PATCH v15 4/4] avformat/image2: add Jpeg XL as image2 format

Mark Gaiser markg85 at gmail.com
Thu May 5 00:56:23 EEST 2022


On Sat, Apr 23, 2022 at 7:53 PM Lynne <dev at lynne.ee> wrote:

> 17 Apr 2022, 15:22 by leo.izen at gmail.com:
>
> > This commit adds support to libavformat for muxing
> > and demuxing Jpeg XL images as image2 streams.
> > ---
> >  MAINTAINERS                |   1 +
> >  libavformat/Makefile       |   1 +
> >  libavformat/allformats.c   |   1 +
> >  libavformat/img2.c         |   1 +
> >  libavformat/img2dec.c      |  20 ++
> >  libavformat/img2enc.c      |   6 +-
> >  libavformat/jpegxl_probe.c | 393 +++++++++++++++++++++++++++++++++++++
> >  libavformat/jpegxl_probe.h |  32 +++
> >  libavformat/mov.c          |   1 +
> >  9 files changed, 453 insertions(+), 3 deletions(-)
> >  create mode 100644 libavformat/jpegxl_probe.c
> >  create mode 100644 libavformat/jpegxl_probe.h
> >
>
> Patchset pushed, thanks!
>

Hi,

I might have found a bug here. Or I might not be using it correctly, that's
entirely possible too!
What i try is just making an animated jxl from a bunch of input images.
This command for example works and creates a gif:
ffmpeg -f image2 -framerate 1 -i thumb%04d.jpg output.gif

This command (just changing "gif" to "jxl") errors.
ffmpeg -f image2 -framerate 1 -i thumb%04d.jpg output.jxl

The error:
[image2 @ 0x557ea81112c0] Could not get frame filename number 2 from
pattern 'output.jxl'. Use '-frames:v 1' for a single image, or '-update'
option, or use a pattern such as %03d within the filename.
av_interleaved_write_frame(): Invalid argument

It does look like it tries to use "output.jxl" as a pattern file as opposed
to "thumb%04d.jpg".

Am I doing something wrong here?


> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-devel mailing list