Skip to main content

ffmpeg_gpt

Using GPT to generate bash scripts that use ffmpeg commands to process videos.

Installation

From pypi

pip install ffmpeg_gpt

From source

git clone https://github.com/apirrone/ffmpeg_gpt
cd ffmpeg_gpt
pip install .

Set yout openai api key as an environment variable (put it in your .bashrc or equivalent for convenience)

export OPENAI_API_KEY=<your_api_key>

Usage examples

$ ffmpeg-gpt "flip the video input.mp4 vertically, and export all its frames in a directory named out"

Generated script: 
===========
#!/bin/bash

mkdir out
ffmpeg -i input.mp4 -vf "vflip" -q:v 1 out/frame%04d.jpg
===========
Do you want to run this script? ([Y]/n): 

Metadata

Release files for ffmpeg-gpt 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ffmpeg-gpt 0.1.1
File Size Uploaded
ffmpeg-gpt-0.1.1.tar.gz 2.5 kB Details

Release files / ffmpeg-gpt-0.1.1.tar.gz

Download URL ffmpeg-gpt-0.1.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
a89a160eae8d11b46a959acc15c6c024cd10a350bfa42db327fc3bc735e720d2
BLAKE2b-256 checksum
How to use checksums
e2240e5e074b0c3c20fd0e39b20fc0cb45ab1ed8685ce23d2b3f9d104d44a49a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.8.10

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page