【发布时间】:2016-10-17 12:49:47
【问题描述】:
我正在使用emgu 来保存未压缩的视频。 VideoWriter("video.avi", 0, (int)FrameRate, frameSize, true); 0 值表示保存的视频将被解压缩,请参阅here。此外,FrameRate aws 设置为 30。
存储的Mat 文件为:var mat = new Mat(480, 640, Emgu.CV.CvEnum.DepthType.Cv8U, 3)。对于13994 帧的存储视频,属性窗口显示:9.29 GB (6,449,164,288 bytes)(windows)。现在我正在尝试手动验证视频大小:
640*480*3*13994= 12,896,870,400 bytes,窗口属性返回的两倍。
您能否对此有所了解?
媒体信息信息:
General
Complete name : name.avi
Format : AVI
Format/Info : Audio Video Interleave
Format profile : OpenDML
File size : 6.01 GiB
Duration : 7 min 46 s
Overall bit rate : 111 Mb/s
Writing application : Lavf56.36.100
Video
ID : 0
Format : YUV
Codec ID : I420
Codec ID/Info : 8 bit Y plane followed by 8 bit 2x2 subsampled U and V planes.
Duration : 7 min 46 s
Bit rate : 111 Mb/s
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate : 30.000 FPS
Compression mode : Lossless
Bits/(Pixel*Frame) : 12.000
Stream size : 6.01 GiB (100%)
谢谢。
【问题讨论】:
-
使用 mediaInfo 之类的工具向我们展示有用的信息,例如视频编解码器、比特率、帧率、视频轨道大小、音频轨道大小等。 .
-
@VC.One 我已经进行了请求的更改,希望现在对您有所帮助。感谢您的回复。