Skip to content

h264cpu占用过高 #63

@zhan2016

Description

@zhan2016

发现在使用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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions