kinescript

Cuts, transitions and captions.

Footage is edited in the same file as the motion graphics: a cut list of trimmed clips, a transition between two clips named in one word, titles and picture-in-picture over them, and captions timed in the scene.

A video edit

A cut list of three trimmed clips with a punch-in, a zoom and a wipe, then a lower third, a callout, a rounded picture-in-picture and captions. The clips are other demos on this site.

0.0 s
  1. cut
  2. lt
  3. co
  4. pip
  5. cap
  6. bar
edit.json1920 x 1080, 11.6 s
{  "canvas": {"w": 1920, "h": 1080, "fps": 30},  "grade": {"vignette": 0.25},  "layers": [    {"id": "cut", "type": "sequence",     "clips": [       {"src": "import.mp4", "trim": [0.8, 4.6], "zoom": [[0, 1], [3.2, 1.3, "inOutSine"]], "focus": [0.5, 0.32]},       {"src": "dolly.mp4", "trim": [2.6, 6.6]},       {"src": "materials.mp4", "trim": [1.2, 6.0], "enter": {"name": "wipe-right", "dur": 0.5, "ease": "inOutSine"}}     ],     "transition": {"type": "zoom", "dur": 0.5}},    {"use": "lowerThird", "id": "lt", "title": "A glTF file, trimmed", "subtitle": "\"trim\": [0.8, 4.6]",     "at": 0.4, "dur": 2.6},    {"use": "callout", "id": "co", "x": "50%", "y": "32%", "r": 70, "label": "punch-in focus", "at": 1.2, "dur": 1.9},    {"id": "pip", "type": "video", "src": "card-flip.mp4", "trim": [0.8, 4.8], "anchor": "center", "x": "79%",     "y": "24%", "w": 576, "h": 324, "radius": 18, "shadow": {"y": 10, "blur": 30, "color": "#0a0c1066"},     "at": "cut-3.in+0.5", "until": "cut-3.out", "enter": {"name": "pop", "dur": 0.4}, "exit": "fade"},    {"id": "cap", "type": "captions", "mode": "karaoke", "at": "cut-2.in",     "cues": [[0.3, 3.2, "Three clips from one cut list"], [3.7, 7.8, "and a fourth in the corner"]]},    {"use": "progress", "id": "bar", "h": 6, "color": "$muted"}  ]}

Transitions

Six two-clip sequences cutting at once, each by one word in its transition: iris, push, whip, glitch, and two luma wipes, one through a radial gradient and one through a gradient dark at both ends.

