本文介绍了Expression Encoder估计时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用表达式编码器4 sdk来编码IIS平滑流的输入文件,默认预设为" VC1IISSmoothStreamingHD720pVBR"。

We are using expression encoder 4 sdk to encode input file for IIS smooth Streaming with default preset "VC1IISSmoothStreamingHD720pVBR".

我们想要估算在流程开始之前进行此编码所需的时间。

we want to estimate time taken for doing this encoding before the process starts.

请告诉我们,如何计算所花费的时间,估计输出大小取决于输入文件大小和所选预设。

Let us know, how to calculate time taken, estimated output size based on the input file size and preset selected.

是否有可用的公式来执行此操作?

Is there any formula available to do this?

 

提前致谢

推荐答案

不幸的是,在开始编码之前估计编码时间是一件非常复杂的事情,这将取决于:

Unfortunately, this is a pretty complex thing to estimate encoding time prior to starting the encoding, which will vary depending on:

- 源格式,分辨率,预处理需要(调整大小,去隔行等)

- Source format, resolution, the pre-processing needed (resize, deinterlacing, etc)

- 可用内存

- CPU类型,速度和逻辑核心数

- CPU type, speed and number of logical cores

- PC上的当前资源负载

- Current resource load on the PC

- 机器人的存储类型h源和输出

- Type of storage for both the source and the output

 

文件大小应该是微不足道的估计:sum(流平均比特率,以字节为单位)*持续时间以秒为单位的时间轴。

The file size should be trivial to estimate though: sum(stream average bitrate in bytes * duration of the timeline in seconds).

编码开始后,您可以通过设置进度回调并评估达到100%所需的时间来估算编码时间。由于你使用的是VBR 2遍算法,你必须乘以2(请注意,这将是一个非常好的
粗略估计,因为第二遍通常比第一遍略长)。

Once the encode has started, you can estimate encoding time by setting a progress callback and evaluating how long it would take to get to 100%. Since you're using a VBR 2-pass algorithm, you will have to multiply by two (note that this would be a pretty rough estimate, as the second pass is generally a little longer than the first).

 


这篇关于Expression Encoder估计时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 02:57