Video Reverse Engineer
Reverse-engineer any viral video edit into code you can read, diff and re-render.
What is Video Reverse Engineer?
Video Reverse Engineer (package and command: editast) is an open-source, offline Python tool that turns a finished video edit into a structured, timestamped description of how it was made. Give it a TikTok, Instagram Reel, YouTube Short or film trailer and it detects every cut, transition, zoom, pan, whip, speed ramp, flash, colour effect and caption, measures the music's BPM, beats and drop, and writes it all as an Edit AST in JSON, a readable text language called EditScript, and an interactive HTML report. The same AST works as a template: render the edit again with your own clips, timed to your own song.
| Type | Command-line tool and Python library |
|---|---|
| Input | A video file, or a URL from YouTube, TikTok, Instagram and any other site yt-dlp supports |
| Output | Edit AST (JSON + JSON Schema), EditScript text, HTML timeline report, re-rendered MP4 |
| Runs on | CPU only, fully offline. No GPU, cloud API or API key |
| Requirements | Python 3.10+ on Windows, macOS or Linux |
| License | MIT, free and open source |
Quick start
git clone https://github.com/Pranav-Conova/video-reverse-engineer.git
cd video-reverse-engineer
pip install -e ".[ocr,fetch]"
editast analyze "https://www.youtube.com/shorts/N-va3tJzyT0"
Re-create an edit with your own footage and music:
editast render out/viral/viral.edit.json --clips my_footage/ --music my_song.mp3 --fit -o mine.mp4
What it detects
- Transitions: cut, flash, fade, dissolve, whip, zoom, spin, glitch
- Camera motion: zoom, pan, rotate, shake, with fitted easing curves
- Time effects: speed ramps, slow motion, freeze frames
- Look: colour grade, black and white, flashes, blur, invert, RGB split, letterbox
- Text: burned-in captions and on-screen text with offline OCR and word timing
- Music: BPM, beat grid, downbeats, onsets, drops, energy and sections
- Patterns: inferred rules such as “cuts every beat in the drop” or “zoom on the drop”
What 10 viral car edits have in common
Run on the 10 most-viewed car edits from a set of YouTube Shorts searches (1.1M to 9.4M views), the tool found that the drop comes 35–61% of the way in, median pace jumps from about 9 to 61 cuts per minute after it, and 73–97% of cuts land on a beat where the beat grid is reliable. See the per-video data.
Accuracy
On its held-out synthetic benchmark the tool scores 0.994 overall (cuts F1 0.995, beats F 0.988, text F1 1.000). On the real Sintel trailer, shot boundaries score precision 0.95 and recall 1.00 against hand labels. A 52-second trailer is analyzed in about 25 seconds on a laptop CPU.
Frequently asked questions
How do I find out how a viral TikTok, Reel or Short was edited?
Run editast analyze with the video's URL. You get a timestamped list of every cut, transition and effect, the song's BPM and beat grid, where the drop is, and the rules the edit follows, plus an interactive HTML timeline.
Can it detect beat-synced cuts and the BPM of the music?
Yes. It measures tempo, beats, downbeats, onsets, drops and sections, and records for every shot whether it starts on a beat and how many beats it lasts.
How do I copy a video edit and use it with my own footage and music?
Analyze the edit, then run editast render with --clips, --music and --fit. Every cut and effect moves onto your song's beats and the drops line up.
Does it need a GPU, an internet connection or an API key?
No. It runs offline on a normal CPU; internet is only needed to download a video from a URL.
How is it different from a scene-cut detector like PySceneDetect?
Scene-cut detectors find where shots change. Video Reverse Engineer also classifies transitions, measures camera motion and effects inside shots, aligns everything to the beat, infers the edit's patterns, and can re-render the edit as a template.