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(11mo ago)00MITPHPPHP &gt;=8.0

Since Jun 11Pushed 11mo 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 1mo ago

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 43% of packages

Maintenance51

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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

341d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4328ec47e7dc57fbeb8d6f2421fd7abbe4421e55ce44d87e90dcc466a10c0de9?d=identicon)[devEJesus](/maintainers/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

[ralouphie/mimey

PHP package for converting file extensions to MIME types and vice versa.

3285.9M72](/packages/ralouphie-mimey)[chencha/share

Share links with Laravel

182272.6k](/packages/chencha-share)[bocharsky-bw/arrayzy

A native PHP arrays easy manipulation library in OOP way.

38425.4k](/packages/bocharsky-bw-arrayzy)[mvanduijker/laravel-mercure-broadcaster

Mercure broadcaster

16866.5k](/packages/mvanduijker-laravel-mercure-broadcaster)[matomo/network

21897.4k4](/packages/matomo-network)[marc-mabe/php-enum-phpstan

Enum class reflection extension for PHPStan

13817.7k8](/packages/marc-mabe-php-enum-phpstan)

PHPackages © 2026

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