問題描述
相當於PNG的視頻? (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?
參考解法
方法 1:
You can use animated PNGs.
http://people.mozilla.com/~dolske/apng/demo.html
方法 2:
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.
方法 3:
MNG, but it looks like it's not very well supported.
方法 4:
If Windows formats are an option, use the screen codec:
http://www.microsoft.com/windows/windowsmedia/forpros/codecs/video.aspx#WindowsMediaVideo9Screen
方法 5:
There is a video codec that encodes each from as a PNG image (like MJPEG encodes each frame as a JPEG) called CorePNG
(by shoosh、Christopher、R Ubben、Stefano Borini、George Phillips、KSchmidt)