How to turn a chain of forward-moving still images into a smooth first-person walking video? #214075
Replies: 2 comments
|
Frame interpolation (minterpolate, RIFE, FILM) works in 2D. It estimates how pixels move between two frames, but a 0.5–2.5 m step forward produces parallax: near objects move much more than far ones, and some parts become visible or hidden. That's why buildings melt and text wobbles. No setting fixes that for steps this large. What works better on a CPU: 1. Push-in zoom per still, then crossfade ("fake dolly") Zoom slowly into the center of each still so it looks like walking forward, then crossfade into the next still while the scales roughly match: # per image: 3 s slow push-in (upscale first, otherwise zoompan jitters)
ffmpeg -i 001.png -vf "scale=3840:-1,zoompan=z='min(zoom+0.0012,1.25)':x='iw/2-(iw/zoom/2)':y='ih/2-(ih/zoom/2)':d=75:s=1920x1080:fps=25" -c:v libx264 -pix_fmt yuv420p 001.mp4
# join two clips with a 0.8 s crossfade
ffmpeg -i 001.mp4 -i 002.mp4 -filter_complex "xfade=transition=fade:duration=0.8:offset=2.2" -c:v libx264 out.mp4Tune the end zoom ( 2. Take smaller steps between stills If you want to use interpolation, generate stills about 0.2–0.5 m apart. With small motion, FILM handles the gaps much better than minterpolate. FILM was built for larger motion than RIFE, but it still won't fix strong parallax. It runs on a CPU, just slowly (TensorFlow, see google-research/frame-interpolation). 3. Use depth-based parallax (best quality, needs more compute) Estimate depth for each still (Depth Anything V2 Small runs fine on a CPU), then move a virtual camera forward through the image. That's the "3D Ken Burns" approach (sniklaus/3d-ken-burns). It gives real parallax, but the reference implementation expects a CUDA GPU, so on a CPU-only machine it's only practical with a free cloud GPU such as Colab. For footstep-only liminal walks, option 1 plus a little camera bob (a small vertical sine on |
|
You've already found the core problem: interpolation is 2D, a forward walk has parallax. Near objects shift a lot, far ones barely move, and new surfaces appear at the edges. No RIFE setting will invent the correct geometry for a 2.5 m jump. That's why text melts. On a CPU, what actually looks good is to cheat the camera instead of interpolating the scene:
FILM and RIFE can smooth small camera moves, but RIFE's practical implementations lean on Vulkan/GPU and FILM on CPU is slow and still parallax-blind. I'd only use them after you've shrunk the step, and only for motion smoothing, not as the main transition. One more trick: composite the sign text as a separate static layer over the moving background. Text is what the eye notices melting first. |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
Body
I'm making liminal-space / dreamcore "first-person walking" videos for YouTube (no music, only footsteps). My current workflow:
Problems:
Questions:
Environment: Linux, CPU only (no GPU), ffmpeg available. Free / open-source tools only.
Reference channels making this style of video (public examples of the target look):
Guidelines
All reactions