PNG 的视频等效项?
对于光栅图像有:
JPG 适用于自然场景
PNG 或 GIF 用于几何场景,其特征是平滑的颜色、直线和渐变。
对于矢量动画,有 SVG
;对于光栅视频,有各种 MPEG 编解码器,它们可以很好地处理自然场景。
所以我的问题是,对于完全光栅化的平滑颜色、线条和渐变的视频,我应该使用什么?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(8)
您可以使用动画 PNG。
http://people.mozilla.com/~dolske/apng/demo.html
You can use animated PNGs.
http://people.mozilla.com/~dolske/apng/demo.html
尝试Huffyuv。 它是一种无损编解码器,可能适合您正在讨论的视频类型。 由于它是无损的,因此文件大小可能会大很多,但值得一试。 您所描述的内容(比自然场景更少的颜色和细节)可能会压缩得可以接受。
几何和卡通的问题是 Mpeg 1/2/4、VP3、Theora、MJPEG 等使用 色度子采样和基于块的运动补偿,使用8x8 DCT块,与JPEG相同。 这对于大量颜色和运动来说效果很好; 我们的大脑会填补差异,直到有线电视盒冻结并且我们看到了块。 它不适用于线条较多且颜色较少的事物。
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.
MNG,但看起来它没有得到很好的支持。
MNG, but it looks like it's not very well supported.
如果可以选择 Windows 格式,请使用屏幕编解码器:
http: //www.microsoft.com/windows/windowsmedia/forpros/codecs/video.aspx#WindowsMediaVideo9Screen
If Windows formats are an option, use the screen codec:
http://www.microsoft.com/windows/windowsmedia/forpros/codecs/video.aspx#WindowsMediaVideo9Screen
有一个视频编解码器将每个帧编码为 PNG 图像(就像 MJPEG 将每个帧编码为 JPEG 一样),称为 核心PNG
There is a video codec that encodes each from as a PNG image (like MJPEG encodes each frame as a JPEG) called CorePNG
我是 x264 的忠实粉丝,它是一个免费(如自由)的 h.264 编码器。 最近,添加了对至少一种具有更多色度样本的色彩空间的支持,这意味着它可以在光栅图形上实现非凡的、近乎无损的压缩。 请务必使用高(低数字)质量设置。 我更喜欢 0 - 根据您的输入,您可能会惊讶输出文件有多么小。
i'm a big fan of x264, which is a free (as in freedom) h.264 encoder. recently, support for at least one colorspace with proportionally more chroma samples was added, meaning it can achieve extraordinary, near-lossless compression on raster graphics. be sure to use a high (low number) quality setting. i prefer 0 - you may be surprised how small the output file is, given your input.
事实上,GIF 对于带有渐变的图像来说很糟糕。 JPEG 适合任何具有大量细节、渐变等的内容。GIF 和 PNG 基本上适合任何具有平面颜色的内容(例如卡通等)。
来自 sitepoint.com 的更多信息
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
Lagarith 是另一个很好的无损视频编解码器,就像 Huffyuv
Lagarith is another good lossless video codec, like Huffyuv