-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
发现在使用accord(aforge)将bmp写到avi里面去的时候,电脑的cpu总是占用到90%,甚至到99%.最后发现调整了h264压缩的质量参数,cpu占用降低了20%到30%
this.writer_.VideoOptions["preset"] = "Fast";
this.writer_.VideoOptions["tune"] = "zerolatency";
this.writer_.VideoOptions["crf"] = "28";
crf是控制质量的1-51,由高到低,数值越大,质量越差,占用越小(默认是25). preset是压缩的速度,越快,占用资源越少,质量越差。上面的参数很好的做了一个平衡.
Metadata
Metadata
Assignees
Labels
No labels