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.1.0.tar.gz (5.2 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.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for video2flow-0.1.0.tar.gz
Algorithm Hash digest
SHA256 883a39fe1fb039055d0394edf04b8c18f9606be8706a5387fc2a983c11f12f00
MD5 74201ee9b3f68d061c8172cbe6bd462f
BLAKE2b-256 fa1c1aad838cba6b7cee526daf6aa1a1ce0b72caa040b36b12d3676208fd5e75

See more details on using hashes here.

File details

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

File metadata

  • Download URL: video2flow-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a628e7c08badd2bf7cc1f50df45f09927cdb8f4220c7c883f8f9c221d31360ef
MD5 70b2b12bb0f489cfc56279f99599b223
BLAKE2b-256 492a6d6006756c83e0b479efd50ee4d44d225f9abdbb6d0941b7c0bf55842f28

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