Skip to content

vaxastudio/flashcut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flashcut

A simple Flask web app that analyzes an uploaded audio file for onsets and generates cut segments; optionally renders a video timeline using FFmpeg.

Deploying to Railway

  • This repo is ready for Railway out of the box (Nixpacks). It uses a Procfile and binds to $PORT.
  • Python version is pinned via runtime.txt.
  • Dependencies are pinned in requirements.txt for reliable builds on Python 3.11.

FFmpeg (optional, for rendering)

Rendering videos/images requires FFmpeg. If it is not available, the app still works for analysis; rendering will be skipped with a friendly message.

To include FFmpeg on Railway, set this project variable:

  • NIXPACKS_INSTALL_PKGS=ffmpeg

Alternatively, add FFmpeg in your service’s Nixpacks settings in the Railway dashboard.

Environment

Optional variables:

  • FLASK_SECRET — Flask session secret (defaults to "dev-secret").

Health check

  • GET /health{ "ok": true }

Notes

  • Max upload size is 500 MB by default.
  • Gunicorn is configured with a single threaded worker suitable for CPU-bound analysis; increase if you expect higher concurrency.

About

Auto cut short videos to the beat of your music

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages