Skip to content
Akshay Kumar Sharma
BookBook a call
Akshay Kumar Sharma

AI video editor

Edit videos in plain English

The web video editor I built at ngram, with an AI companion. Ask it to “trim the intro to 3 seconds” or “add a fade between scenes 2 and 3”, and it edits the timeline.

Built at ngram. There is no public link.

  • React
  • TypeScript
  • WebGL
  • FFmpeg
  • Node.js

Overview

What it does

As founding engineer at ngram I built a browser-based video editor with AI capabilities competing tools did not have at the time. You can manage clips, apply effects and generate captions by describing what you want, instead of dragging clips and tweaking keyframes.

It meant tying together browser rendering, AI inference and a state system that handles undo and redo across both AI-made and manual edits.

How it works

Two inputs, one command bus

  1. 01

    Ask or act

    The AI companion and the regular UI sit side by side as parallel inputs.

  2. 02

    Normalise

    Both emit the same edit commands, so every change follows one path.

  3. 03

    Record

    An immutable operation log gives full undo and redo, whoever made the edit.

  4. 04

    Render

    WebGL handles real-time preview with effects; FFmpeg handles the final export.

Features

What is in it

  • Frame-accurate cuts, splits, trims and rearrangements
  • Automated captions with speaker detection and timing sync
  • Transitions, filters, colour grading and motion graphics in real time
  • Background export in several formats and resolutions

The hard parts

Problems worth solving

Ambiguous language, frame-exact edits

An intermediate representation turns parsed intent into deterministic commands, and a context engine tracks clip positions, effects and selections so the AI can resolve “the last clip” or “the transition I just added”.

Real-time video in a browser

Rendering is tiered: a light canvas preview for scrubbing, a WebGL pipeline for playback with effects, and FFmpeg for exports. Texture pooling keeps long sessions from running out of GPU memory.