How do I make image sequences of lossless AVIF and/or HEIC/HEIF files, as well as make lossless animated AVIF files? Which format is smaller, AVIF or HEIC/HEIF?
+ Reply to Thread
Results 1 to 6 of 6
-
-
Ok so problem solved. Use video instead of image sequence. Temporal compression . Especially on things like Anime , which have many duplicate and similar frames . The more similarity between frames - the more gains you can receive from temporal compression
For single images (and definitely larger overall filesizes when compare to the same thing in video format) :
Compression depends source content. Sometimes one is better than the other
I haven't used HEIF much because it's so poorly supported. FFmpeg doesn't even support yet (supposed to be coming), most browsers don't support it - basically only Safari. A single image format isn't that useful if you can see anything by trying to view it (or have to jump through hoops just to view or use it) . And in terms of sequences - compression wise - video is going to be better
https://caniuse.com/avif
https://caniuse.com/heif
But you can use libheif for heif
https://github.com/strukturag/libheif
libavif for avif
https://github.com/AOMediaCodec/libavif
Sequentially numbered image sequences for AVIF are difficult right now, because there are some bugs in ffmpeg writing an avif image sequence (-f image2 muxer for avif has issues), and avifenc cannot do it yet. Avifenc puts image sequences in "AVIFS" it's basically similar to a iso base media (mp4) video container. Support for image sequences (what most people mean as image sequences - like img000.avif, image001.avif, etc...) is supposed to come for avifenc eventually
Animated AVIF can be done with ffmpeg or avifenc
CRF 0 is lossless for avif for all of it's supported pixel types ; libaom-av1 supports more pixel types than svt-av1 -
-
Look at the help file for full instructions
For avifenc look at the instructions in the help file for the options, for lossless, the main one is --lossless . For lossless YUV you would need Y4M input. Pipe in works, but only for 1 image - so you could pipe ffmpeg to avifenc . They plan on supporting sequences eventually . But using video with the same AV1 compression for a sequence would be much smaller anyways - because of temporal compression - so image sequences are not very useful
Code:avifenc [options] input.[jpg|jpeg|png|y4m] output.avif
Code:ffmpeg -i <input> -c:v libaom-av1 -crf 0 <output.avif>
Code:ffmpeg -i <input> -c:v libaom-av1 -crf 0 -start_number 0 -f image2 <output>_%05d.avif
There might be some GUIs for these, you can search
Also, I found out that jpeg xl does support YUV, how do I put them in a pdf files without losing quality? -
-
You can ask a developer to add the feature . XnViewMP does not support animated AVIF
https://newsgroup.xnview.com/viewtopic.php?t=42699
Browsers support it, you might have to enable the avif animation support in the browser settings
Similar Threads
-
[Paid Job] Looking for help optimizing VP8, VP9, HEVC, and AVIF Parameters
By TonyR. in forum Video ConversionReplies: 0Last Post: 20th Apr 2023, 14:05 -
HEIC/HEIF Converter
By MrBlackhole in forum Newbie / General discussionsReplies: 0Last Post: 4th Oct 2022, 22:33 -
HEIF format ?
By Tafflad in forum Newbie / General discussionsReplies: 2Last Post: 19th Oct 2021, 09:54