Opus Motion ★ Star on GitHub

Music · beat-camera

Beat camera (snap reframes)

The camera never floats: on every beat (or downbeat) it snaps to a new framing — punch-in, roll, whip, orbit, push — each move caught by a damped spring, with a +4 % punch on the kicks and a hair of shake that dies before the next cut; demoed over an engraved plinth table and a heavy title, and usable as a wrapper around any motion in a mix.

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

Beat camera (snap reframes): three frames of the music visualizer, start, middle and end
Beat camera (snap reframes) — start, middle and end of the 8.0-second motion.

What Beat camera (snap reframes) is for

Makes any static motion feel edited to music — wrap a scene in a `mix` with this on top, or use it as the demo explains; promos, recaps, music videos.

  • camera
  • beat
  • punch in
  • whip
  • roll
  • reframe
  • music
  • edit
  • spring
  • shake
  • kick
  • music video
  • wrapper
  • treatise

Details

Category
Music visualisers & audio graphics
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
yes
Seamless loop
no
Text props
title caption
Colour props
background ink accent
Mood
—
Roles
subject

Use Beat camera (snap reframes) in Remotion, React or HTML

Remotion project

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

# render an mp4 (run in the library folder)
node cli/mgl.mjs render beat-camera --props '{"title":"ON THE BEAT","caption":"CAMERA · SNAP REFRAME PER BEAT","background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export beat-camera --as webm-alpha --props '{"title":"ON THE BEAT","caption":"CAMERA · SNAP REFRAME PER BEAT","background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12"}'

React / Next.js

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

<MotionPlayer
  motion="beat-camera"
  props={{
    title: 'ON THE BEAT',
    caption: 'CAMERA · SNAP REFRAME PER BEAT',
    background: '#0A0A0B',
    ink: '#EEE9DF',
    accent: '#FF4D12',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="beat-camera"
  props='{"title":"ON THE BEAT","caption":"CAMERA · SNAP REFRAME PER BEAT","background":"#0A0A0B","ink":"#EEE9DF","accent":"#FF4D12"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "beat-camera",
      "props": {
        "title": "ON THE BEAT",
        "caption": "CAMERA · SNAP REFRAME PER BEAT",
        "background": "#0A0A0B",
        "ink": "#EEE9DF",
        "accent": "#FF4D12"
      }
    }
  ]
}

Beat camera (snap reframes) props

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

PropDefaultWhat it does
title"ON THE BEAT"demo headline
caption"CAMERA · SNAP REFRAME PER BEAT"demo mono caption
bpm120tempo used when `beats` has no beat list
offsetSec0.3time of the first beat in seconds (aligns the grid to your song)
beats{}beat data: {bpm, offsetSec, beatsPerBar} or a list of beat times (s), or a full analysis {beats, downbeats, sections, onsets:{kick,snare,hat:[[t,strength]]}}
on"beat"re-frame on every 'beat', 'downbeat' or every two bars ('bar2')
moves["punch","roll","whip","orbit","push"]allowed moves: punch | roll | whip | orbit | push | low | tilt (seeded pick per beat)
intensity1how far each reframe goes (0.5 subtle … 1.5 aggressive)
punch0.04extra zoom on each kick (0.04 = +4 %)
shake7post-cut shake in px (decays with half-life 0.05 s)
background"#0A0A0B"frame colour, or 'transparent' with showSubject false to use purely as an overlay wrapper
ink"#EEE9DF"
accent"#FF4D12"
showSubjecttruedraw the demo subject (false = empty camera rig for compositing)
hudtruebar/beat readout
seed1shot order

Notes & credits

Technique sources:

  • pdoom-video app/src/scenes/prompt.ts shots + engine/util.ts springStep (MIT): 1 − e^(−ζωt)·cos(ω√(1−ζ²)t), settle before the cut