A simple utility to get details like duration, resolution, and FPS from a video file.
Project description
FrameNet Video Utils
A simple, zero-dependency Python utility for getting video file details like duration, resolution, and frame rate.
This is a simple, open-source utility developed and maintained by the team at FrameNet.ai, the AI-powered platform that makes video editing effortless.
Installation
Install the package directly from PyPI:
pip install framenet-video-utils
Usage
The library provides one primary function, get_video_details(). It takes the path to a video file and returns a dictionary containing the video's properties. It returns None if the file cannot be processed.
from framenet_video_utils import get_video_details
# Get details from a local video file
details = get_video_details("path/to/my_video.mp4")
# The function returns a dictionary or None if it fails
if details:
print(f"Resolution: {details['width']}x{details['height']}")
print(f"Duration: {details['duration']} seconds")
print(f"Frame Rate: {details['fps']} fps")
else:
print("Could not retrieve video details.")
About FrameNet.ai
FrameNet.ai is a comprehensive suite of AI tools designed to simplify and automate your video creation workflow, from text-to-video generation to automatic subtitling.
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 framenet_video_utils-1.0.0.tar.gz.
File metadata
- Download URL: framenet_video_utils-1.0.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b62feb56071b728962605946f81be55309b4cc28e647acb4a95c927b0b95120
|
|
| MD5 |
60ea8bf75679685d0d77cf92de3ec480
|
|
| BLAKE2b-256 |
43e56324332bf1d10a35b663db72a5011be5c98bbf664572bee858c03e1a4e90
|
File details
Details for the file framenet_video_utils-1.0.0-py3-none-any.whl.
File metadata
- Download URL: framenet_video_utils-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7c573688fde7f7fb5cb49f8421d5a404d42a21189e9570aaeaec25ef4493d34
|
|
| MD5 |
669ab375256f9e24b662ca835e57693f
|
|
| BLAKE2b-256 |
1722909fedebb96abf0cd4cba12d4651ba66106a36d0b282639be9163c0ba9e6
|