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-faaris

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.1.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.

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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: fastvideo_faaris-0.1.1.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 fastvideo_faaris-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7cc7d3e0ec7a02f38a6f11b1a9cea8d297211271d23fde59ee4c4970ee760741
MD5 834ea0784ca7cc9848d77e88f3c97f20
BLAKE2b-256 2e384e424273bbe731c2f33bc4ead1bc92915e433127872d242496bb20cf112b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fastvideo_faaris-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f1bd161808720a2638f08c54b8cf023d492bfa13aa8c5434bc2d1613c5b3658c
MD5 9b6ae9585a3c588de837629f1bcd938f
BLAKE2b-256 dc1ceef3838c73e71c44b6697f63279e60b2470b97d304ebc3c91edbc9877d51

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