An extended version of FrameStory, for creating video descriptions.
Project description
framestory
framestoryx is a successor to FrameStory for better compatibility with modern Python tooling. 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 framestoryx, you can use pip:
pip install git+https://codeberg.org/fossiaorg/framestoryx
Usage
Using framestoryx is straightforward. Below are examples demonstrating how to extract and describe significant frames from videos with various parameters.
Describing Video by URL
from framestoryx.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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file framestoryx-0.1.0a0.tar.gz.
File metadata
- Download URL: framestoryx-0.1.0a0.tar.gz
- Upload date:
- Size: 66.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Artix Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26e82a3539d5d941c8f2401556478e986db1c390a4f7c76388cfbb14c29bc8a5
|
|
| MD5 |
64ce8086e3976f5e8b8c2dadd309ae6d
|
|
| BLAKE2b-256 |
bf4cd2a526a04d431ea5285801cbe5552bcbbb07be92b8666b0f6580e090fd0e
|
File details
Details for the file framestoryx-0.1.0a0-py3-none-any.whl.
File metadata
- Download URL: framestoryx-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Artix Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47732a1928c10f4381a2ad0986e236b393d6ab3dad6a3c0d5bcd074e76a79db2
|
|
| MD5 |
2600a41e7d11b6ecc10b28ebeb9cc9fd
|
|
| BLAKE2b-256 |
79f07d72e60a8347babf8c2eb3412f90e0102f5bef0102db041ed8310c576fc6
|