Skip to content

fix: handle resolution changes gracefully#137

Open
Efe-Cal wants to merge 1 commit intohackclub:mainfrom
Efe-Cal:fix/resolution-changes
Open

fix: handle resolution changes gracefully#137
Efe-Cal wants to merge 1 commit intohackclub:mainfrom
Efe-Cal:fix/resolution-changes

Conversation

@Efe-Cal
Copy link
Contributor

@Efe-Cal Efe-Cal commented Jan 29, 2026

  • Changed the preferred MIME type for MediaRecorder from video/mp4;codecs=avc1 to video/mp4;codecs=avc3 as this was causing the main issue (and it was in front of our eyes all this time, on dev tools console).
  • Added a resizeVideoSample function that resizes video frames to a target width and height using letterboxing.
  • Modified the video concatenation logic to detect when input frames don't match the output dimensions and resize them before adding them to the output.
  • The output video dimensions are now set to the maximum width and height found among all input tracks, ensuring no cropping or stretching.

fixes #22
fixes #78

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.

Let users change recording device/window in the middle of a timelapse Resolution changes aren't handled gracefully

1 participant