PHPackages                             xmon/sonata-media-provider-video-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. xmon/sonata-media-provider-video-bundle

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

xmon/sonata-media-provider-video-bundle
=======================================

This bundle extends providers Sonata Media Bundle, creates a new provider for uploading videos and use FFmpeg

v1.0.4(9y ago)25.3k17[4 issues](https://github.com/xmon/SonataMediaProviderVideoBundle/issues)[2 PRs](https://github.com/xmon/SonataMediaProviderVideoBundle/pulls)MITPHPPHP &gt;=5.4

Since Mar 14Pushed 4y ago4 watchersCompare

[ Source](https://github.com/xmon/SonataMediaProviderVideoBundle)[ Packagist](https://packagist.org/packages/xmon/sonata-media-provider-video-bundle)[ Docs](https://github.com/xmon/SonataMediaProviderVideoBundle)[ RSS](/packages/xmon-sonata-media-provider-video-bundle/feed)WikiDiscussions master Synced 2mo ago

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

SonataMediaProviderVideoBundle
==============================

[](#sonatamediaprovidervideobundle)

The `SonataMediaProviderVideoBundle` extends providers [SonataMediaBundle](https://github.com/sonata-project/SonataMediaBundle), creates a new video `provider` for uploading videos, generate thumbnail and use FFmpeg.

This Bundle is based on [sergeym/VideoBundle](https://github.com/sergeym/VideoBundle), this Fork and the rest of the Forks of the [main project](https://github.com/maerianne/MaesboxVideoBundle)appear to be abandoned and I have made many changes, so I decided to create a new functional and documented project.

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

[](#requirements)

You need install [ffmpeg](https://www.ffmpeg.org/) in your server.

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

[](#installation)

### First you need install [phansys/getid3](https://github.com/phansys/GetId3) dependency

[](#first-you-need-install-phansysgetid3-dependency)

```
$ php composer.phar require phansys/getid3:~2.1@dev
```

There are a problem installing from composer.json of this bundle, [issue #16](https://github.com/phansys/GetId3/issues/16)

### Install this bundle

[](#install-this-bundle)

```
$ php composer.phar require xmon/sonata-media-provider-video-bundle
```

Add VideoBundle to your application kernel
------------------------------------------

[](#add-videobundle-to-your-application-kernel)

```
// app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Xmon\SonataMediaProviderVideoBundle\XmonSonataMediaProviderVideoBundle(),
        // ...
    );
}
```

Configuration example
---------------------

[](#configuration-example)

fter installing the bundle, make sure you configure these parameters

```
xmon_sonata_media_provider_video:
    ffmpeg_binary: "/usr/local/bin/ffmpeg" # Required, ffmpeg binary path
    ffprobe_binary: "/usr/local/bin/ffprobe" # Required, ffprobe binary path
    binary_timeout: 60 # Optional, default 60
    threads_count: 4 # Optional, default 4
    config:
        image_frame: 5 # Optional, default 10, Can not be empty. Where the second image capture
        video_width: 640 # Optional, default 640, Can not be empty. Video proportionally scaled to this width
    formats:
        mp4: true # Optional, default true, generate MP4 format
        ogg: true # Optional, default true, generate OGG format
        webm: true # Optional, default true, generate WEBM format
```

Twig usage
----------

[](#twig-usage)

For printing the URLs of the converted videos that have been saved in the metadata field, I have created 3 twig filters

```
{{ media|video_mp4 }}
{{ media|video_ogg }}
{{ media|video_webm }}
```

### Credits

[](#credits)

- Thanks to all contributors who participated in the initial Forks of this project. Especially with the main Fork [(maerianne/MaesboxVideoBundle)](https://github.com/maerianne/MaesboxVideoBundle) and Fork [(sergeym/VideoBundle)](https://github.com/sergeym/VideoBundle) I used to continue my development.
- Thanks other proyects required by this one:
    - [SonataMediaBundle](https://github.com/sonata-project/SonataMediaBundle).
    - [GetId3](https://github.com/phansys/GetId3)
    - [PHP FFmpeg](https://github.com/PHP-FFMpeg/PHP-FFMpeg)
- It has been used [videojs](http://videojs.com/) plugin such as video player in the administration

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Recently: every ~49 days

Total

9

Last Release

3511d ago

Major Versions

v0.0.5-beta → v1.0.02016-03-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/e8b2aa64f88de1a5b6784b0467b50d1be49a2989771faecd340c114445b67f0f?d=identicon)[xmon\_df](/maintainers/xmon_df)

---

Top Contributors

[![xmon](https://avatars.githubusercontent.com/u/4361296?v=4)](https://github.com/xmon "xmon (32 commits)")

---

Tags

bundleSymfony2videoffmpegmediasonata-media

### Embed Badge

![Health badge](/badges/xmon-sonata-media-provider-video-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/xmon-sonata-media-provider-video-bundle/health.svg)](https://phpackages.com/packages/xmon-sonata-media-provider-video-bundle)
```

###  Alternatives

[php-ffmpeg/php-ffmpeg

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

5.0k21.7M165](/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)

57447.2k1](/packages/pulse00-ffmpeg-bundle)[lakshmaji/thumbnail

Thumbnails for videos

108122.2k](/packages/lakshmaji-thumbnail)[lakshmajim/thumbnail

Thumbnails for videos

1088.0k](/packages/lakshmajim-thumbnail)[fmonts/ffmpeg-bundle

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

12195.1k](/packages/fmonts-ffmpeg-bundle)[mediamonks/sonata-media-bundle

A powerful, flexible and easy to use alternative for the existing Sonata Media Bundle

109.8k](/packages/mediamonks-sonata-media-bundle)

PHPackages © 2026

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