Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Video equivalent of PNG?

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?

like image 542
shoosh Avatar asked Jun 29 '09 22:06

shoosh


People also ask

Is there a video equivalent to PNG?

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.

Is JPEG or PNG better for video?

In general, PNG is a higher-quality compression format. JPG images are generally of lower quality, but are faster to load.

Is PNG similar to GIF?

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.

What can I use instead of PNG?

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.


2 Answers

You can use animated PNGs.

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

like image 124
Christopher Avatar answered Nov 16 '22 02:11

Christopher


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.

like image 44
R Ubben Avatar answered Nov 16 '22 04:11

R Ubben