Skip to main content

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

Project description

FrameNet Video Utils

alt text alt text

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.

➡️ 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.0.tar.gz (3.6 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.0-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for framenet_video_utils-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6b62feb56071b728962605946f81be55309b4cc28e647acb4a95c927b0b95120
MD5 60ea8bf75679685d0d77cf92de3ec480
BLAKE2b-256 43e56324332bf1d10a35b663db72a5011be5c98bbf664572bee858c03e1a4e90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for framenet_video_utils-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f7c573688fde7f7fb5cb49f8421d5a404d42a21189e9570aaeaec25ef4493d34
MD5 669ab375256f9e24b662ca835e57693f
BLAKE2b-256 1722909fedebb96abf0cd4cba12d4651ba66106a36d0b282639be9163c0ba9e6

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