mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-09-03 04:38:33 +00:00
fix: resolve build and typecheck failures across packages
This commit is contained in:
@@ -103,13 +103,12 @@ export default defineCommand({
|
||||
|
||||
try {
|
||||
const startTime = Date.now();
|
||||
await producer.renderComposition(project.dir, {
|
||||
output: outputPath,
|
||||
const job = producer.createRenderJob({
|
||||
fps: config.fps,
|
||||
quality: config.quality,
|
||||
workers: config.workers,
|
||||
quiet: true,
|
||||
});
|
||||
await producer.executeRenderJob(job, project.dir, outputPath);
|
||||
const elapsedMs = Date.now() - startTime;
|
||||
|
||||
let fileSize: number | null = null;
|
||||
|
||||
@@ -143,14 +143,13 @@ async function renderDocker(
|
||||
const startTime = Date.now();
|
||||
|
||||
try {
|
||||
await producer.renderComposition(projectDir, {
|
||||
output: outputPath,
|
||||
const job = producer.createRenderJob({
|
||||
fps: options.fps,
|
||||
quality: options.quality,
|
||||
workers: options.workers ?? null,
|
||||
gpu: options.gpu,
|
||||
quiet: options.quiet,
|
||||
workers: options.workers,
|
||||
useGpu: options.gpu,
|
||||
});
|
||||
await producer.executeRenderJob(job, projectDir, outputPath);
|
||||
} catch (error: unknown) {
|
||||
const message = error instanceof Error ? error.message : String(error);
|
||||
errorBox("Render failed", message, "Try --docker for containerized rendering");
|
||||
|
||||
Reference in New Issue
Block a user