A simple python library to edit videos
Project description
FastEdit
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.
FastEdit is based on FFmpeg which means it has to be installed on your machine before using FastEdit.
Install
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
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
Built Distribution
File details
Details for the file fastedit-0.4.0.tar.gz
.
File metadata
- Download URL: fastedit-0.4.0.tar.gz
- Upload date:
- Size: 11.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 859097faf88daa208ae5ee91a6c6548d1bad469a0c627ae100d88cf2f7a0bb75 |
|
MD5 | cc0462c7caa1a561ab6b8c8df52a3ae8 |
|
BLAKE2b-256 | 86a46bad2a2865c954aa627ce2dc93bd0d5887e456d11f80866107f991611d30 |
File details
Details for the file fastedit-0.4.0-py3-none-any.whl
.
File metadata
- Download URL: fastedit-0.4.0-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a76d12e467eccb9d307944016cfea08b4bb85a07f6c8c8e031ceab831d59cd7 |
|
MD5 | ea07a6b3db5b301b3749552bd657640a |
|
BLAKE2b-256 | 722cddd42cc86e71f1df890e190d503fc671d3b51384c26c20284914d88094bf |