PHPackages                             fmonts/ffmpeg-bundle - 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. [Image &amp; Media](/categories/media)
4. /
5. fmonts/ffmpeg-bundle

ActiveSymfony-bundle[Image &amp; Media](/categories/media)

fmonts/ffmpeg-bundle
====================

Symfony bundle to provide PHP-FFmpeg as a Symfony service (https://github.com/PHP-FFMpeg/PHP-FFMpeg/)

0.8.7(5mo ago)12215.2k↓54.3%7MITPHPPHP &gt;=8.0

Since Oct 31Pushed 5mo ago2 watchersCompare

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

READMEChangelog (10)Dependencies (5)Versions (22)Used By (0)

Symfony FFmpeg bundle
=====================

[](#symfony-ffmpeg-bundle)

[![Latest Stable Version](https://camo.githubusercontent.com/843a2e79fd51650b2576aa486424afe171bde6caddef78dc1164382cabbd035a/68747470733a2f2f706f7365722e707567782e6f72672f666d6f6e74732f66666d7065672d62756e646c652f762f737461626c652e737667)](https://packagist.org/packages/fmonts/ffmpeg-bundle) [![Total Downloads](https://camo.githubusercontent.com/ca5c012eebab1a183053cb7dc1f6f90c3fa6c61bc677bc78f396f33a50abc30d/68747470733a2f2f706f7365722e707567782e6f72672f666d6f6e74732f66666d7065672d62756e646c652f646f776e6c6f6164732e737667)](https://packagist.org/packages/fmonts/ffmpeg-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/73a25d68948354799ff4f215e6dedfdabe765e7a4c5e64ab7a46d42c715959b3/68747470733a2f2f706f7365722e707567782e6f72672f666d6f6e74732f66666d7065672d62756e646c652f762f756e737461626c652e737667)](https://packagist.org/packages/fmonts/ffmpeg-bundle) [![License](https://camo.githubusercontent.com/bfdece7048138070a8923e722ea41ac4f2b87fb4b80e5b728885a9901bb144cc/68747470733a2f2f706f7365722e707567782e6f72672f666d6f6e74732f66666d7065672d62756e646c652f6c6963656e73652e737667)](https://packagist.org/packages/fmonts/ffmpeg-bundle)

This bundle provides a simple wrapper for the [PHP\_FFmpeg](https://github.com/alchemy-fr/PHP-FFmpeg) library, exposing the library as a Symfony service.

#### This fork adds Symfony5, Symfony6, Symfony7, and Symfony8 support and drops legacy Symfony and PHP support

[](#this-fork-adds-symfony5-symfony6-symfony7-and-symfony8-support-and-drops-legacy-symfony-and-php-support)

### Set up the bundle

[](#set-up-the-bundle)

#### 0. Install FFmpeg and Find the Binary Paths

[](#0-install-ffmpeg-and-find-the-binary-paths)

To use this bundle, you need FFmpeg installed on your system. Find out where the binaries (ffmpeg and ffprobe) are located.

#### Ubuntu/Debian:

[](#ubuntudebian)

```
$ sudo apt install ffmpeg
$ whereis ffmpeg
# outputs: ffmpeg: /usr/bin/ffmpeg
$ whereis ffprobe
# outputs: ffmpeg: /usr/bin/ffprobe
```

#### macOS (Apple Silicon):

[](#macos-apple-silicon)

```
$ brew install ffmpeg
$ which ffmpeg
# outputs: /opt/homebrew/bin/ffmpeg
$ which ffprobe
# outputs: /opt/homebrew/bin/ffprobe
```

#### Windows:

[](#windows)

Download FFmpeg from [ffmpeg.org](https://ffmpeg.org/download.html). Extract the binaries to a folder and note their location, e.g.:

```
  ffmpeg_binary: 'C:\Program Files\FFMpeg\ffmpeg.exe'
  ffprobe_binary: 'C:\Program Files\FFMpeg\ffprobe.exe'
```

---

1. Create the required configuration in `config/packages/dubture_f_fmpeg.yaml` (or rename it if using a different setup):

```
dubture_f_fmpeg:
  ffmpeg_binary: /usr/bin/ffmpeg
  ffprobe_binary: /usr/bin/ffprobe
  binary_timeout: 300 # Use 0 for infinite
  threads_count: 4
  temporary_directory: "%kernel.cache_dir%/ffmpeg"
```

2. Install the Bundle via Composer:

```
$ composer require fmonts/ffmpeg-bundle
```

3. Register the FFmpeg Service

Add the FFmpeg service in `services.yaml` under the `services` section:

```
FFMpeg\FFMpeg: '@dubture_ffmpeg.ffmpeg'

```

### Usage example

[](#usage-example)

Once set up, you can use FFmpeg in your controllers for video manipulation. Below is a sample controller action:

```
use FFMpeg\FFMpeg;
use FFMpeg\Coordinate\Dimension;
use FFMpeg\Filters\Video\ResizeFilter;
use FFMpeg\Format\Video\X264;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;

class VideoController extends AbstractController
{
    public function resize(FFMpeg $FFMpeg): Response
    {
        // Open video
        $video = $FFMpeg->open('/your/source/folder/input.avi');

        // Resize to 1280x720
        $video
          ->filters()
          ->resize(new Dimension(1280, 720), ResizeFilter::RESIZEMODE_INSET)
          ->synchronize();

        // Start transcoding and save video
        $video->save(new X264(), '/your/target/folder/video.mp4');
    }
}
```

### Supported Symfony and PHP Versions

[](#supported-symfony-and-php-versions)

- Symfony Versions: 5.4, 6.x, 7.x, and 8.x
- PHP Versions: 8.0 and higher

For further documentation, visit the official [PHP-FFmpeg](https://github.com/alchemy-fr/PHP-FFmpeg) library to explore more options and features.

###  Health Score

54

—

FairBetter than 96% of packages

Maintenance73

Regular maintenance activity

Popularity43

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~221 days

Total

21

Last Release

151d ago

PHP version history (6 changes)0.6.0PHP ^5.3.9 || ^7.0

0.7.0PHP ^7.0

0.7.2PHP &gt;=7.0

0.8.0PHP ^7.4 || ^8.0 || ^8.1

0.8.2PHP ^8.0 || ^8.1

0.8.4PHP &gt;=8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/e6c9dfef10a8faa59a2ac3ef487582069ad309f5376dd18bdf4b22eb3ffe923b?d=identicon)[fmonts](/maintainers/fmonts)

---

Top Contributors

[![fmonts](https://avatars.githubusercontent.com/u/8755314?v=4)](https://github.com/fmonts "fmonts (36 commits)")[![pulse00](https://avatars.githubusercontent.com/u/185278?v=4)](https://github.com/pulse00 "pulse00 (29 commits)")[![QuingKhaos](https://avatars.githubusercontent.com/u/993350?v=4)](https://github.com/QuingKhaos "QuingKhaos (5 commits)")[![micronax](https://avatars.githubusercontent.com/u/1337823?v=4)](https://github.com/micronax "micronax (4 commits)")[![ToshY](https://avatars.githubusercontent.com/u/31921460?v=4)](https://github.com/ToshY "ToshY (3 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (2 commits)")[![christiaan](https://avatars.githubusercontent.com/u/118490?v=4)](https://github.com/christiaan "christiaan (2 commits)")[![mychalvlcek](https://avatars.githubusercontent.com/u/2392358?v=4)](https://github.com/mychalvlcek "mychalvlcek (1 commits)")[![romainneutron](https://avatars.githubusercontent.com/u/137574?v=4)](https://github.com/romainneutron "romainneutron (1 commits)")

---

Tags

audiovideo processingvideoaudio processingavconvffmpegavprobeffprobemultimedia

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fmonts-ffmpeg-bundle/health.svg)

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

###  Alternatives

[php-ffmpeg/php-ffmpeg

FFMpeg PHP, an Object Oriented library to communicate with AVconv / ffmpeg

5.0k24.0M193](/packages/php-ffmpeg-php-ffmpeg)[pulse00/ffmpeg-bundle

Symfony bundle to provide PHP-FFmpeg as a Symfony service (https://github.com/alchemy-fr/PHP-FFmpeg)

59457.1k1](/packages/pulse00-ffmpeg-bundle)

PHPackages © 2026

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