Skip to main content

A blazing fast video editing library wrapping FFmpeg native filters.

Project description

core-flux (Concisely Optimized Render Engine - FFmpeg Linear User Xtension)

A high-performance video editing library built entirely on top of native FFmpeg filters. By bypassing Python-level pixel manipulation and compiling operations directly into a single native filter graph, core-flux runs at maximum speed with a beautiful, chainable API.


Installation

pip install core-flux

Quick Start

from fastvideo import FastVideo

# Trim, resize, adjust colors, and render instantly
video = FastVideo("input.mp4")
video.trim(2, 12).resize(1280, 720).adjust_colors(contrast=1.2, saturation=1.5).render("output.mp4")

Features

  • Chainable API — Compose operations fluently in a single, readable expression.
  • FFmpeg-Native Speed — Zero Python processing bottleneck; your timeline is compiled into a native C-level graph.
  • Audio Control — Easily scale volume or mute streams.

API Reference

FastVideo(input_path)

Load a media file for editing.

video = FastVideo("input.mp4")

.trim(start_time, end_time)

Cut the video and audio between two timestamps (in seconds).

video.trim(0, 10)

.resize(width, height)

Scale the video to the given dimensions in pixels.

video.resize(1920, 1080)

.fade_out(start_fade, duration=1.0)

Add a smooth fade-to-black effect starting at start_fade seconds.

video.fade_out(start_fade=8.0, duration=2.0)

.adjust_colors(contrast=1.0, brightness=0.0, saturation=1.0)

Adjust contrast, brightness, and saturation. Values above 1.0 increase the effect; below 1.0 decrease it.

video.adjust_colors(contrast=1.2, saturation=1.5)

.with_volume_scaled_to(factor)

Scale the audio volume (e.g., 0.5 for half volume, 2.0 to boost it).

video.with_volume_scaled_to(0.5)

.render(output_path)

Compile the filter graph and write the result to disk.

video.render("output.mp4")

Requirements

  • Python 3.8+
  • FFmpeg installed and available on your PATH

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

core_flux-0.2.2.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

core_flux-0.2.2-py2.py3-none-any.whl (3.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file core_flux-0.2.2.tar.gz.

File metadata

  • Download URL: core_flux-0.2.2.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.33.0

File hashes

Hashes for core_flux-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5221b9fae7bb2876c5dd1b7ac10a7c5bc77bb0be1323574f06716e12e9b46b56
MD5 e2d9502a8e2390e007e25ba55b497575
BLAKE2b-256 ae9427b92281f68ecc1ffe5d76742038942c310f7b9813ce8476a02937129b2d

See more details on using hashes here.

File details

Details for the file core_flux-0.2.2-py2.py3-none-any.whl.

File metadata

  • Download URL: core_flux-0.2.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.33.0

File hashes

Hashes for core_flux-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 49ab97ebc69a0c2d55664b024d612995051069f5370c6c57de1c8b450488dbbd
MD5 f21e715ae49ee8fdc48227df00ba0f54
BLAKE2b-256 80ee8981c204841da766d46e6bb5348b2310cdcc1bf2b559c3c87bdbd84c736f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page