m-ab-s / media-autobuild_suite

This Windows Batchscript helps setup a Mingw-w64 compiler environment for building ffmpeg and other media tools under Windows.
GNU General Public License v3.0
1.5k stars 257 forks source link

[add] libheif #2516

Open zedd-0 opened 9 months ago

zedd-0 commented 9 months ago

hi, is it possible to add libheif to this script? https://github.com/strukturag/libheif

hydra3333 commented 9 months ago

I don't recall if ffmpeg supports those formats already in some manner ... Ah. It seems ffmpeg itself does not support heif https://stackoverflow.com/questions/65435536/convert-a-heif-file-to-png-jpg-using-ffmpeg

After quick google, I have not yet spotted anything in ffmpeg to say it supports libheif and a reasonable guess would be that ffmpeg needs to be updated to support it.

In fact https://github.com/strukturag/libheif#software-using-libheif does not list ffmpeg as software which uses libheif.

On that basis, since MABS is a build system for ffmpeg and dependencies, I guess that no change to MABS would achieve what you are seeking ?

Lack of heif support seems to be a long overdue shortcoming in ffmpeg, based on TRAC comments.

L4cache commented 9 months ago

I don't recall if ffmpeg supports those formats already in some manner ... Ah. It seems ffmpeg itself does not support heif https://stackoverflow.com/questions/65435536/convert-a-heif-file-to-png-jpg-using-ffmpeg

After quick google, I have not yet spotted anything in ffmpeg to say it supports libheif and a reasonable guess would be that ffmpeg needs to be updated to support it.

In fact https://github.com/strukturag/libheif#software-using-libheif does not list ffmpeg as software which uses libheif.

On that basis, since MABS is a build system for ffmpeg and dependencies, I guess that no change to MABS would achieve what you are seeking ?

Lack of heif support seems to be a long overdue shortcoming in ffmpeg, based on TRAC comments.

It's funny (or not) that ffmpeg supports so called "avif" but no "heic". It's just a container! No big deal though, things are just starting to get complicated as some people already removed jpeg-xl from a most popular product.

hydra3333 commented 9 months ago

Yes, things seem a tad peculiar. For better or worse, I'd always thought of ffmpeg as a mainstream video processing product and so was unsurprised to note some deficiencies around image processing.

gitoss commented 1 month ago

hi, is it possible to add libheif to this script? https://github.com/strukturag/libheif

Using media-autobild's msys shell, I was able to compile libheif with all HEVC & AV1 encoders/decoders I want to use - there are no Windows binaries around the web for that.

I didn't use add it to media-suite_compile.sh, but did a manual cmake - which was a LOT of hassle, I had to set the respective PKGCONF LIBRARY and INCLUDE_DIR params.

If anyone happens to have a patch / addition for media-suite_compile.sh which is 'fire and forget', please do share.