Skip to content

clwu88/php-read-mp4info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

php-read-mp4info

返回 iPhone 拍摄的 mp4 视频的 rotate

用 php 实现了分析 mp4 视频文件的格式,但目前只实现了返回视频的的旋转度数。

代码例子

手机旋转示例

composer.json

    "require": {
        "clwu/php-read-mp4info": "v2.0.0"
    }
<?php
require('vendor/autoload.php');
var_dump(\Clwu\Mp4::getInfo('/tmp/faae8ca03b6e6c06cf47dad6dde46830.mp4'));


array(3) {
  ["rotate"]=> int(0)
  ["width"]=> int(960)
  ["height"]=> int(544)
}

About

do not need to call ffmpeg to get mp4info in php code

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages