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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ffmpeg-gpt-0.1.1.tar.gz | 2.5 kB | Without provenance | Details for ffmpeg-gpt-0.1.1.tar.gz |
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
|
Security for ffmpeg-gpt 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.