Skip to main content

A simple utility to get details like duration, resolution, and FPS from a video file.

Project description

FrameNet Video Utils

PyPI Version License

A simple Python utility for getting video file details like duration, resolution, and frame rate.

This package provides a single, easy-to-use function to quickly analyze local video files, which is a common task in any video processing or automation workflow.


About FrameNet.ai

This utility is proudly developed and maintained by the team at FrameNet.ai. Our mission is to make video creation effortless through powerful, AI-driven tools.

While this package helps developers work with video programmatically, our platform offers a full suite of free tools for creators, including:

This package is part of our commitment to supporting the developer and creator communities.


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.

from framenet_video_utils import get_video_details

# Get details from a local video file
video_details = get_video_details("path/to/my_video.mp4")

if video_details and "error" not in video_details:
    print(f"Duration: {video_details['duration_seconds']}s")
    print(f"Resolution: {video_details['resolution']['width']}x{video_details['resolution']['height']}")
    print(f"Frame Rate: {video_details['fps']} fps")
else:
    print(f"Could not process video: {video_details.get('error')}")

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.

➡️ Learn more about the FrameNet.ai platform

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

framenet_video_utils-1.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

framenet_video_utils-1.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file framenet_video_utils-1.0.1.tar.gz.

File metadata

  • Download URL: framenet_video_utils-1.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for framenet_video_utils-1.0.1.tar.gz
Algorithm Hash digest
SHA256 9a78520a307d424d7f9426402bdd31567a45e03ca704d8bef18a1905ca0df9ed
MD5 01eb167376615d7cb27bca34bae6a838
BLAKE2b-256 fbd4c9c55e9d1ccb11065826702ec3029c26b60cc0b93ec1f7d6d0e33e355b2c

See more details on using hashes here.

File details

Details for the file framenet_video_utils-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for framenet_video_utils-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7b09ec9a42e4033669b0d230930d47eaebd80b6eb25ba3803ea0f531af6e0dbe
MD5 1741ef9883cc5fe4505af61139787699
BLAKE2b-256 76e975c0a89c8083afede0a1ce7c348ea054a05ba05343df653ebf0ed4d0d0c1

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