|
2 | 2 | import { mkdirSync, readFileSync } from "node:fs"; |
3 | 3 | import { tmpdir } from "node:os"; |
4 | 4 | import type { CanvasResolution, OutputResolutionIssueKind } from "@hyperframes/core"; |
| 5 | +import { PRORES_PROFILES } from "@hyperframes/engine"; |
5 | 6 | import { c } from "../../ui/colors.js"; |
6 | 7 | import { errorBox, formatBytes } from "../../ui/format.js"; |
7 | 8 | import { formatLintStartupMessage } from "../../utils/lintFormat.js"; |
@@ -118,6 +119,12 @@ export async function executeRenderPlan( |
118 | 119 | reportVariableIssues(issues, { strict: plan.strictVariables, quiet: plan.quiet }); |
119 | 120 | } |
120 | 121 |
|
| 122 | + if (plan.proresProfile && !PRORES_PROFILES[plan.proresProfile].alpha && !plan.quiet) { |
| 123 | + console.log( |
| 124 | + c.dim(`ProRes ${plan.proresProfile} has no alpha channel: transparent areas render black.`), |
| 125 | + ); |
| 126 | + } |
| 127 | + |
121 | 128 | const options = renderOptionsFromPlan(plan, browserPath, variables); |
122 | 129 | const execute = plan.useDocker ? dependencies.renderDocker : dependencies.renderLocal; |
123 | 130 | await execute(plan.project.dir, plan.outputPath, options, cancellation); |
@@ -153,6 +160,7 @@ export function renderOptionsFromPlan( |
153 | 160 | vp9CpuUsed: plan.vp9CpuUsed, |
154 | 161 | videoBitrate: plan.videoBitrate, |
155 | 162 | keyframeIntervalSeconds: plan.keyframeIntervalSeconds, |
| 163 | + proresProfile: plan.proresProfile, |
156 | 164 | maxBitrate: plan.maxBitrate, |
157 | 165 | bufferSize: plan.bufferSize, |
158 | 166 | videoFrameFormat: plan.videoFrameFormat, |
@@ -361,6 +369,7 @@ export function batchRowRenderOptions( |
361 | 369 | vp9CpuUsed: plan.vp9CpuUsed, |
362 | 370 | videoBitrate: plan.videoBitrate, |
363 | 371 | keyframeIntervalSeconds: plan.keyframeIntervalSeconds, |
| 372 | + proresProfile: plan.proresProfile, |
364 | 373 | maxBitrate: plan.maxBitrate, |
365 | 374 | bufferSize: plan.bufferSize, |
366 | 375 | videoFrameFormat: plan.videoFrameFormat, |
|
0 commit comments