0.0 s
  1. title
  2. subtitle
  3. iris-tile
  4. iris-label
  5. push-tile
  6. push-label
  7. whip-tile
  8. whip-label
  9. glitch-tile
  10. glitch-label
  11. radial-tile
  12. radial-label
  13. doors-tile
  14. doors-label
{  "canvas": {"w": 1920, "h": 1080, "fps": 30, "duration": 5, "bg": "#0a0c10"},  "layers": [    {"id": "title", "type": "text", "text": "SIX WAYS ACROSS", "x": "50%", "y": "10%", "size": 72, "weight": 700,     "letterSpacing": 8, "fill": "$sheet", "at": 0.1, "enter": {"name": "rise-mask", "dur": 0.7}},    {"id": "subtitle", "type": "text", "text": "one word in a sequence's \"transition\"", "font": "$mono", "size": 30,     "x": "50%", "y": "17%", "fill": "$annotation", "at": 0.3, "enter": "fade"},     {"id": "iris-tile", "type": "group", "x": 360, "y": "37%", "anchor": "center", "w": 544, "h": 306,     "radius": 18, "clip": true, "at": 0.2, "enter": "fade", "children": [      {"id": "iris", "type": "sequence", "w": 544, "h": 306, "anchor": "center", "fit": "cover",       "volume": 0,       "clips": [{"src": "media/fractal.mp4", "trim": [0, 2.6]}, {"src": "media/cells.mp4", "trim": [0.5, 3.7]}],       "transition": {"type": "iris", "dur": 1}}]},    {"id": "iris-label", "type": "text", "text": "iris", "font": "$mono", "size": 30, "x": 360, "y": "53.5%",     "fill": "$sheet", "at": 0.2, "enter": "fade"},     {"id": "push-tile", "type": "group", "x": 960, "y": "37%", "anchor": "center", "w": 544, "h": 306,     "radius": 18, "clip": true, "at": 0.3, "enter": "fade", "children": [      {"id": "push", "type": "sequence", "w": 544, "h": 306, "anchor": "center", "fit": "cover",       "volume": 0,       "clips": [{"src": "media/fractal.mp4", "trim": [0, 2.5]}, {"src": "media/cells.mp4", "trim": [0.5, 3.7]}],       "transition": {"type": "push", "dur": 1}}]},    {"id": "push-label", "type": "text", "text": "push", "font": "$mono", "size": 30, "x": 960, "y": "53.5%",     "fill": "$sheet", "at": 0.3, "enter": "fade"},     {"id": "whip-tile", "type": "group", "x": 1560, "y": "37%", "anchor": "center", "w": 544, "h": 306,     "radius": 18, "clip": true, "at": 0.4, "enter": "fade", "children": [      {"id": "whip", "type": "sequence", "w": 544, "h": 306, "anchor": "center", "fit": "cover",       "volume": 0,       "clips": [{"src": "media/fractal.mp4", "trim": [0, 2.4]}, {"src": "media/cells.mp4", "trim": [0.5, 3.3]}],       "transition": {"type": "whip", "dur": 0.6}}]},    {"id": "whip-label", "type": "text", "text": "whip", "font": "$mono", "size": 30, "x": 1560, "y": "53.5%",     "fill": "$sheet", "at": 0.4, "enter": "fade"},     {"id": "glitch-tile", "type": "group", "x": 360, "y": "72%", "anchor": "center", "w": 544, "h": 306,     "radius": 18, "clip": true, "at": 0.5, "enter": "fade", "children": [      {"id": "glitch", "type": "sequence", "w": 544, "h": 306, "anchor": "center", "fit": "cover",       "volume": 0,       "clips": [{"src": "media/fractal.mp4", "trim": [0, 2.3]}, {"src": "media/cells.mp4", "trim": [0.5, 3.5]}],       "transition": {"type": "glitch", "dur": 0.8}}]},    {"id": "glitch-label", "type": "text", "text": "glitch", "font": "$mono", "size": 30, "x": 360, "y": "88.5%",     "fill": "$sheet", "at": 0.5, "enter": "fade"},     {"id": "radial-tile", "type": "group", "x": 960, "y": "72%", "anchor": "center", "w": 544, "h": 306,     "radius": 18, "clip": true, "at": 0.6, "enter": "fade", "children": [      {"id": "radial", "type": "sequence", "w": 544, "h": 306, "anchor": "center", "fit": "cover",       "volume": 0,       "clips": [{"src": "media/fractal.mp4", "trim": [0, 2.2]}, {"src": "media/cells.mp4", "trim": [0.5, 3.9]}],       "transition": {"type": "luma", "dur": 1.2, "soft": 0.3, "map": {"radial": [0.5, 0.5, 0.75]}}}]},    {"id": "radial-label", "type": "text", "text": "luma, radial map", "font": "$mono", "size": 30, "x": 960,     "y": "88.5%", "fill": "$sheet", "at": 0.6, "enter": "fade"},     {"id": "doors-tile", "type": "group", "x": 1560, "y": "72%", "anchor": "center", "w": 544, "h": 306,     "radius": 18, "clip": true, "at": 0.7, "enter": "fade", "children": [      {"id": "doors", "type": "sequence", "w": 544, "h": 306, "anchor": "center", "fit": "cover",       "volume": 0,       "clips": [{"src": "media/fractal.mp4", "trim": [0, 2.1]}, {"src": "media/cells.mp4", "trim": [0.5, 3.9]}],       "transition": {"type": "luma", "dur": 1.2, "soft": 0.15,                      "map": {"angle": 90, "stops": ["#000", "#fff", "#000"]}}}]},    {"id": "doors-label", "type": "text", "text": "luma, dark at both ends", "font": "$mono", "size": 30,     "x": 1560, "y": "88.5%", "fill": "$sheet", "at": 0.7, "enter": "fade"}  ]}

Kinetic captions

Vertical video, 1080x1920. Words that replace each other on a beat, a per-letter wave written as an expression, a typed line with a caret, and karaoke captions timed in the scene.

0.0 s
  1. bg
  2. file
  3. words
  4. wave
  5. line
  6. cmd
  7. cap
  8. bar
captions.json1080 x 1920, 7 s
{  "canvas": {"w": 1080, "h": 1920, "fps": 30, "duration": 7, "bg": "#0a0c10"},  "grade": {"vignette": 0.3},  "layers": [    {"id": "bg", "type": "shader", "preset": "score", "opacity": 0.55},    {"id": "file", "type": "text", "text": "captions.json  1080 x 1920", "font": "IBM Plex Mono", "x": "50%", "y": "9%",     "size": 44, "weight": 500, "fill": "$muted", "at": 0.1, "enter": "fade"},    {"id": "words", "use": "kinetic", "words": ["Captions", "that", "land", "on", "the"], "every": 0.45, "size": 180,     "y": "36%", "at": 0.3},    {"id": "wave", "type": "text", "text": "beat.", "x": "50%", "y": "36%", "size": 230, "weight": 800,     "fill": "$accent2", "split": "chars", "unitY": "=sin(T*5 + i*0.7)*16", "at": "words.out",     "enter": {"name": "rise", "dur": 0.4, "stagger": 0.04}},    {"id": "line", "type": "line", "points": [[-300, 0], [300, 0]], "x": "50%", "y": "47%", "stroke": "$muted",     "strokeWidth": 8, "at": "wave.in+0.3", "enter": {"name": "draw", "dur": 0.5}},    {"id": "cmd", "type": "text", "text": "\"mode\": \"karaoke\"", "font": "IBM Plex Mono", "x": "50%", "y": "54%",     "size": 48, "weight": 500, "at": "line.in+0.3", "enter": {"name": "type", "dur": 0.8}, "caret": true},    {"id": "cap", "type": "captions", "mode": "karaoke", "y": "70%", "size": 62, "maxWidth": 960, "at": 0.3,     "cues": [[0, 2.5, "Each word is timed in JSON"], [2.5, 4.6, "and lights up as it is said"],              [4.6, 6.7, "so a caption fix is one line"]]},    {"use": "progress", "id": "bar", "h": 10, "color": "$muted"}  ]}