我已阅读以下内容,摘自 Adobe 网站上的使用 VP6 编解码器编码视频的最佳实践 - http://www.adobe.com/devnet/flash/articles/encoding_video_print.html。谈论的是常见的视频比例(320x240、640x480)
尽管这些比率是标准的,
并且应该用来避免扭曲
视频,编码的大小
视频并不是一成不变的。这
原始网络视频尺寸使用高度
和可被整除的宽度
16 岁之前。这对许多人来说是强制性的
早期的编解码器。虽然这不是
现代编解码器所必需的,您
应保持均匀的高度
宽度。
“均匀的高度和宽度”是什么意思?我正在考虑以 400x300 编码我的视频,使其稍大一些,这仍然是 4x3 格式,但我应该坚持使用 320x240 并在屏幕上调整其大小吗?显然,这在存储大小和交付成本方面有好处。
在我网站上的某些地方,我想以 400x300 的分辨率显示视频,但在其他地方,我希望它全屏播放,所以这就是为什么我想知道较大的原始尺寸 (400x300) 在放大时是否会产生更好的效果。
有什么想法吗?
I have read the following which is from Best Practices for Encoding Video with the VP6 Codec on the Adobe website here - http://www.adobe.com/devnet/flash/articles/encoding_video_print.html. It is talking about common video ratios (320x240, 640x480)
Although these ratios are standard,
and should be used to avoid distorting
the video, the size of the encoded
video is not set in stone. The
original web video sizes used heights
and widths that were evenly divisible
by 16. This was mandatory for many
early codecs. Although this is not
necessary for modern codecs, you
should stick to even heights and
widths.
What do they mean by 'even heights and widths'. I am thinking about encoding my video at 400x300 to make it slightly bigger, this is still 4x3 format but should I just stick at 320x240 and resize it on the screen? Clearly there are benefits to this in terms of storage size and delivery costs.
In some places on my site I want to show the video at 400x300 but in others I want it to play full screen so this is why I am wondering if a larger original size (400x300) will give better results when blown up.
Any thoughts?
发布评论
评论(1)
正如您所说,VP6 和 Sorenson 在视频帧大小为 16 倍数的情况下效果最佳。为了获得最佳结果,您应该使用 16 的倍数。例如,更接近您的范围的值可能是 384 x 288 或 448 x 336。
老实说,我还没有见过因使用非FLV 的 -16 倍。而且,较大的视频尺寸将带来更好的质量(尽管以更多带宽为代价,因为它将是一个更大尺寸的视频)。
因此,如果可以的话,我会选择 16 的倍数的尺寸,但不要为此失眠。而且,我会选择较大的视频尺寸而不是较小的视频尺寸,只是为了使其保持 16 的倍数。但是,我的目标是 16 倍的最佳区域。
另外,请考虑切换到包含 H.264 内容的 MP4。 Flash 9+ 可以播放(Flash 的市场份额非常非常大)。另外,您将获得比 VP6 更好的压缩效果。
VP6 and Sorenson work best with video frame sizes that are multiples of 16, which you stated. For optimal results, you should go with something that is a multiple of 16. For example, something closer to your range might be 384 x 288 or 448 x 336.
Honestly though, I haven't ever seen many problems caused by using a non-16 multiple for FLVs. And, the bigger video size will bring better quality (albeit at the cost of more bandwidth because it'll be a bigger size video).
So, I'd go with a size that's a multiple of 16 if you can, but don't lose sleep over it. And, I'd go with a bigger video size over a smaller one just to keep it a multiple of 16. However, I'd aim for that 16x sweet zone.
Also, consider switching to MP4s with H.264 content. Flash 9+ can play it (a very, very, very large percentage of the market share of Flash). Plus, you'll get MUCH better compression than VP6.