Skip to main content

Extract video frames as descriptive text flows for LLM consumption

Project description

video2flow

Extract video frames as descriptive text flows for LLM consumption.

Claude, GPT-4o, Gemini and other multimodal models can see images but not video. video2flow bridges the gap: extract frames → generate timestamped descriptions → feed the text flow to any LLM.

Installation

pip install video2flow

Usage

# Extract frames from a video
video2flow extract video.mp4 -o frames/ --fps 1

# Quick description (without vision API)
video2flow describe video.mp4 --max-frames 10

# Full pipeline
video2flow pipeline video.mp4 -o video_flow/

LLM Integration

Pass the output JSON to any LLM:

import json
flow = json.loads(open("video_flow/flow.json").read())
prompt = flow["usage"]["example_prompt"]
# Then: response = llm.invoke(prompt)

For detailed vision understanding, send image files directly to a multimodal model alongside the flow transcript.

License

MIT

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

video2flow-0.2.0.tar.gz (9.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

video2flow-0.2.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

Details for the file video2flow-0.2.0.tar.gz.

File metadata

  • Download URL: video2flow-0.2.0.tar.gz
  • Upload date:
  • Size: 9.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for video2flow-0.2.0.tar.gz
Algorithm Hash digest
SHA256 07547e11fe79de45be597ad7428018d133a6f6437e4d1e065ee3053bd6040276
MD5 1bb71cb37550c91f4bfc5f290e48a184
BLAKE2b-256 278738a88b7d88a01edaaaa6ae1435883e09f71d32158b662d7f1f4ff3a7a280

See more details on using hashes here.

File details

Details for the file video2flow-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: video2flow-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.14

File hashes

Hashes for video2flow-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e549529a71de94162232b51be7487cd2b2d1c19ee2568bf21973e08478ab1621
MD5 1c49027d7d53e16491b07a15140a02e8
BLAKE2b-256 f6e2f5ebf2dad1192132cb114e9582bde1a1f6545c92e56b8a951899345d3fba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page