Files
roboco/video-renderer
Renn F cf96fa7f11 fix(video-renderer): align render.js with @hyperframes/producer 0.7.36 API
The sidecar's render.js was written against an older producer API and
never rendered on this deploy: it called createRenderJob({inputPath,
outputPath, width, height, fps}) and executeRenderJob(job, onProgress),
but 0.7.36 moved the paths to executeRenderJob(job, projectDir,
outputPath, onProgress) and takes only render params in the job config.
outputPath arrived undefined and dirname(undefined) threw on every
render (every composition), HTTP 500.

- Pass projectDir (the composition dir) + outputPath as executeRenderJob
  args; select the cut via config.entryFile.
- Drop width/height — 0.7.36 reads dimensions from the composition HTML
  (data-width/data-height); add the required quality tier.
- Stage motion/public into the composition dir: the producer serves the
  compiled entry at the file-server root, clamping the composition's
  ../../public/fonts to /public/fonts, so fonts must sit under projectDir.

Verified by rendering both v0.19.0 cuts against the running sidecar's
0.7.36 libraries: styled MP4s, no asset 404s.
2026-07-08 13:12:08 +02:00
..