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?
You can use animated PNGs. Show activity on this post. Try Huffyuv. It is a lossless codec that might work well with the kind of video you are talking about.
In general, PNG is a higher-quality compression format. JPG images are generally of lower quality, but are faster to load.
PNG is mostly superior to GIF, as it is newer, supports more colors, and is free of patent restrictions. PNG cannot be used for animation, but offers highly sophisticated transparency and color support, among other features. In most cases where animation is not required, it is best to use PNG instead of GIF.
A JPG does, however, allow you to create smaller file size than you could with a PNG. A JPG should be used in any situation when it's important to have a small file.
You can use animated PNGs.
http://people.mozilla.com/~dolske/apng/demo.html
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With