Skip to content

Commit

Permalink
fix(core): use -mfr only for cc2022+
Browse files Browse the repository at this point in the history
Signed-off-by: Chawye Hsu <[email protected]>
  • Loading branch information
chawyehsu committed Sep 4, 2023
1 parent 58a8d8a commit 59b8a2a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/nexrender-core/src/tasks/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,16 @@ Estimated date of change to the new behavior: 2023-06-01.\n`);

option(params, '-r', jobScriptFile);

if (!settings.skipRender && settings.multiFrames) params.push('-mfr', 'ON', settings.multiFramesCPU);
if (!settings.skipRender && settings.multiFrames) {
const afterEffects = path.dirname(settings.binary)
const afterEffectsYearMatch = afterEffects.match(/(20[0-9]{2})/);

if (afterEffectsYearMatch && afterEffectsYearMatch[0] >= "2022") {
params.push('-mfr', 'ON', settings.multiFramesCPU);
} else {
params.push('-mp');
}
}
if (settings.reuse) params.push('-reuse');
if (job.template.continueOnMissing) params.push('-continueOnMissingFootage')

Expand Down

0 comments on commit 59b8a2a

Please sign in to comment.