视频占用多少内存?

Sea*_*ean 3 video

1 小时 480p 分辨率视频文件的平均大小是多少?那么 720p 或 1080p 呢?为什么这些文件的大小增加得如此之快?

我很好奇你如何计算尺寸,是否有某种公式?

编码对文件大小有什么影响?

Sup*_*eal 8

考虑到有多个变量,特别是影响这一点的压缩,这个问题非常模糊。无论如何,这是我在一个网站上找到的关于记录标准 1280x720p 和 640x480p 的 Iphone 视频的内​​容(我知道标准 NTSC 是 720x480,但他可以用 720 替换 640,公式仍然有效)。

基于:

Frame size K = ( [Pixel Width x Pixel Height x Bit Depth] / 8 ) / 1024
Run Code Online (Sandbox Code Playgroud)
Where 8 represents an 8-bit byte, and 1024 equals the number of bytes per kilobytes.

To determine the file size of one second of uncompressed video, multiply the image size by the number of frames per second (fps).

To determine how compression affects file size, divide the file size by the compression ratio.
Run Code Online (Sandbox Code Playgroud)

480P 将是:

( [640 x 480 x 24] / 8 ) / 1024 = 900 KB / frame

900KB/frame x 30 frames/sec = 27000 KB/sec

27000 KB/sec  / 40 compression ratio = 675 KB/sec compressed

675 KB/sec * 250 min * 60 s / min * 1 MB / 1024 KB  * 1GB / 1024 MB = 9.66 GB (39 MB / min)
Run Code Online (Sandbox Code Playgroud)

720P 将是:

( [1280 x 720 x 24] / 8 ) / 1024 = 2700 KB / frame
Run Code Online (Sandbox Code Playgroud)
2700 KB/frame x 30 frames/sec = 81000 KB/sec

81000 KB/sec  /  40 compression ratio = 2025 KB/s compressed

2025 KB/sec compressed * 250 min * 60 s / min * 1 MB / 1024 KB  * 1GB / 1024 MB = 28.97 GB (118 MB / min)

If a higher 60:1 compression ratio is used by the more powerfull iPhone 4: 79 MB / min
Run Code Online (Sandbox Code Playgroud)

来源如果我在 1080P 上找到任何东西,我会发布更多信息,或者您可以使用上面的公式,它看起来很可靠。