PHPackages                             mozartk/get-keyframes - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. mozartk/get-keyframes

ActiveLibrary

mozartk/get-keyframes
=====================

Get keyframes from video clip

v1.0.0(7y ago)010MITPHPPHP &gt;=5.5.0

Since Sep 9Pushed 7y ago1 watchersCompare

[ Source](https://github.com/mozartk/GetKeyFrames)[ Packagist](https://packagist.org/packages/mozartk/get-keyframes)[ Docs](https://github.com/mozartk/getKeyFrames)[ RSS](/packages/mozartk-get-keyframes/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (5)Versions (4)Used By (0)

get-keyframes
=============

[](#get-keyframes)

[![LICENSE MIT](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://opensource.org/licenses/MIT)[![OJD](https://camo.githubusercontent.com/c73bfc6dc3688bc6ab8cfb773cf67462c81146f9f2cdcffaa964f0234032b284/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4f4a442d6d6f7a6172746b2d677265656e2e737667 "WE ARE OJD")](OJDDEV.md)

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

Installation
------------

[](#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
-----------

[](#basic-usage)

### How to run

[](#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

[](#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

[](#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
-------

[](#license)

Made by mozartk.
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~5 days

Total

3

Last Release

2789d ago

Major Versions

v0.1.0 → v1.0.02018-09-19

### Community

Maintainers

![](https://www.gravatar.com/avatar/1d1b17ce3cfcfac7c39fe94ad3b438756c8e4a26e8739b825f94abfee7d2734f?d=identicon)[mozartk](/maintainers/mozartk)

---

Top Contributors

[![mozartk](https://avatars.githubusercontent.com/u/1418452?v=4)](https://github.com/mozartk "mozartk (11 commits)")

---

Tags

mozartkget-keyframes

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/mozartk-get-keyframes/health.svg)

```
[![Health](https://phpackages.com/badges/mozartk-get-keyframes/health.svg)](https://phpackages.com/packages/mozartk-get-keyframes)
```

###  Alternatives

[laravel/framework

The Laravel Framework.

34.6k509.9M17.0k](/packages/laravel-framework)[matomo/matomo

Matomo is the leading Free/Libre open analytics platform

21.4k37.3k](/packages/matomo-matomo)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[magento/community-edition

Magento 2 (Open Source)

12.1k52.1k10](/packages/magento-community-edition)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[magento/magento2-functional-testing-framework

Magento2 Functional Testing Framework

15511.5M30](/packages/magento-magento2-functional-testing-framework)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
