Skip to main content

No project description provided

Project description

FFMPerative

Devilishly Simple Video Processing

Large Language Models (LLMs) with Tools can perform complex tasks from natural language prompts. Based on HuggingFace's Agents & Tools, our agent is equipped with a suite of tools for common video processing workflows like:

  • Get Video Metadata
  • Extract Frame at Frame Number
  • Make a Video from a Directory of Images
  • Horizontal/Vertical Flip
  • Crop Video to Bounding Box
  • Speed Up Video by X
  • Compress a GIF/Video
  • Resize or convert a GIF/Video
  • Adjust Audio Levels

Install

Ensure you have ffmpeg installed. On Debian, you can use:

sudo apt-get install ffmpeg

Pypi

Install from pypi with:

pip install ffmperative

Install from source

Clone this repo and install using pip

git clone https://github.com/remyxai/FFMPerative.git 
cd FFMPerative/
pip install .

Quickstart

Getting started is easy, import the library and call the ffmp function.

from ffmperative import ffmp

ffmp(prompt="crop video '/path/to/video.mp4' to 200,200,400,400 before writing to '/path/to/video_cropped.mp4', then double the speed of that video and write to '/path/to/video_cropped_fast.mp4'")

CLI

You can also call FFMPerative from the command line, try:

ffmp do --prompt="sample the 5th frame from /path/to/video.mp4"

Roadmap

  • Basic Video Tools
  • Release to PyPI after Agents are Added to Transformers
  • Release LLM checkpoint fine-tuned to use ffmp Tools

Contributing

  • We'll gladly review pull requests aimed at improving the library of simple image and video processing tools.
  • Interested in contributing to data/templates for specializing an LLM for video processing workflows, ping us!

Resources:

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

ffmperative-0.0.1.tar.gz (5.8 kB view hashes)

Uploaded Source

Built Distribution

ffmperative-0.0.1-py3-none-any.whl (6.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