View Full Version : Indexing HEIC images in Avisynth
FranceBB
4th May 2022, 15:17
Hi there,
I have some HEIC images that I have to index.
Essentially, afaik, this is the H.265 version of still frames.
I tried ImageSource() and FFImageSource() and neither of them worked.
Avisynth+ 3.7.2
ffms2 5.1@1764a6887b
Sample: https://we.tl/t-D8twJZC8sk
Reel.Deel
4th May 2022, 15:54
Hi there,
I have some HEIC images that I have to index.
Essentially, afaik, this is the H.265 version of still frames.
I tried ImageSource() and FFImageSource() and neither of them worked.
Avisynth+ 3.7.2
ffms2 5.1@1764a6887b
Sample: https://we.tl/t-D8twJZC8sk
Seems that FFmpeg has yet to support it: https://trac.ffmpeg.org/ticket/6521
Similar situation to decoding animated webP, some have started the work but never finished. https://trac.ffmpeg.org/ticket/4907
Edit: and of course ImageSource() does not supported. It uses the old DevIL library which has not had any significant updates in a long time. See page 29 for all of the supported formats: https://github.com/DentonW/DevIL/blob/master/DevIL-docs/DevIL%20Manual.pdf
Balling
9th May 2022, 14:33
https://trac.ffmpeg.org/ticket/4907 is for encoding animated webp, animated decoding is supported, everything else (sharpYUV I dunno (GIMP added it though), webpv2 dunno) is supported. Patches for ANIM are on the mailing list.
Decoding of AVIF was recently added but there is still one patch left to apply and one for encoding, this week maybe. HEIF uses same container HEIC as AVIF does...
There are some problems like film grain in still AVIF image or animated heic.
Oh and also jpeg xl works perfectly: lossless, lossy, no animation yet.
FranceBB
9th May 2022, 15:06
Decoding of AVIF was recently added but there is still one patch left to apply and one for encoding, this week maybe. HEIF uses same container HEIC as AVIF does...
Well, all I'm interested in is HEIC, so... any timescale on that?
Balling
10th May 2022, 01:47
Well, all I'm interested in is HEIC, so... any timescale on that?
The custom patches should work already. Still profile of HEVC is working too even with H.274 film grain. See here: https://0x0.st/oPeQ.hevc
Also see my last comment here: https://trac.ffmpeg.org/ticket/6521#comment:19
Jamaika
10th May 2022, 05:28
Indexing heic/heif lossless photos with x265.
I don't know if the format hasn't been discontinued.
He once advertised adding/removing frames heif from GPAC film. Adding cover to movie, cropping. Unfortunately later it turned out that this is an unfinished vision that only supports I-frames.
Microsoft Photo has a huge ad, Adobe Photoshop but nothing is said about video. Overall heif is under Apple.
Honestly. It can't be done.
The y4m plugin doesn't work for libheif with different color samples. So it can't convert from h265 to x-screenschot heif movie.
This error has been reported for two years.
As far as I know, colormatrix "0" lossless is large which not everyone likes when archiving.
ffmpeg.exe -y -loglevel error -ss 00:00:01 -i "video.h265" -t 0:02 files_%%03d.png
for %%f in ("files_*.png") do heifenc.exe %%f -v -q 100 -b 8 --no-alpha -p preset=placebo -p chroma=444 --matrix_coefficients=0 --full_range_flag=1 -o %%f.heif
pause
Balling
13th May 2022, 20:35
Avif encoding patches applied, one decoding patch left. Still some modifications like this will be required https://github.com/Swaraj1998/FFmpeg/commit/9a885cddb3550ab863a60d02c5fb78e4ae206cf1
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.