定制 mozartk/get-keyframes 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mozartk/get-keyframes

Composer 安装命令:

composer require mozartk/get-keyframes

包简介

Get keyframes from video clip

README 文档

README

LICENSE MIT OJD

Now you can easily get the keyframes from videofiles with php.

Installation

Run the composer command

composer require mozartk/get-keyframes

getKeyframes can be installed with Composer by adding the library as a dependency to your composer.json file.

{
    "require": {
        "mozartk/get-keyframes": "~1.0"
    }
}

Basic Usage

How to run

// Include your autoload 
require_once 'vendor/autoload.php';

use mozartk\GetKeyFrames\GetKeyFrames;

$info = new GetKeyFrames(); // Initialize your library
$data = $info->getVideoInfo("./samples.mkv"); //load videofiles

print_r($data); //print keyframes result

Result

Array
(
    [frame] => Array
        (
            [0] => 0
            [1] => 1
            [2] => 4
            [3] => 8
            [4] => 250
            [5] => 338
            [6] => 588
            [7] => 838
            [8] => 1088
        )

    [time] => Array
        (
            [0] => 0.000000
            [1] => 0.017000
            [2] => 0.067000
            [3] => 0.133000
            [4] => 4.160000
            [5] => 5.624000
            [6] => 9.784000
            [7] => 13.944000
            [8] => 18.104000
        )

)

If you need to work with large size files

Add the following at the start of your script

ini_set('max_execution_time', -1);

License

Made by mozartk.
The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 10
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固