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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file core_flux-0.2.3.tar.gz.
File metadata
- Download URL: core_flux-0.2.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.33.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c5d0dd75c81ad97126d05c3f3e7e98a8707efe6389fddcac7418b5c165570f84
|
|
| MD5 |
437bb8589e305155cf8cc746cee3e0ab
|
|
| BLAKE2b-256 |
eebe247fd54b3e9eb395b74738721768db0797f6f51bc2be1614c78e8c0efe9c
|
File details
Details for the file core_flux-0.2.3-py2.py3-none-any.whl.
File metadata
- Download URL: core_flux-0.2.3-py2.py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.33.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b14ea5de2ba5da4540c7c026b4dc9b12b4c555e933bbb226214f560c38940993
|
|
| MD5 |
63d81d3fbf0e514ef4eb4cf0ff613ebc
|
|
| BLAKE2b-256 |
4aba316febc237d04a4924236fc4fb9eab691a6c993b21cebd0044e64e7c0d00
|