ruka-surendra-kumar-reddy/framenet-video-utils-php

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

v1.0.0 2025-06-14 17:02 UTC

This package is auto-updated.

Last update: 2025-06-14 17:03:16 UTC


README

Latest Version License

A simple PHP 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, a common task in video processing workflows. It requires ffmpeg to be installed and available in your system's PATH.

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:

Installation

Install the package via Composer:

composer require ruka-surendra-kumar-reddy/framenet-video-utils-php

Usage

The library exports one primary function, getVideoDetails().

<?php

require 'vendor/autoload.php';

use FrameNet\VideoUtils\VideoUtils;

$details = VideoUtils::getVideoDetails('path/to/your/video.mp4');

if ($details) {
    printf("Duration: %.2fs\n", $details['duration_seconds']);
    printf("Resolution: %dx%d\n", $details['resolution']['width'], $details['resolution']['height']);
    printf("Frame Rate: %.2f fps\n", $details['fps']);
} else {
    echo "Could not process video.";
}

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