Hi, it's Ivo.
Time Warp Scan is the TikTok effect where a line sweeps down the screen and freezes everything it passes. TikTok's effect page showed 16.7M videos when I checked on November 8, 2026.
You can build the same idea on any clip you already have, with no editing app. I ran the exact prompt below in an empty folder on November 8, 2026. First try, 34 seconds, working result.mp4.
What you need first
- Claude Code, signed in. The prompt needs it to write and run a small script.
- Python and ffmpeg on your computer. If you don't have them, ask Claude Code to install them before you paste the prompt.
- One short clip, 3 to 6 seconds. Name it
clip.mp4.
The prompt
Open Claude Code in the folder with your clip and paste this:
In this folder there is a video called clip.mp4. Recreate TikTok's Time Warp Scan effect on it with code. A bright turquoise line moves slowly from the top of the video to the bottom over 3 seconds. Each row of pixels freezes at the moment the line passes it and stays frozen. Everything below the line keeps playing normally. Save the result as result.mp4, the same size as the original, 30 fps, no audio needed. Use only Python and ffmpeg. When you finish, pull one frame from the middle of result.mp4 and check it yourself.
Change "3 seconds" to match your clip. The line should finish about when the clip does.
The clip that works
This is the part that decides everything, and I learned it the slow way.
My first test was a dog that barely moved. The code was correct, the check passed, and the video looked almost the same as the original. The effect only shows when something moves while the line is passing it.
What works:
- A head turning, a hand waving, a pet moving, someone walking across the frame.
- A plain background, so the stretched shape reads clearly.
What doesn't: a still subject, a talking head that stays centered, a landscape with nothing moving.
The three steps
- Put
clip.mp4in an empty folder and open Claude Code there. - Paste the prompt and let it run. Mine took 34 seconds.
- Open
result.mp4and watch the line go past the moving part.
Follow-up lines, if it looks flat
Paste one of these after the first run:
The subject barely moves while the line passes. Speed the clip up 4x before applying the effect and make the line take 3 seconds.
I tried that one on the dog. It helped a little, but a better clip helped far more.
Make the line slower, so the frozen part stretches more.
Run the line from left to right instead of top to bottom.
Where it differs from TikTok
- TikTok scans live. You see the line coming and you pose around it. Claude Code works on a clip that's already filmed, so you can't react to the line, you can only pick a clip that moves at the right time.
- Looks, not physics. The stretching is the same trick, but the exact look depends on your clip.
- This counts against your Claude plan. One run is small, but it isn't free of usage.
I used a free stock clip for the test (Mixkit Stock Video Free License, which allows commercial use and editing). Use your own footage or a clip you have the rights to.
No CapCut, no editing app, nothing to upload.