feat: add timeline-driven video rendering with ffmpeg export#3
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Time-driven scene composition that's rendered into a video via ffmpeg, plus the supporting type machinery for animation work.
tellur-core::time:Timetrait abstracting overTimelineTime(received from the renderer) andLocalTime(produced by remaps). Default combinators includeduring(gate, type-preserving),during_ripple(gate + rebase),lerp(affine warp with extrapolation),fps(floor quantization), andcycle/bounce/phase(periodic and range decompositions). ATimeOptionExtmirrors them onOption<T>for chaining.tellur-core::phase:Phasenewtype enforcing[0.0, 1.0]at construction. Useful for easing, progress, and other normalized scalars.tellur-core::interpolate:Interpolatetrait with impls forf32,Vec2, andAnchor.Phase::interpolate(from, to)reads naturally in animation code.tellur-core::timeline:Timelinetrait (build(t, target) -> RasterImage) plus atimeline()closure helper.tellur-core::geometry:AnchoredSize::snap_to(target_point)for absolute positions (Vec2-interpolation-friendly);snap_to_anchor(target_size, target_anchor)kept as the convenience for static layouts.tellur-renderer::video:FfmpegEncoderthat streams raw RGBA frames into anffmpegsubprocess. Input side (size, fps) is fixed; codec / container / filters are caller-controlled raw args, so mp4/mov/ProRes/etc. are all reachable. Two-rowindicatifprogress bars (Render / Encode) show by default;-progress pipe:1drives the Encode bar.timeline_to_mp4— fourBouncingDotinstances stacked vertically, each fed the sametquantized to 60/30/24/16 fps, so the lower-fps stutter is directly visible against the smooth top track.