PHPackages                             rxlisbest/ffmpeg-transcoding - 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. rxlisbest/ffmpeg-transcoding

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

rxlisbest/ffmpeg-transcoding
============================

A php-cli transcoding library

0.1.3(7y ago)015MITPHP

Since Aug 15Pushed 6y ago1 watchersCompare

[ Source](https://github.com/rxlisbest/ffmpeg-transcoding)[ Packagist](https://packagist.org/packages/rxlisbest/ffmpeg-transcoding)[ RSS](/packages/rxlisbest-ffmpeg-transcoding/feed)WikiDiscussions master Synced 4d ago

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

ffmpeg-transcoding
==================

[](#ffmpeg-transcoding)

- 要求

```
    1、安装ffmpeg
    2、cli模式运行

```

- 安装

```
composer require rxlisbest/ffmpeg-transcoding

```

- 用法

```
$config = [
    'ffmpeg' => [
        'bin' => '/usr/local/bin/ffmpeg' // ffmpeg执行路径（必填）
    ],
    'option' => [
        'ab' => '128k', // 声音码率
        'acodec' => 'aac', // 音频格式
        'r' => '30', // 帧率
        'vb' => '900k', // 视频码率
        'vcodec' => 'libx264', // 视频格式
        's' => '1920x1080', // 分辨率
        'ar' => '44100', // 设置音频采样率
    ],
    'slice' => [
        'segment_time' => '30', // 切片时间
    ]
];

// 普通转码
use Rxlisbest\FFmpegTranscoding\Transcoding;
$transcoding = new Transcoding($config);
$input = getcwd() . '/' . 'test.3gp';
$output = getcwd() . '/' . 'test.mp4';
$transcoding->exec($input, $output);

// 转m3u8
use Rxlisbest\FFmpegTranscoding\Slice;
$transcoding = new Slice($config);
$input = getcwd() . '/' . 'test.3gp';
$output = getcwd() . '/' . 'test.m3u8';
$transcoding->exec($input, $output);

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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 ~14 days

Total

4

Last Release

2786d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/62300e760338350c94e0b2d321deabf9145ca5969662dc95dc191a4ae402bf13?d=identicon)[rxlisbest](/maintainers/rxlisbest)

---

Top Contributors

[![rxlisbest](https://avatars.githubusercontent.com/u/4598303?v=4)](https://github.com/rxlisbest "rxlisbest (16 commits)")

### Embed Badge

![Health badge](/badges/rxlisbest-ffmpeg-transcoding/health.svg)

```
[![Health](https://phpackages.com/badges/rxlisbest-ffmpeg-transcoding/health.svg)](https://phpackages.com/packages/rxlisbest-ffmpeg-transcoding)
```

###  Alternatives

[tomzx/php-semver-checker

PHP Semantic Versioning Checker

434232.8k2](/packages/tomzx-php-semver-checker)[mix/mix-skeleton

Full-featured development skeleton

132.1k](/packages/mix-mix-skeleton)

PHPackages © 2026

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