FS#58381 - [ffmpeg] compile with libzimg support

Attached to Project: Arch Linux
Opened by Milan (PetaByteBoy) - Saturday, 28 April 2018, 17:23 GMT
Last edited by Maxime Gauduin (Alucryd) - Tuesday, 16 March 2021, 08:17 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 0
Private No

Details

Description:
The ffmpeg binary distributed by ArchLinux does not include support for libzimg, which is needed for some libav filters like zscale.

additional info:
ffmpeg 1:4.0-1

Steps to reproduce:
Try to use the libav zscale filter for example in mpv.
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Tuesday, 16 March 2021, 08:17 GMT
Reason for closing:  Implemented
Additional comments about closing:  2:4.3.2-2
Comment by Paul Ganssle (pganssle) - Sunday, 14 March 2021, 05:25 GMT
From what I can tell, the zscale filter is critical in converting HDR videos to SDR, but it is only available with `--enable-libzimg`.

I believe the Samsung Galaxy line of phones shoots video in HDR10+, and from what I can tell iPhones can also shoot in 4k HDR modes: https://www.phonearena.com/news/How-to-record-Dolby-Vision-HDR-video-iPhone-12Pro-compatibility-YouTube_id128208

I suspect that many people will want to be able to convert their HDR videos to SDR with tone-mapping — which, as far as I can tell, requires using zscale. This does not seem like an especially niche use case that is only useful for "power users" who are likely to be comfortable with compiling their own custom ffmpeg build.

It is laudable to keep the dependency tree small, and I don't know what the politics of bringing zimg into [extra] are, but I will note that it seems to be a relatively small package (installed size ~1MB) with no installed dependencies, so I would guess that it's a better-than-average candidate.

Loading...