Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
![]() |
#1 | Link |
Registered User
Join Date: Apr 2024
Posts: 329
|
Why Not Use AVIF?
Many people say I shouldn't use lossless animated AVIF image files (not video files) because it's not truly lossless, the lossless options for AV1 are terrible and it's not even really lossless if the input videos aren't AV1. They also say that WEBP, JXL, and even PNG are better options even though AVIF offers less file size than them.
Are all of these statements true? Last edited by jay123210599; 14th January 2025 at 20:24. |
![]() |
![]() |
![]() |
#2 | Link | |
Registered User
Join Date: Oct 2024
Posts: 3
|
Quote:
|
|
![]() |
![]() |
![]() |
#3 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,600
|
Quote:
If you're starting with YUV video sources - then it's actually the opposite - PNG , WEBP, JPEG-XL are not truly lossless because they do not support YUV lossless . YUV to RGB is a lossy transform in general, unless the conversion is done properly, and RGB is in float . i.e you can never get back the original YUV values from the source video using PNG, WEBP, JPEG-XL - so they are actually the ones that are mathematically lossy if you start with YUV video, not AVIF. This point doesn't matter too much for viewing purposes, because when you "view" something, it has been converted to RGB for display. The main reason you shouldn't use animated AVIF because of low compatibility - Limited software support. |
|
![]() |
![]() |
![]() |
#4 | Link | |
Registered User
Join Date: Apr 2024
Posts: 329
|
Quote:
https://www.reddit.com/r/AV1/comment...dont_use_avif/ https://www.reddit.com/r/AV1/comment..._avif_support/ https://www.reddit.com/r/AV1/comment...animated_avif/ |
|
![]() |
![]() |
![]() |
#5 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,600
|
Quote:
|
|
![]() |
![]() |
![]() |
#7 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,600
|
Yes, some of them are wrong, and some assumed you meant a RGB single image. The comments about AVIF having low compatibility are correct None of them are lossless, from a YUV source, except AVIF. That is the background information they are missing, that I have knowledge about. It's a different situation, a different context AVIF uses advanced temporal compression - so for animated YUV formats, not a single RGB image, AVIF going to have very high compression ratios (very small filesizes) . |
![]() |
![]() |
![]() |
#8 | Link | |
Moderator
![]() Join Date: Jan 2006
Location: Portland, OR
Posts: 4,956
|
Quote:
Mathematically lossless is only needed for particular use cases. AVIF can be perceptually lossless for typical images, which is generally enough. AVIF can be a quality solution. Of course, quality isn't defined in abstract, but in terms of use. So, it really depends on what you're trying to do! If you're making a custom app to rapidly flip through large volumes of images over 4G networks, AVIF would be an awesome fit. If you're looking for lossless archiving of camera RAW images, that's outside of AVIF's scope. In general, compatibility is the only reason why AVIF (or HEIC) wouldn't always be better than JPEG or PNG. So, tell us what use cases you're thinking of, and it'll be a lot easier to say if AVIF or any tech is a good fit for it. |
|
![]() |
![]() |
![]() |
#9 | Link | |
Registered User
Join Date: Aug 2024
Posts: 370
|
Quote:
![]() I just tried shuffle YUV444P10LE planes directly into JXL (padded, as GBRP16LE) and they are smaller than x264 x265 aom-av1 vpx-vp9 lossless. (edit: I accidently used 8bit PNG for comparison, the real 16bit PNG loses here.) For 8bit it will be more straightforward ![]() But you are certainly correct, when talking about lossless image compression many people including me just assumes that the input is RGB automatically. If the YUV (subsampled, even) is converted to RGB in the normal way it's not real lossless anymore, and the compression ratio comapred to compress the YUV data directly is much worse. Last edited by Z2697; 17th January 2025 at 10:57. |
|
![]() |
![]() |
![]() |
Tags |
av1, image compression, image-quality |
Thread Tools | Search this Thread |
Display Modes | |
|
|