Skip to content

配置如下,但是单通道视频导出之后经过验证还是3通道的视频 #34

@wujie0229

Description

@wujie0229

配置

const video = wvc.createSingleVideo({
// 需要渲染的页面地址
url: params?.url || "https://fs.autohome.com.cn/afu_spa/H5ToVideo?highColor=FF0000&defaultColor=fff&fontSize=30",
// 或者可以直接设置页面内容
// content: "

Hello WebVideoCreator

",
// 视频宽度
width: params?.width || 1280,
// 视频高度
height: params?.height || 720,
// 视频帧率
fps: 14,
// 视频时长
duration: params?.duration || 1000 * 60,
startTime: 10,
// 视频输出路径
outputPath: "./video.webm",
showProgress: true,
backgroundOpacity: 0,
pixelFormat: "rgb24",
videoBitrate: "8192k",
autostartRender: false
});

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