Repository navigation
feat: Lut colour grade, Motion presets/keyframes and Effect names on Clip - #110
Open
ankit-v2-3 wants to merge 2 commits into
Open
ankit-v2-3 wants to merge 2 commits into
ankit-v2-3 wants to merge 2 commits into
Conversation
Adds Lut(src, intensity) for 3D .cube lookup tables. Clip(lut=...) grades one clip before its filter; Timeline.lut grades the whole composited frame under captions. Lut.from_file uploads a local .cube through the collection upload URL, the same path large timelines use. The field is emitted only when set, so existing timelines serialize unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Adds Motion(enter, exit, keyframes) with MotionPreset (fade, slides, pop, wipes; duration, amount, easing) and Keyframe (time, value, easing) on offset.x/y, scale, rotation and opacity, plus the Effect enum for the server's named effect set. Clip(motion=...) is emitted only when set, so existing timelines serialize unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Nov 11, 2026
Merged
This branch has not been deployed
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.
Summary
Replaces #108 and #109 (closed when the branch was renamed). Two editor features matching the server-side contract in Spext/streaming_service#75 (LUT, merged), Spext/streaming_service#76 (motion) and Spext/videodb-server#1052 (LUT URL pass-through).
Lut colour grade
Lut(src, intensity=1.0):srcis the URL of a 3D.cubefile;intensityblends from untouched (0) to fully graded (1).Lut.from_file(connection, path, intensity)uploads a local.cubethrough the collection upload URL (the sameupload_bytespath large timelines use). The server rewrites that URL to a readable one before compile.Clip(lut=...)grades one clip before itsfilter;Timeline.lutgrades the whole frame under captions. Not valid on audio or caption clips.Motion and effects
Motion(enter=None, exit=None, keyframes=None)→Clip(motion=...).MotionPreset(preset, duration=0.4, amount=0.08, easing=ease_out)withMotionPresetName:fade,slide_up/down/left/right,pop,wipe_left/right. Slides and pop include a fade; an exit runs the entrance backwards.Keyframe(time, value, easing=linear)onKeyframeProperty:offset.x,offset.y,scale,rotation(degrees, clockwise),opacity. Clip-relative times, easing on the destination keyframe, values replace the base and hold outside their range.Easing:linear,ease_in,ease_out,ease_in_out,back_out.Effectenum for the server's defined set:zoom_in,shake,zoom_out,ken_burns,pulse.Clip.effectstill accepts a plain string; the server now rejects unknown names.motionexclusive witheffectand with a transition side, fits the clip, 32 keyframes max, ≥ 1 ms spacing) are enforced by the service with a public error.All new fields are emitted only when set, so existing timelines serialize exactly as before. Older services ignore them silently, so deploy the service first.
Docstring notes the text-layer caveat: text is drawn on a canvas-sized layer, so
scale/rotationact about the canvas centre unlessTextAsset.width/heightis set.Test plan
pytest— 22 passed (6 new intests/test_editor_lut.py, 11 new intests/test_editor_motion.py)generate_stream()with a timeline LUT, a slide_up/fade text clip, a keyframed logo and aken_burnsclip🤖 Generated with Claude Code