cecil/php-read-mp4info

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

3.0.0 2024-09-30 13:49 UTC

This package is auto-updated.

Last update: 2024-10-30 14:06:26 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)
}