Opus Motion ★ Star on GitHub

Image looks · autofocus-hunt

Autofocus hunt

Camcorder autofocus hunting on a liminal office corridor (or any image): blur → snaps sharp → slips → locks, then a zoom from 52° to 27° and a second hunt; a far figure is visible only inside the first sharp window. REC / AF / zoom OSD and focus brackets.

A free, MIT-licensed image effect from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Autofocus hunt: three frames of the image effect, start, middle and end
Autofocus hunt — start, middle and end of the 5.5-second motion.

What Autofocus hunt is for

Suspense reveals, "did you see that?" beats, found-footage openers, product reveals with a lens feel.

  • autofocus
  • focus
  • blur
  • rack focus
  • camcorder
  • found footage
  • liminal
  • suspense
  • reveal
  • zoom
  • vhs
  • horror lite
  • mystery
  • lens

Details

Category
Image looks & photo effects
Length
5.5 s (165 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
medium
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
wallpaper carpet signal
Image props
src
Mood
photo
Roles
backdrop

Use Autofocus hunt in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add autofocus-hunt --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render autofocus-hunt --props '{"wallpaper":"#d5bd66","carpet":"#8c763c","signal":"#ff2a1a","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export autofocus-hunt --as mp4 --props '{"wallpaper":"#d5bd66","carpet":"#8c763c","signal":"#ff2a1a","src":""}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="autofocus-hunt"
  props={{wallpaper: '#d5bd66', carpet: '#8c763c', signal: '#ff2a1a', src: ''}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="autofocus-hunt"
  props='{"wallpaper":"#d5bd66","carpet":"#8c763c","signal":"#ff2a1a","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "autofocus-hunt",
      "props": {
        "wallpaper": "#d5bd66",
        "carpet": "#8c763c",
        "signal": "#ff2a1a",
        "src": ""
      }
    }
  ]
}

Autofocus hunt props

17 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
src""public/ image to focus-hunt (empty = procedural corridor)
focusKeys[[0,0.28],[14,0.3],[26,1.7],[36,0.72],[46,1.3],[56,0.94],[64,1],[96,1],[104,0.6],[116,1…[[frame, focusDistance]] with 1 = the subject in focus; overshoot past 1 and back for a hunt
zoomAt92frame the optical zoom starts
zoomFrames34zoom duration
fovFrom52start field of view in degrees
fovTo27end field of view in degrees (zoom = tan(from/2)/tan(to/2))
zoomFocus[0.66,0.46][x, y] 0..1 the zoom centres on
maxBlur26maximum blur radius (px at 1080)
revealtrueshow the far figure only while sharp between revealFrom and revealTo
revealFrom58first frame the hidden figure may appear
revealTo92last frame the hidden figure may appear
notice["NOTICE","Lights stay on after 6 PM.","Keep to the marked route.","Report any closed d…printed notice on the wall: title line then rules
wallpaper"#d5bd66"corridor wallpaper colour
carpet"#8c763c"carpet colour
signal"#ff2a1a"EXIT sign colour (the only signal colour)
osdtruecamcorder REC / AF / zoom overlay and focus brackets
osdLabel"REC"camcorder on-screen-display label next to the red dot

Notes & credits

Technique sources:

  • lemo-opuscar styles/backrooms demo/story.js focus curve + core/three/post.js CoC (MIT, LemoLab)
  • analysis/sources/lemo-styles-a.md §4 autofocus-hunt