views:

243

answers:

8

For raster images there is:
JPG is for natural scenes
PNG or GIF for geometric scenes that are characterized by smooth colors, straight lines and gradients.

For vector animation there is SVG

And for raster video there are various MPEG codecs which do a good job for natural scenes.

So my question is, what should I use for a video which is exclusively rasterized smooth colors, lines and gradients?

+6  A: 

You can use animated PNGs.

http://people.mozilla.com/~dolske/apng/demo.html

Christopher
A: 

Actually, GIF is terrible for images with gradients. JPEGs are good for anything with lots of details, gradients, etc. GIFs and PNGs are good for, basically, anything with flat colors (like cartoons and such).

More info from sitepoint.com

Tyson
A: 

I'm not a codec expert, but all .mkv files that I have seen featured extremely clean fillings and gradients. (Yes it was anime.)

GSerg
MKV is just a container for whatever video is inside. it is no different than AVI for that matter.
shoosh
For I'm not a codec expert, I can only agree with you, but then I'm also curious what codec they used to get that effect which did look different (and better) compared to cartoons in other formats.
GSerg
Why don't you check it with G-Spot and let us know? (http://www.headbands.com/gspot/)
shoosh
I would but I don't have any, they were shared on our LAN and I'm not its user any more. I never bothered to save them locally :(
GSerg
+5  A: 

Try Huffyuv. It is a lossless codec that might work well with the kind of video you are talking about. Since it is lossless, file sizes may be a lot larger, but it is worth a try. What you are describing (fewer colors and detail than a natural scene) might compress acceptably.

The problem with geometrics and cartoons is that Mpeg 1/2/4, VP3, Theora, MJPEG, and the like use chroma subsampling and block based motion compensation with 8x8 DCT blocks, same as JPEGs. This works okay for lots of colors and motion; our brains fill in the difference until the cable box freezes and we see the blocks. It does not work well with things with a lot of lines and fewer colors.

R Ubben
+1  A: 

If Windows formats are an option, use the screen codec:

http://www.microsoft.com/windows/windowsmedia/forpros/codecs/video.aspx#WindowsMediaVideo9Screen

George Phillips
Excellent find!
shoosh
+3  A: 

MNG, but it looks like it's not very well supported.

Stefano Borini
A: 

There is a video codec that encodes each from as a PNG image (like MJPEG encodes each frame as a JPEG) called CorePNG

KSchmidt
A: 

Lagarith is another good lossless video codec, like Huffyuv

Mauricio Scheffer