Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wujie0229 opened this issue Jul 10, 2024 · 0 comments

Comments

@wujie0229
Copy link

配置

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
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant