POV-Ray : Newsgroups : povray.advanced-users : how to reduce the size of an animation Server Time
1 Nov 2024 13:20:07 EDT (-0400)
  how to reduce the size of an animation (Message 1 to 9 of 9)  
From: Herman Serras
Subject: how to reduce the size of an animation
Date: 6 Aug 2002 05:49:17
Message: <3D4F9BD8.294EA3F5@pandora.be>
Yesterday I sent an animation to p.b.a. I agree that the size of the
file was very large for what the animation represents. I think this has
to do with the method I use for preparing the animated giffile. The few
animations I sent earlier fortunately where much smaller.
Using the animation possibilities of Povray I obtain a number of png
files. Those png files are converted to giffiles using Irfanview. Using
Movgear an animated giffile is constructed. Such an animated giffile can
be optimized and in most cases the gain is very extensive.
But yesterday this wasn't the case. I pointed out that this has to do
with the use of AA 0.3. and the conversion from png to giffiles. Parts
of two successive images that have a large part in common aren't
transformed in the same way. This results in a flickering in the
animated giffile and of course the gain obtained by optimizing is very
small, because there are to many differences between two following
images.
Is there a possibility to avoid these kinds of problems? I'm using
Windows 98.
Thanks.
-- 
Herman Serras
Gent (Belgium)
http://cage.rug.ac.be/~hs/


Post a reply to this message

From: Simon Adameit
Subject: Re: how to reduce the size of an animation
Date: 6 Aug 2002 08:08:05
Message: <3d4fbc25@news.povray.org>
"Herman Serras"  wrote:
> Is there a possibility to avoid these kinds of problems?

Yes, use another codec.

Simon


Post a reply to this message

From: Le Forgeron
Subject: Re: how to reduce the size of an animation
Date: 6 Aug 2002 09:00:21
Message: <3D4FC8FA.2010900@free.fr>
Simon Adameit wrote:

> "Herman Serras"  wrote:
> 
>>Is there a possibility to avoid these kinds of problems?
>>
> 
> Yes, use another codec.
 
Better, use mpeg-1 encoders (and no fancy codec).


Post a reply to this message

From: Sebastian H 
Subject: Re: how to reduce the size of an animation
Date: 6 Aug 2002 09:29:52
Message: <3D4FCFF6.7050404@web.de>
> Better, use mpeg-1 encoders (and no fancy codec).
At which point is a codec fancy?


Post a reply to this message

From: Jide
Subject: Re: how to reduce the size of an animation
Date: 6 Aug 2002 10:22:37
Message: <3d4fdbad$1@news.povray.org>
Sebastian H.
> > Better, use mpeg-1 encoders (and no fancy codec).
> At which point is a codec fancy?

When it's something else than mpeg-1? :)


--
-Jide


Post a reply to this message

From: Le Forgeron
Subject: Re: how to reduce the size of an animation
Date: 6 Aug 2002 10:41:51
Message: <3D4FE0C3.2080000@free.fr>
Sebastian H. wrote:

>> Better, use mpeg-1 encoders (and no fancy codec).
> 
> At which point is a codec fancy?


Whenever it is not available with the basic installation of
the MS player (so, probably only "Full Uncompressed Frame" is ok,
because even Intel Indeo codec have too many incompatible versions).

The bad codec are the one you get because you installed some additional
software. The worst are the one which came with hardware. (but they
usually compress better (??)).
Just think about someone which has not the same computer...


Last point, Automatic research of missing codec usually fails.


Post a reply to this message

From: Sebastian H 
Subject: Re: how to reduce the size of an animation
Date: 6 Aug 2002 12:23:29
Message: <3D4FF8A6.6000608@web.de>
> 
> When it's something else than mpeg-1? :)
> 
That leaves little scope :-)

Sebastian H.


Post a reply to this message

From: Hugo
Subject: Re: how to reduce the size of an animation
Date: 7 Aug 2002 04:06:45
Message: <3d50d515$1@news.povray.org>
The codec has importance for sure. But your images suffer from bad anti
aliasing. This is not a matter of AA 0.3 (the threshold) but a matter of
jittering. Jittering is noise and that's bad in animations. A good
anti-alias gives a fully similar result for every frame, thus allowing the
video compressor to forget the parts of the image that doesn't change.

I understand that you tried this, but couldn't turn off jittering.. I've
been thinking about why.. Maybe it's because I forgot that you're probably
using an ".ini" file to setup the animation.. In that case, you can change
the anti-alias settings in the ".ini" file. You could try this:

Jitter_Amount=0

It won't change the quality of anti-aliasing, but should remove the noise in
your sequence, and this would give a huge improvement in file size.

I also mentioned using grey-scales instead of strong contrasts in color..
Well, these are two 'extreme' choices.. I know greyscales would be kind of
boring, but from a technical point of view, they compress better (with jpeg
/ mpeg).. So, a good choice is usually something 'in between'.. That means
not greyscale, and not strong color contrasts.. Of course you could force
the filesize to be similar for both types of image, but the picture quality
will differ.

Good luck, and let me know if I'm not clear.  ;o)

Regards,
Hugo


Post a reply to this message

From: Herman Serras
Subject: Re: how to reduce the size of an animation
Date: 7 Aug 2002 06:32:31
Message: <3D50F77D.8DDD3E83@pandora.be>
Hugo wrote:
> 
> The codec has importance for sure. But your images suffer from bad anti
> aliasing. This is not a matter of AA 0.3 (the threshold) but a matter of
> jittering. Jittering is noise and that's bad in animations. A good
> anti-alias gives a fully similar result for every frame, thus allowing the
> video compressor to forget the parts of the image that doesn't change.
> 
> I understand that you tried this, but couldn't turn off jittering.. I've
> been thinking about why.. Maybe it's because I forgot that you're probably
> using an ".ini" file to setup the animation.. In that case, you can change
> the anti-alias settings in the ".ini" file. You could try this:
> 
> Jitter_Amount=0
> 
> It won't change the quality of anti-aliasing, but should remove the noise in
> your sequence, and this would give a huge improvement in file size.
> 
> I also mentioned using grey-scales instead of strong contrasts in color..
> Well, these are two 'extreme' choices.. I know greyscales would be kind of
> boring, but from a technical point of view, they compress better (with jpeg
> / mpeg).. So, a good choice is usually something 'in between'.. That means
> not greyscale, and not strong color contrasts.. Of course you could force
> the filesize to be similar for both types of image, but the picture quality
> will differ.
> 
> Good luck, and let me know if I'm not clear.  ;o)
> 
> Regards,
> Hugo

Putting Jitter_Amount=0 in the ini file already helped a lot in reducing
the size of the animated gif file and the flickering in the animation
disappeared, but playing around with different values for
Antialias_Treshold and Antialias_Depth I noticed that still more
benefits were got from putting the antialias_depth to 1.
In the orininal posting I explained how I get the animated giffile. I
wonder if there's another way to obtain small animation files starting
with a number of png files obtained using the animation possibilities of
Povray. I'm working with Windows 98.

Friendly greetings and thanks for the help!

-- 
Herman Serras
Gent (Belgium)
http://cage.rug.ac.be/~hs/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.