Skip to main content

Use GPT to generate ffmpeg commands

Project description

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): 

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

ffmpeg-gpt-0.1.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file ffmpeg-gpt-0.1.1.tar.gz.

File metadata

  • Download URL: ffmpeg-gpt-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.10

File hashes

Hashes for ffmpeg-gpt-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a89a160eae8d11b46a959acc15c6c024cd10a350bfa42db327fc3bc735e720d2
MD5 cd8e6c2de359555ccd32fe8b006d4109
BLAKE2b-256 e2240e5e074b0c3c20fd0e39b20fc0cb45ab1ed8685ce23d2b3f9d104d44a49a

See more details on using hashes here.

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