Frame Story
FrameStory is a Python package designed for extracting and describing significant frames from videos. Leveraging state-of-the-art machine learning models, it can provide detailed descriptions of video content, making it a powerful tool for content analysis, accessibility, and summarization.
Installation
To install FrameStory, you can use pip:
pip install FrameStory
Usage
Using FrameStory is straightforward. Below are examples demonstrating how to extract and describe significant frames from videos with various parameters.
Describing Video by URL
from frame_story.video_describer import VideoDescriber
video_url = "https://example.com/video.mp4"
describer = VideoDescriber(show_progress=True)
descriptions = describer.get_video_descriptions(video_url=video_url)
print(descriptions)
Describing Video from Local Path
video_path = "/path/to/your/video.mp4"
describer = VideoDescriber(show_progress=True, max_tokens=50)
descriptions = describer.get_video_descriptions(video_path=video_path)
print(descriptions)
Customizing Extraction Threshold
The extract_significant_frames method allows you to customize the threshold for what constitutes a "significant" change between frames.
video_url = "https://example.com/video.mp4"
describer = VideoDescriber(threshold=25000)
descriptions = describer.get_video_descriptions(video_url=video_url)
print(descriptions)
These examples demonstrate the versatility of frame_story in processing videos from different sources and with various levels of detail in descriptions.
Features
- Extraction of significant frames from videos for detailed analysis.
- Generation of descriptive text for each significant frame using state-of-the-art image captioning models.
- Support for videos from URLs or local file paths.
- Customizable settings for progress display, description length, and frame extraction threshold.
- Easy to integrate into Python projects for content analysis, summarization, and accessibility applications.
Contributing
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
License
This project is licensed under the MIT License.
Metadata
Release files for FrameStory 2025.4.231619
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 |
|---|---|---|---|---|
| framestory-2025.4.231619.tar.gz | 5.2 kB | Without provenance | Details for framestory-2025.4.231619.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| framestory-2025.4.231619-py3-none-any.whl | Python 3 | none | any | Details for framestory-2025.4.231619-py3-none-any.whl |
Total release size: 11.1 kB
Release files / framestory-2025.4.231619.tar.gz
| Download URL | framestory-2025.4.231619.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a86d20bf1cfe8b5a99a548a68e4a0e7a2d03b122e8d02edd86b8b0f33ac94ae4
|
|
BLAKE2b-256 checksum How to use checksums |
d11bbaa9370f72a129eddb680b73a79f3e99a1c6e08e2f037a64a40b7ff42454
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Release files / framestory-2025.4.231619-py3-none-any.whl
| Download URL | framestory-2025.4.231619-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0a3218f459535ab720d5f7d2b9dc692f80b7ebd2baabf9e36d99a9dd392193e7
|
|
BLAKE2b-256 checksum How to use checksums |
16d7aefc7b9639560a5e39211cbda3d158e4755f528ffb95a0396f8e0debcdc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.11
|
Security for FrameStory 2025.4.231619
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.