Skip to main content

A simple python library to edit videos

Project description

FastEdit

PyPI version

FastEdit is a Python library to edit videos. Thanks to it you can manipulate videos and/or audios with actions such as cut, loop, or concatenate.

Installation

FastEdit is based on FFmpeg which means it has to be installed on your machine before using FastEdit.

Using pip

If pip is installed on your machine, you can install FastEdit by typing the following command:

pip install fastedit

If you want a specific version of FastEdit via pip, type the following command:

pip install fastedit==VERSION

If you want to install FastEdit from this GitHub repository, type the following command:

pip install git+https://github.com/ThomasMargnac/fastedit@main

Resources

Type Link
📚 Wiki GitHub Wiki
🛠 API Reference GitHub Page
🚨 Bug Reports GitHub Issue Tracker

Examples

On videos

# Importing library
from fastedit.Medias import Video

# Importing video
video = Video("input.mp4")

# Get video duration
duration = video.getDuration()

# Looping a video for 100 seconds
video_looped = video.loop(100)

# Clipping video from 0 to 10 seconds
video_cliped = video.clip(0, 10)

# Saving clipped video to file system
video_cliped.save("output.mp4")

On audios

# Importing library
from fastedit.Medias import Audio

# Importing audio
audio = Audio("input.mp3")

# Get audio duration
duration = audio.getDuration()

# Looping an audio for 100 seconds
audio_looped = audio.loop(100)

# Clipping audio from 0 to 10 seconds
audio_cliped = audio.clip(0, 10)

# Saving clipped audio to file system
audio_cliped.save("output.mp3")

On images

# Importing library
from fastedit.Medias import Image

# Importing images
image = Image("input.jpeg")

# Converting image to a 15 seconds video
video = image.toVideo(15)

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

fastedit-0.5.1.tar.gz (13.3 kB view hashes)

Uploaded Source

Built Distribution

fastedit-0.5.1-py3-none-any.whl (14.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page