PHPackages                             devejesus/video-encoder - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. devejesus/video-encoder

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

devejesus/video-encoder
=======================

A simple PHP-based video encoder that converts raw RGB24 frames to YUV420p format using custom pixel processing.

v1.0.0(1y ago)00MITPHPPHP &gt;=8.0

Since Jun 11Pushed 1y agoCompare

[ Source](https://github.com/devEJesus/php-video-encoder)[ Packagist](https://packagist.org/packages/devejesus/video-encoder)[ RSS](/packages/devejesus-video-encoder/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

PHP Video Encoder
=================

[](#php-video-encoder)

A simple PHP-based video encoder that converts raw RGB24 frames to YUV420p format using custom pixel processing.

Features
--------

[](#features)

- Convert RGB24 frames to YUV420p format
- Efficient pixel processing
- Simple and easy-to-use interface
- No external dependencies required

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0

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

[](#installation)

You can install the package via composer:

```
composer require devejesus/video-encoder
```

Usage
-----

[](#usage)

```
use Devejesus\VideoEncoder\Encoder\RGB24ToYUV420Encoder;
use Devejesus\VideoEncoder\Model\VideoConfig;

// Create a video configuration
$config = new VideoConfig(384, 216); // width and height must be even numbers

// Initialize the encoder
$encoder = new RGB24ToYUV420Encoder();

// Convert the video
try {
    $encoder->encode(
        'input.rgb24',  // Input file path (RGB24 format)
        'output.yuv',   // Output file path (YUV420p format)
        $config
    );
    echo "Conversion completed successfully!\n";
} catch (\Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
```

Input Format Requirements
-------------------------

[](#input-format-requirements)

- The input file must be in RGB24 format
- Width and height must be even numbers
- Each pixel is represented by 3 bytes (R, G, B)
- No headers or metadata in the file

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request

License
-------

[](#license)

This package is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance48

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

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

Unknown

Total

1

Last Release

387d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/136651796?v=4)[Edgar Jesus](/maintainers/devEJesus)[@devEJesus](https://github.com/devEJesus)

---

Top Contributors

[![devEJesus](https://avatars.githubusercontent.com/u/136651796?v=4)](https://github.com/devEJesus "devEJesus (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/devejesus-video-encoder/health.svg)

```
[![Health](https://phpackages.com/badges/devejesus-video-encoder/health.svg)](https://phpackages.com/packages/devejesus-video-encoder)
```

###  Alternatives

[mikestecker/craft-readability

A set of Twig filters for showing statistics on your text.

1120.3k1](/packages/mikestecker-craft-readability)

PHPackages © 2026

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