No project description provided
Project description
FFMPerative - Chat to Compose Video
FFMPerative is your copilot for video editing workflows. Powered by Large Language Models (LLMs) through an intuitive chat interface, now you can compose video edits in natural language to do things like:
- Change Speed, Resize, Crop, Flip, Reverse Video/GIF
- Speech-to-Text Transcription and Closed-Captions
Just describe your changes like these examples.
Setup
Requirements
- Python 3
- ffmpeg
PyPI:
pip install ffmperative
Or pip install from source:
git clone https://github.com/remyxai/FFMPerative.git
cd FFMPerative && pip install .
ffmperative
defaults to inference using the local model on CPU.
To use the remotely hosted endpoint, set an environment variable with a huggingface token:
export HF_ACCESS_TOKEN=<your-token-here>
and use the optional --remote
flag
Quickstart
Add closed-captions with:
ffmperative do --prompt "merge subtitles 'captions.srt' with video 'video.mp4' calling it 'video_caps.mp4'"
Features
Python Usage
Simply import the library and pass your command as a string to ffmp
.
from ffmperative import ffmp
ffmp("sample the 5th frame from '/path/to/video.mp4'", remote=True)
Compose 🎞️
Use the compose
call to compose clips into an edited video. Use the optional --prompt
flag to guide the composition by text prompt.
ffmperative compose --clips /path/to/video/dir --output /path/to/my_video.mp4 --prompt "Edit the video for social media"
Resources
- ffmpeg-python
- Sample FFMPerative Dataset
- FFMPerative LLaMA2 checkpoint
- Automatically Edit Videos from Google Drive in Colab
Community
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file ffmperative-0.0.7.post1-py3-none-any.whl
.
File metadata
- Download URL: ffmperative-0.0.7.post1-py3-none-any.whl
- Upload date:
- Size: 17.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 467c815218503b8e43ec8e5a611a75d4853c3940c2207c1f043672be9ffdc36e |
|
MD5 | cda1d73113f4336aa3197d48cdf037aa |
|
BLAKE2b-256 | 48f63f51b8e85f5397dc57a68528c04015be12f48f7c15c9ac3e4b06fc9108da |