PHPackages                             coshi/transcodebundle - 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. coshi/transcodebundle

ActiveLibrary

coshi/transcodebundle
=====================

Simple Amazon transcode bundle

501[1 PRs](https://github.com/codesushi/transcodebundle/pulls)PHP

Since May 6Pushed 9y ago13 watchersCompare

[ Source](https://github.com/codesushi/transcodebundle)[ Packagist](https://packagist.org/packages/coshi/transcodebundle)[ RSS](/packages/coshi-transcodebundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

CodeShushi's TranscodeBundle
============================

[](#codeshushis-transcodebundle)

TranscodeBundle - for symfony 2.6

TranscodeBundle is designed to work with [Amazon Elastic Transcoder](https://aws.amazon.com/elastictranscoder/?nc1=f_ls)

> Amazon Elastic Transcoder is media transcoding in the cloud. It is designed to be a highly scalable, easy to use and a cost effective way for developers and businesses to convert (or “transcode”) media files from their source format into versions that will playback on devices like smartphones, tablets and PCs.

Install
=======

[](#install)

Add TranscodeBundle by running the command

```
$ php composer.phar require codesushi/transcodebundle
```

Composer will install the bundle to your project's vendor/codesushi directory. You also need to install [aws-sdk](http://aws.amazon.com/sdk-for-php/).

Configure
=========

[](#configure)

Add to your config.yml :

```
coshi_transcode:
    media_class: #path to media class. Must to implement TranscodeableInterface
    aws_access_key_id: #access key
    aws_secret_key: #secret key
    aws_s3_videos_bucket: #bucket name
    aws_transcoder_videos_pipeline_id: #pipeline id
    aws_transcoder_videos_presets:
        generic: #generic presets
        iphone4: #iphone4 presets
    aws_transcoder_region: #region
    media_provider: #must to implement TranscodeableProviderInterface
        type: #repository or service
        name: #name of provider
```

Read more about [pipeline](http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/working-with-pipelines.html) and [presets](http://docs.aws.amazon.com/elastictranscoder/latest/developerguide/gs-4-create-a-preset.html)

Usage
=====

[](#usage)

Example:

```
$amazonVideo = $this->getContainer()->get('coshi.amazon_transcoder.transcoder');
$amazonVideo->setVideo($video); //$video can be a Media entity (TranscodeableProviderInterface) or a s3 key
$s3Object = $amazonVideo->upload();
if (is_null($s3Object)) {
   //This video has been uploaded already!
} else {
   //Upload Finished!
}

$job = $amazonVideo->convert();

if (is_null($job)) {
   //This video has been queued for conversion already!
} else {
   //Transcoder job created! id: ' . $job['Job']['Id']
}
```

Instead of using a service in your code you can just to use ProcessVideosCommand for uploading and converting videos. Bundle also has its own type of events.

TODO
====

[](#todo)

-tests

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

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.

### Community

Maintainers

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

---

Top Contributors

[![zen7developer](https://avatars.githubusercontent.com/u/12230221?v=4)](https://github.com/zen7developer "zen7developer (8 commits)")

### Embed Badge

![Health badge](/badges/coshi-transcodebundle/health.svg)

```
[![Health](https://phpackages.com/badges/coshi-transcodebundle/health.svg)](https://phpackages.com/packages/coshi-transcodebundle)
```

PHPackages © 2026

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