Skip to content

fix(render-farm): transcode odd-sized recordings on CPU - #2955

Merged
richiemcilroy merged 1 commit into
CapSoftware:mainfrom
AksharP5:fix/render-farm-odd-cpu-transcodes
Oct 23, 2026
Merged

richiemcilroy merged 1 commit into
CapSoftware:mainfrom
AksharP5:fix/render-farm-odd-cpu-transcodes

Conversation

@AksharP5

@AksharP5 AksharP5 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

CPU source transcodes reject browser recordings with an odd width or height. Pad only the CPU path to the next even dimensions, adding at most one row or column so libx264 can encode H.264 4:2:0.

Closes #2954.

VP8 input Before, libx264 After, libx264
641×360 Encoder failure 642×360, 90 frames, 3 s
640×361 Encoder failure 640×362, 90 frames, 3 s
641×361 Encoder failure 642×362, 90 frames, 3 s
640×360 Succeeds Byte-identical output

All fixed files decode and pass production MP4 indexing and remux checks. The default NVENC arguments are unchanged; all four NVENC control files match byte for byte on the tested RTX 5060.

Validation: all 163 render-farm tests pass, including three real FFmpeg regressions that fail on main. Scoped Biome and strict TypeScript checks pass. Integration tests skip explicitly when FFmpeg or ffprobe is absent. Tested with FFmpeg n9.0.2 on Linux; no live worker fleet or older FFmpeg version was exercised.

RetriggerView in GreptileConfidence Score: 5/5

The PR appears safe to merge.

Summary

Adds even-dimension padding to CPU source transcodes so odd-sized recordings can be encoded with libx264.

  • CPU transcodes pad odd-sized recordings for H.264 output.

Reviews (1) · Last reviewed commit: "fix(render-farm): transcode odd-sized re..." · Reviewed by Greptile

@vercel
vercel Bot temporarily deployed to Preview – cap-status October 22, 2026 19:54 Inactive
@vercel

vercel Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
cap-status Skipped Skipped Oct 22, 2026 7:54pm UTC

@richiemcilroy
richiemcilroy merged commit 1171ff5 into CapSoftware:main Oct 23, 2026
29 of 30 checks passed

This branch was previously deployed

1 inactive deployment
Preview – cap-status — 3815271b Deployed Oct 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Render-farm CPU transcodes fail on recordings with odd dimensions

2 participants