const render = (io, payload) => {
const { mediaType, extension, duration } = payload.data.renderOptions;
timecut({
url: myUrlVariable,
viewport: {
width: 1920,
height: 1080
},
fps: 25,
duration,
transparentBackground: true,
pipeMode: true,
outputOptions: ['-c:v', 'prores_ks', '-pix_fmt', 'yuva444p10le'],
screenshotType: 'jpeg',
output: `renders/${payload.fileId}.${extension ? extension : 'mov'}`,
logger: (message) => {
io.emit('timecut', {
message: getMessage(message)
});
},
preparePageForScreenshot: (page, num1, num2) => {
console.log(page, num1, num2); // <--- What do I do here?
return Promise.resolve();
}
}).then(function() {
console.log('Done!');
});
};
Do I just set the FPS to 1 and duration to 1? Just trying to see if I need to use a totally different function or if I can just reply on passed args.
Hey Steve, I was wondering if you had a "best practice" timecut options screenshot example you could share with me? I'm using this for video render:
Do I just set the FPS to 1 and duration to 1? Just trying to see if I need to use a totally different function or if I can just reply on passed args.