// .outputOptions("-c:v libwebp") // Specify the WebP codec
.on("end", () => {
resolve();
})
.on("error", (err) => {
reject(err);
})
.output(`${outputFilePath}/frame_%d.jpeg`) // Specify the output file
.run();
});
}
Problematic function is here, no crash when there is no output command. Works fine locally in development mode.
output file path is path.join(env.RAILWAY_VOLUME_MOUNT_PATH, DATE_SLUG, VIDEO_FILE_NAME)