文档

Unity Engine

Unity Engine

frameRate

Frames per second.
阅读时间1 分钟最后更新于 1 个月前

Definition

public MediaRational frameRate

Remarks

Expressed as a fraction so that rates such as 29.97 (precisely 30000/1001) are represented accurately.
Note
Specifying a 0 or invalid rate (see MediaRational.isValid) indicates the video track uses Variable Frame Rate (VFR). In this mode of operation, because there is no pre-defined frame duration, all frames added through MediaEncoder.AddFrame must use the overload that receives a MediaTime.