FS#75830 - [ffmpeg] 5.1.1 doesn't come with jxl support

Attached to Project: Arch Linux
Opened by Joop Kiefte (lapingvino) - Tuesday, 06 September 2022, 19:49 GMT
Last edited by Maxime Gauduin (Alucryd) - Thursday, 22 September 2022, 15:22 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

Description: Using ffmpeg 5.1.1, trying to view the example image on the jpegxl website with ffplay or converting it with ffmpeg it says codec jpegxl not found. Additionally, on ARM64 it also segfaults when trying to use the jpegxl functionality (unfortunately cannot find the right place to report it for ArchlinuxARM rn, sorry!)

➜ ~ ffmpeg -i logo.jxl logo.png
...
[jpegxl_pipe @ 0x5590c7f06a80] Could not find codec parameters for stream 0 (Video: jpegxl, none): unspecified size
Decoder (codec jpegxl) not found for input stream #0:0

Additional info:
* package version(s): 5.1.1
* package libjxl is installed

Steps to reproduce:
1. install the latest version of ffmpeg
2. download https://jpegxl.info/logo.jxl
3. ffplay logo.jxl ; ffmpeg -i logo.jxl logo.png
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Thursday, 22 September 2022, 15:22 GMT
Reason for closing:  Won't implement
Comment by Siegfried Metz (NiceGuy) - Tuesday, 06 September 2022, 21:11 GMT
ffmpeg needs at least libjxl >= 0.7, which is still a pre-release as of now. Remember in Arch-land, we normally use stable vanilla releases. Also, it does not compile, maybe needs some additional adjustments, even after a new stable release of libjxl.

I tried it for my own purposes, compilation of latest ffmpeg-5.1.1 with configure flag explicitly added --enable-libjxl aborts with an error.

Longer explanation:
I had the intention to backport a patch for mpv, also a custom built version, to have screenshots in jxl format. The configuration of mpv just checks for a new enough >= 5.1 ffmpeg version and let you compile it cleanly ... BUT, needs libjxl >= 0.7 and ffmpeg with enabled libjxl support.

Just wait a little bit longer for it to arrive. :) The libjxl devs promise a new stable libjxl release soon. Their words, not mine.
Comment by Joop Kiefte (lapingvino) - Wednesday, 07 September 2022, 00:06 GMT
Fair enough. We'll wait then and at least there is an issue out so people can double-check that it works.
Comment by M. Kaburagi (m.kaburagi) - Thursday, 22 September 2022, 06:10 GMT
  • Field changed: Percent Complete (100% → 0%)
libjxl 0.7.0 has been released, and is currently in [Community-Staging].
Comment by Maxime Gauduin (Alucryd) - Thursday, 22 September 2022, 15:22 GMT
ffmpeg is an audio and video utility, it is bloated enough already, please use image utilities like IM, vips or skia for this.

Supporting some of the popular image formats we already do in case you'd like to create a video clip from a sequence of images can make sense but I hardly see the need to have that temporary image sequence as jxl instead of png for instance. Even jxl screenshots is a non issue, just save your screenshot as png then convert it to jxl using one of the above.

Loading...