2017 © Pedro Peláez
 

yii2-extension yii2-ffmpeg

convert media from one format to other

image

rbtphp/yii2-ffmpeg

convert media from one format to other

  • Friday, September 8, 2017
  • by AbdulRaheem123
  • Repository
  • 0 Watchers
  • 0 Stars
  • 48 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 33 % Grown

The README.md

FFMPEG

convert media from one format to other, (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist rbtphp/yii2-ffmpeg "*"

or add, (*4)

"rbtphp/yii2-ffmpeg": "*"

to the require section of your composer.json file., (*5)

Configuration

Install ffmpeg in your system if not installed. To use this extension, you have to configure the Connection class in your application configuration:, (*6)

return [ //.... 'components' => [ 'ffmpeg' => ['class' => '\rbtphp\ffmpeg\Ffmpeg', 'path' => '/usr/bin/ffmpeg' ], ] ];, (*7)

Usage

Once the extension is installed, simply use it in your code by :, (*8)

```php $args = array('type' => 'audio/video/image', 'input_file' => '/home/user/Pictures/movie.mp4', 'output_file' => '/home/user/Pictures/movie.mov', 'audio_bit_rate' => '20k', 'video_bit_rate' => '10k', 'thumbnail_image' => '/home/user/Pictures/movie.gif', 'thumbnail_generation' => 'yes/no', 'thumbnail_size' => '100x100' );, (*9)

echo Yii::$app->ffmpeg->ffmpeg($args);```, (*10)

The Versions

08/09 2017

dev-master

9999999-dev

convert media from one format to other

  Sources   Download

BSD-3-Clause

The Requires

 

by Raheem

extension yii2 ffmpeg

08/09 2017

1.0.3

1.0.3.0

convert media from one format to other

  Sources   Download

BSD-3-Clause

The Requires

 

by Raheem

extension yii2 ffmpeg

07/09 2017

1.0.2

1.0.2.0

convert media from one format to other

  Sources   Download

BSD-3-Clause

The Requires

 

by Raheem

extension yii2 ffmpeg

07/09 2017

1.0.1

1.0.1.0

convert media from one format to other

  Sources   Download

BSD-3-Clause

The Requires

 

by Raheem

extension yii2 ffmpeg

06/09 2017

1.0.0

1.0.0.0

convert media from one format to other

  Sources   Download

BSD-3-Clause

The Requires

 

by Raheem

extension yii2 ffmpeg