Skip to main content

fxcue

Tell your users where the effects go.

fxcue analyses a video and returns an effects plan: a list of timestamped effect cues (zooms, transitions, shakes, whooshes…), each with the reason it was placed there. It is built for developers making beginner-friendly editing apps, auto-clippers and video tools. Your app decides how to show or apply each cue.

   0:02.0  transition  1.0  scene change
   0:02.0  whoosh_sfx  1.0  scene change
   0:12.4  zoom_in     0.6  loud moment
   0:45.2  shake       0.7  strong hit
  • Fast, offline and lightweight. No GPU and no AI model downloads.
  • Explainable: every cue says why it was placed.
  • Never cluttered: built-in spacing keeps effects from piling up.
  • Pluggable: add your own detectors and rules.
  • Plain JSON output that any language can read.

Install

pip install fxcue

fxcue reads video through FFmpeg. If FFmpeg isn't on your system, the bundled imageio-ffmpeg binary is used automatically.

Quickstart

import fxcue

plan = fxcue.plan("video.mp4", style="energetic")
for cue in plan.cues:
    print(cue.time, cue.effect, cue.reason)
plan.save("plan.json")

Or from the command line:

fxcue video.mp4                    # print the plan
fxcue video.mp4 -o plan.json       # save it as JSON
fxcue video.mp4 --style calm

Effects

Effect names are generic, so your app can map each one to its own assets.

Effect Kind Placed on (energetic style)
transition visual scene changes
whoosh_sfx audio scene changes
zoom_in visual loud moments
punch_zoom visual very loud moments (replaces zoom_in)
impact_sfx audio very loud moments
shake visual strong hits
flash visual strong music beats

Styles

Style Min gap between visual effects Max visual effects per minute Uses
calm 4 s 6 transitions, zooms on very loud moments
energetic 1.5 s 20 everything above (default)
vlog 2.5 s 12 transitions + whooshes, zooms

There is never more than one visual effect at the same moment. A sound effect is dropped when the visual effect it belongs to is dropped.

JSON output

{
  "schema_version": 1,
  "duration": 6.0,
  "style": "energetic",
  "cues": [
    {"time": 2.0, "effect": "transition", "strength": 1.0,
     "reason": "scene change", "source": "scenes", "duration": 0.5}
  ]
}

duration is a suggested length in seconds; apps may ignore it. Load a saved plan with fxcue.Plan.load("plan.json").

Customise

Your own rules replace the style's rules but keep its spacing:

from fxcue import Rule

plan = fxcue.plan("video.mp4", rules=[
    Rule("scene_change", ["flash", "whoosh_sfx"]),
    Rule("loud_peak", ["shake"], min_strength=0.5),
])

Event kinds from the built-in detectors are scene_change, loud_peak, beat and onset.

Your own detector, for example one using an AI model:

from fxcue import Event

class LaughDetector:
    name = "laughs"
    needs = "audio"          # or "video"

    def detect(self, media):  # media.path, media.audio (samples, rate) or None, media.duration
        return [Event(time=12.3, kind="loud_peak", strength=0.9, source=self.name)]

fxcue.register_detector(LaughDetector())   # used by every plan() call from now on

How it works

video ─► detectors ─► events ─► style rules ─► spacing pass ─► plan
  • scenes: hard cuts, found with PySceneDetect
  • loudness: moments much louder than the clip's own typical level (librosa)
  • beats: music beats and strong hits (librosa)

Roadmap

  • Optional preview render, so you can see a plan applied
  • Optional AI detectors (speech emphasis, laughter, faces)
  • More effects and styles, contributed by the community

Contributing

Contributions are welcome, especially new detectors, styles and effect ideas. See CONTRIBUTING.md.

Licence

MIT © Anal Kanti Roy. See LICENSE.

Metadata

Release files for fxcue 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fxcue 0.1.0
File Size Uploaded Provenance Actions
fxcue-0.1.0.tar.gz 22.6 kB With provenance Details for fxcue-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fxcue 0.1.0
File Interpreter ABI Platform Actions
fxcue-0.1.0-py3-none-any.whl Python 3 none any Details for fxcue-0.1.0-py3-none-any.whl

Total release size: 37.6 kB

Release files / fxcue-0.1.0.tar.gz

Download URL fxcue-0.1.0.tar.gz
Size 22.6 kB
Tags Source
SHA-256 checksum
How to use checksums
57d774736d7410f48d77ea8b7bce99b14769f25d781d994d18e0b01586d5dca9
BLAKE2b-256 checksum
How to use checksums
0a92e34d261598db0e4b0f87dc31f7a3e1842a99a566bc66bc39c39e0a3ad6fa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / fxcue-0.1.0-py3-none-any.whl

Download URL fxcue-0.1.0-py3-none-any.whl
Size 15.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26ea0270020cb5e7bed2af6cc867ea8bc7cbe235397a8511ce662dd35ac13850
BLAKE2b-256 checksum
How to use checksums
ea31fe43a58bd75385c5c805f460495796c9487ba7ea4f0f7d48988aa583822b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for fxcue 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for fxcue-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page