WebVideoCreator icon indicating copy to clipboard operation
WebVideoCreator copied to clipboard

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

Open wujie0229 opened this issue 1 year ago • 0 comments

配置

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

wujie0229 avatar Jul 10 '24 13:07 wujie0229