Skip to content

Stitching together videos and adding overlays causes the rendered video to be stretched #837

@brian-t-allen

Description

@brian-t-allen

Describe the bug

When stitching together multiple .mp4 videos and adding an overlay the video gets stretched and all attempts to avoid the stretching have failed.

Link to reproduction

https://github.com/brian-t-allen/hyperframes-render-bug

Steps to reproduce

  1. Clone the repo above
  2. cd repro
  3. npm run render -- -o /tmp/hyperframes-stretch-repro.mp4 --fps 25 --quality draft --workers 2 --no-browser-gpu
  4. Confirm the generated video stretches

Expected behavior

The rendered video should have overlays and background videos without stretching.

Actual behavior

The rendered video is stretched taller around the times the overlay is added or removed.

Environment

✓ Version          0.6.6 (latest)
  ✓ Node.js          v22.16.0 (darwin arm64)
  ✓ CPU              10 cores · Apple M4 @ 2400MHz
  ✗ Memory           32.0 GB total · 0.1 GB free
                     Low memory — renders may fail. Close other apps or increase RAM.
  ✓ Disk             15.0 GB free
  ✓ Environment      Native terminal
  ✓ FFmpeg           ffmpeg version 8.0.1 Copyright (c) 2000-2025 the FFmpeg developers
  ✓ FFprobe          ffprobe version 8.0.1 Copyright (c) 2007-2025 the FFmpeg developers
  ✓ Chrome           system: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
  ✗ Docker           Not found
                     https://docs.docker.com/get-docker/
  ✗ Docker running   Not running
                     Start Docker Desktop or run: sudo systemctl start docker

Additional context

No response

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions