Closed khatiwadaaj closed 7 months ago
Please use output.
const output = join(__dirname, "../video/video.mp4");
// create creator instance
const width = 1080;
const height = 1920;
const creator = new FFCreator({
cacheDir: cacheDir,
output: output,
width: width,
height: height,
// log: true,
highWaterMark: "8mb",
parallel: 1,
fps: 30,
});
mark
output: output, width: width,
请问下 output 和outputDir ,分别是啥作用,以及有啥区别?我看example中使用outputDir就能正常输出在对应目录,而我就是在当前目录生成。不知道啥原因。
const cacheDir = join(dirname, "../cache/"); const outputDir = join(dirname, "../video/");
// create creator instance const width = 1080; const height = 1920; const creator = new FFCreator({ cacheDir: cacheDir, outputDir: outputDir, width: width, height: height, // log: true, highWaterMark: "8mb", parallel: 1, fps: 30, });
I have something like this, but it always creates the videos in / directory of where my index.js of project is. Am I missing something? Please direct me towards anything that is helpful.