All right, I decided to stick with image formats that are compatible with most browsers (pngs, webps, jpgs, and possibly bmps). For these 6 images, I used webp lossless 0 for 3 images and lossless 1 for the other 3. Can somebody tell the difference?
+ Reply to Thread
Results 1 to 12 of 12
-
-
yes, without zooming in:
https://imgsli.com/MjM0MTgz look at the gray texture under the letters in the front
https://imgsli.com/MjM0MTg0 look at the gray texture in the upper left corner
https://imgsli.com/MjM0MTg1 look at the gray texture in the upper left corner
if you zoom in, you can clearly see more artifacts around the lines.
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini -
-
Sorry, I'm no fortune-teller who could guess what you are talking about.
If you use ffmpeg, looking at https://ffmpeg.org/pipermail/ffmpeg-cvslog/2015-May/089956.html seems to indicate that this just a notice/warning which wants to help. So depending on what you want to do, there is nothing to fix.
Let me guess, the ones with lossless 1 are better?users currently on my ignore list: deadrats, Stears555, marcorocchini -
You control the RGB to YUV conversion - especially the matrix - perhaps other parameters (depends on the video) . e.g using zscale. That was explained in another thread .
Same with going from YUV video to lossless webp (which is RGBA only) - you will get wrong colors if the wrong parameters are used, or ffmpeg "guesses" incorrectly
And there is no way to do it automatically and correctly for every video or image, because there are too many possible combinations and types of input/outputs. Many source videos are flagged improperly or not flagged at all. You need to specify the extra parameters (not just for webp, but for every conversion), or "hope" that ffmpeg guesses it right -
Last edited by Jay123210599; 18th Jan 2024 at 09:44.
-
Lossless webp is RGBA only .
Lossy webp is YUV 4:2:0 only
When you are posting an image to display for a website , typically it will be converted to 8bit RGB anyways. Lossless webp will always produce smaller filesizes than the highest compression png . The main negative for webp is lower compatibility - a legacy browser won't support webp, and slower decoding times. All modern browsers support webp by default (native support)
I'm just repeating myself - go back and look at the other threads for full explanation and examples
So how do I set the compression rate for png files? -
-
Already answered in your other posts. I'll repeat it for the 3rd time
Technically lossy yes, same with PNG . YUV to RGB is lossy unless the RGB is in float precision . You can never get back the original YUV values with integer RGB, that is defined as loss
You get negative RGB values and values > 255 in 8bit , or > 1023 in 10bit - which get clipped = quality loss . Float RGB keeps those negative values and values greater than 255 . On a scale of 0-1 , float keeps negative values and values >1.
You also get rounding errors and precision loss for typical RGB conversion . 16bit RGB PNG is still lossy in terms of the original YUV values . Also when you chroma upsample video to RGB, that can be lossy and non reversible too, unless you use nearest neighbor
***But it doesn't matter for images posted to a website, because most people are viewing on a 8bit RGB display anyways. Even when you watch video directly, you're not watching YUV directly , you're watching an RGB converted representation . Displays work in RGB
Also, I mean for ffmpeg when making png files. -
ffmpeg is an actual program that can make image sequences from videos.
Options were given in ffmpeg to reduce the file size. There is a tradeoff between speed and filesize, as always
Use the optimizers on the ffmpeg exported exported sequences to reduce them farther, or live with the current filesize. The optimizers have speed vs. compression ratio tradeoff too. At the highest compression it might take minutes per frame
You decide on a tradeoff between processing time, vs. compression ratio, workflow ease .
Similar Threads
-
Webp image sequence
By Jay123210599 in forum Newbie / General discussionsReplies: 19Last Post: 15th Jan 2024, 17:13 -
animated webp test
By poisondeathray in forum TestReplies: 17Last Post: 29th Aug 2023, 14:07 -
images to mkv and webp by using ffmpeg into a .bat file
By maudit in forum Video ConversionReplies: 2Last Post: 15th Aug 2023, 02:17 -
Difference between lossless and lossy changing fps (timestamp vs encoding)
By precipizio in forum Blu-ray RippingReplies: 4Last Post: 23rd Feb 2022, 09:24 -
Quick sanity check: Lossless to lossless encoding HuffYUV to UTVideo
By nicholasserra in forum Video ConversionReplies: 2Last Post: 20th Aug 2020, 11:41