Skip to content

@remotion/studio: Display held video frames in timeline - #9434

Merged
JonnyBurger merged 2 commits into
mainfrom
codex/media-timeline-testbed
Jul 22, 2026
Merged

@remotion/studio: Display held video frames in timeline#9434
JonnyBurger merged 2 commits into
mainfrom
codex/media-timeline-testbed

Conversation

@JonnyBurger

Copy link
Copy Markdown
Member

Summary

  • display @remotion/media Video layers for their full visual duration when they hold the final frame
  • clamp out-of-range timeline thumbnail requests to the final media instant
  • add a reusable media timeline testbed covering duration, trimming, and playback rate

Testing

  • bun run build
  • bun run stylecheck

Closes #9387

@vercel

vercel Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
bugs Ready Ready Preview, Comment Jul 22, 2026 9:08am
remotion Ready Ready Preview, Comment Jul 22, 2026 9:08am

Request Review

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes — extend the Studio timeline so @remotion/media Video layers render for their full sequence duration when they hold the final frame, and clamp out-of-range thumbnail extraction to the last valid media instant.

  • Add isVideoWithLastFrameHold helper to detect @remotion/media Video sequences
  • Return Infinity from useMaxMediaDuration for @remotion/media Video so the timeline no longer truncates at the decoded media duration
  • Pass extendLastFrame through TimelineSequence into TimelineVideoInfo
  • Add repeatLastFrame option to @remotion/timeline-utils extractFrames and clamp timestamps to the final media instant
  • Add MediaTimelineTestbed composition and drums-drumsticks.mp4 sample asset

Pullfrog  | View workflow run | Using Kimi K2 (free via Pullfrog for OSS) (Claude Opus not used — the program covers this model; add its provider key to run your pick) | 𝕏

@JonnyBurger
JonnyBurger merged commit 1102be0 into main Jul 22, 2026
31 of 32 checks passed
@JonnyBurger
JonnyBurger deleted the codex/media-timeline-testbed branch July 22, 2026 09:16
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.

A video by default has Infinite duration, Studio should recognize that

1 participant