Skip to main content

A blazing fast video editing library wrapping FFmpeg native filters.

Project description

FastVideo 🚀

A high-performance video editing library built on top of native FFmpeg filters.


Installation

pip install core-flux

Quick Start

from fastvideo import FastVideo

video = FastVideo("input.mp4")

# Trim, resize, punch up colors, and fade out
(
    video
    .trim(start_time=2, end_time=7)
    .resize(1280, 720)
    .adjust_colors(contrast=1.3, saturation=1.4)
    .fade_out(start_fade=4.0, duration=1.0)
    .render("output.mp4")
)

Features

  • Trimming — cut clips to exact start and end times
  • Resizing — scale video to any resolution
  • Color grading — tweak contrast and saturation with simple parameters
  • Fade effects — add smooth fade-outs with configurable timing
  • Chainable API — compose operations fluently in a single expression
  • FFmpeg-native — all processing runs through battle-tested FFmpeg filters for maximum performance

API Reference

FastVideo(path)

Load a video file for editing.

video = FastVideo("input.mp4")

.trim(start_time, end_time)

Cut the video between two timestamps (in seconds).

video.trim(start_time=2, end_time=7)

.resize(width, height)

Scale the video to the given dimensions in pixels.

video.resize(1280, 720)

.adjust_colors(contrast, saturation)

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

video.adjust_colors(contrast=1.3, saturation=1.4)

.fade_out(start_fade, duration)

Add a fade-to-black effect starting at start_fade seconds, lasting duration seconds.

video.fade_out(start_fade=4.0, duration=1.0)

.render(output_path)

Write the processed video 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.tar.gz (3.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-py2.py3-none-any.whl (2.9 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for core_flux-0.2.tar.gz
Algorithm Hash digest
SHA256 33b59f4791f2c8ad143886f6cac6418ff8dcdbe448b2a1636be7f2e8a10fc201
MD5 1853e9d0c969f70676471ae8d1b6b0e7
BLAKE2b-256 16013a2bc56d5a86957f9116314fb3174d38b580ebf9a8ab38a3b7e59ebbc2cf

See more details on using hashes here.

File details

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

File metadata

  • Download URL: core_flux-0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 2.9 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-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3fd3a0dafa6e58c90172d2e89ca6b4ee199a649f95788625d50ed1a356772838
MD5 b15aec8541fa30fa217f5310aececff8
BLAKE2b-256 beffba86f314912f9a005efd95a492c4357d4e23af49fa532f5ce0b981752fb6

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