Skip to content

Do not need to call FFmpeg to get MP4 info in PHP code.

License

Notifications You must be signed in to change notification settings

Cecilapp/php-read-mp4info

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

php-read-mp4info

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)
}

About

Do not need to call FFmpeg to get MP4 info in PHP code.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%