llm-video-frames
LLM plugin to turn a video into individual frames
Installation
Install this plugin in the same environment as LLM.
llm install llm-video-frames
Requires ffmpeg installed and available on the system PATH. On macOS, you can install it using Homebrew:
brew install ffmpeg
Usage
The llm-video-frames plugin provides a fragment loader that extracts individual frames from a video file using ffmpeg.
You can use the video-frames: fragment prefix to turn a video into a series of image attachments.
Fragment syntax
video-frames:<path>?fps=N×tamps=1
<path>: Path to the video file accessible to the environment where LLM runs.fps=N: (optional) Number of frames per second to extract. Defaults to1if omitted.timestamps=1: (optional) If set to1, overlays the filename and timestamp on each extracted frame in the bottom-right corner.
Examples
Extract 1 frame per second (default) from video.mp4:
llm -f video-frames:video.mp4 'describe the key scenes in this video'
Extract 5 frames per second:
llm -f 'video-frames:video.mp4?fps=5' 'summarize the video'
Extract 2 frames per second with filename and timestamps overlayed on frames:
llm -f 'video-frames:video.mp4?fps=2×tamps=1' 'list notable events with timestamps'
Development
To set up this plugin locally, first checkout the code. Then create a new virtual environment:
cd llm-video-frames
python -m venv venv
source venv/bin/activate
Now install the dependencies and test dependencies:
python -m pip install -e '.[test]'
To run the tests:
python -m pytest
Release files for llm-video-frames 0.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 | |
|---|---|---|---|
| llm_video_frames-0.1.tar.gz | 8.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llm_video_frames-0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / llm_video_frames-0.1.tar.gz
| Download URL | llm_video_frames-0.1.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
40fea50e4b40ece04b9ebd077092f3f224543970226b639f17134df70a2f5d31
|
|
BLAKE2b-256 checksum How to use checksums |
a2891aa07f6c4d65e331600732af57cd0f4bbd1bbee70f1a002eaf751aad67d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2025.
Transparency logRelease files / llm_video_frames-0.1-py3-none-any.whl
| Download URL | llm_video_frames-0.1-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
635c0609ee27619f23f704adba07fe1ca2dd00e744c7e532138353792fb391ef
|
|
BLAKE2b-256 checksum How to use checksums |
55a9beb469cb442e14f5e72549cbe90d0995f1f80a6413b46e2f76bf7344f7fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 5, 2025.
Transparency log