valid handbrake preset

This commit is contained in:
Simon 2024-01-19 08:43:13 +01:00
parent e7660fda7c
commit 4c1574947f

View File

@ -143,7 +143,7 @@ app.post("/api/upload_video", authorized(), fileUpload({ limits: { fileSize: 2 *
console.log(newPath);
const exitCode = await new Promise((resolve, _reject) => {
const process = childProcess.spawn("HandBrakeCLI", ["-i", tempPath, "-o", newPath, "-Z", "Social 50 MB 10 Minutes 480p30"]);
const process = childProcess.spawn("HandBrakeCLI", ["-i", tempPath, "-o", newPath, "-Z", "Social 25 MB 5 Minutes 360p60"]);
process.stderr.on("data", (data) => {
console.error(data.toString());
});