cecil/php-read-mp4info

Detects the rotation degree, width and height of a MP4 video.

Fund package maintenance!
ArnaudLigny
Open Collective

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 1

pkg:composer/cecil/php-read-mp4info

3.0.0 2024-09-30 13:49 UTC

This package is auto-updated.

Last update: 2025-09-29 03:20:22 UTC


README

Fork of https://github.com/clwu88/php-read-mp4info

The format of the MP4 video file is analyzed using PHP to return rotation degree, width and height.

Install

composer require cecil/php-read-mp4info

Usage

<?php

var_dump(\Mp4\Info::get('video.mp4'));
array(3) {
    ["rotate"] => int(0)
    ["width"]  => int(960)
    ["height"] => int(544)
}