Spaces:
Running
Running
Commit ·
90db87a
1
Parent(s): dc4bc8d
Fix dockerfile
Browse files- proxy-renderer.js +1 -2
proxy-renderer.js
CHANGED
|
@@ -50,9 +50,8 @@ export const renderProxy = async (outFile, options) => {
|
|
| 50 |
} = GenerateScript(ScriptInput)
|
| 51 |
const composition = ScriptInput?.meta?.renderComposition;
|
| 52 |
|
| 53 |
-
const framesPerChunk = options?.framesPerChunk ??
|
| 54 |
let framesRendered = 0;
|
| 55 |
-
duration = 100
|
| 56 |
while (framesRendered < duration) {
|
| 57 |
const endFrame = Math.min(framesRendered + framesPerChunk, duration);
|
| 58 |
const chunkOutFile = path.join(process.cwd(), `out/chunk-${framesRendered}-${endFrame}.mp4`);
|
|
|
|
| 50 |
} = GenerateScript(ScriptInput)
|
| 51 |
const composition = ScriptInput?.meta?.renderComposition;
|
| 52 |
|
| 53 |
+
const framesPerChunk = options?.framesPerChunk ?? 500;
|
| 54 |
let framesRendered = 0;
|
|
|
|
| 55 |
while (framesRendered < duration) {
|
| 56 |
const endFrame = Math.min(framesRendered + framesPerChunk, duration);
|
| 57 |
const chunkOutFile = path.join(process.cwd(), `out/chunk-${framesRendered}-${endFrame}.mp4`);
|