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 fastvideo

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

fastvideo_faaris-0.1.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

fastvideo_faaris-0.1.0-py2.py3-none-any.whl (3.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file fastvideo_faaris-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for fastvideo_faaris-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0e6264237b9ef00a5d5768d5d47e26a5ecd325275407d7cfdce0284bc49dcb05
MD5 fdd70934e73d30a795a51657a781d9b6
BLAKE2b-256 d7a40a89659da3581b04471e801d2bbc01785b92d73996cd04cdb184eefa8d58

See more details on using hashes here.

File details

Details for the file fastvideo_faaris-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for fastvideo_faaris-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 20330465482a0eb15e96b2899cb522a957c591b0353fd07d2808e9bfcfecbac9
MD5 29cf909656a508292918c96b4303c640
BLAKE2b-256 451a5a033decc446774ddcef9abcb03b3031ae3cb452c656148244b24a4fca54

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