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.4.tar.gz (4.1 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.4-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for core_flux-0.2.4.tar.gz
Algorithm Hash digest
SHA256 d83174c4dcb6aabbcb957d155167c11522dabc049c844c4790ebb2c5eb2956d8
MD5 33ac6c30a2f23b6082b65e5b8629b54c
BLAKE2b-256 49cb5a426cd9085c7fb6dd0ddb690d186f41df5518975c97630f2939acbd330f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: core_flux-0.2.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 4.0 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.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9409b49a2d9e35fcc7c623f03fa4b96e92b4f5b901f896128bda2922b4bebd08
MD5 58dfced008c15f620a0c33d00594e0a0
BLAKE2b-256 15e84300e12421d5a2d8fc4d8d4b1791f473c811ecaf5bcbf73c6a120d1a3efe

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