https://github.com/pulse00/ffmpeg-bundle
Symfony bundle to provide PHP-FFmpeg as a Symfony service
https://github.com/pulse00/ffmpeg-bundle
Last synced: 8 months ago
JSON representation
Symfony bundle to provide PHP-FFmpeg as a Symfony service
- Host: GitHub
- URL: https://github.com/pulse00/ffmpeg-bundle
- Owner: pulse00
- License: other
- Created: 2012-09-25T22:11:11.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2019-12-06T09:08:28.000Z (almost 6 years ago)
- Last Synced: 2025-04-09T18:17:48.670Z (8 months ago)
- Language: PHP
- Size: 31.3 KB
- Stars: 57
- Watchers: 8
- Forks: 29
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-symfony - ffmpeg-bundle - This bundle provides a simple wrapper for the PHP_FFmpeg library, exposing the library as a Symfony service. (Miscellaneous)
README
Symfony ffmpeg bundle
=====================
[](https://travis-ci.org/pulse00/ffmpeg-bundle)
[](https://packagist.org/packages/pulse00/ffmpeg-bundle) [](https://packagist.org/packages/pulse00/ffmpeg-bundle) [](https://packagist.org/packages/pulse00/ffmpeg-bundle) [](https://packagist.org/packages/pulse00/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.
### Download FFmpegBundle using composer
Require the bundle with composer:
```bash
$ composer require pulse00/ffmpeg-bundle "^0.6"
```
Composer will install the bundle to your project's ``vendor/pulse00/ffmpeg-bundle`` directory.
### Enable the bundle
Enable the bundle in the kernel
```php
get('dubture_ffmpeg.ffmpeg');
// 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');
```
### Contributors
- [patkar](https://github.com/patkar)