2017 © Pedro Peláez
 

library flavy

FFmpeg layer for Laravel 5.2-5.4, this is a fork of rafasamp/sonus package

image

folour/flavy

FFmpeg layer for Laravel 5.2-5.4, this is a fork of rafasamp/sonus package

  • Thursday, December 28, 2017
  • by Folour
  • Repository
  • 8 Watchers
  • 21 Stars
  • 2,144 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 4 Open issues
  • 6 Versions
  • 4 % Grown

The README.md

Flavy - a simple ffmpeg layer for laravel 5.2-5.4

Scrutinizer Code Quality downloads license, (*1)

FFmpeg layer for Laravel 5.2-5.4, this is a fork of rafasamp/sonus package., (*2)

Simple API for convert audio/video files, get thumbnails from video, information of files, (*3)

Installation

Install Flavy via composer

composer require folour/flavy

In config/app.php to providers array add:

Folour\Flavy\Provider\FlavyServiceProvider::class,

And to aliases array add:

'Flavy' => Folour\Flavy\FlavyFacade::class,

In terminal in project root run:

php artisan vendor:publish

Usage

Simple conversion from ogg to mp3, with change bitrate:

Flavy::from('path/to/file.ogg')
    ->to('path/to/converted/file.mp3')
    ->aBitrate(128)
    ->aCodec('libmp3lame')
    ->overwrite()
->run();

Decrease bitrate and change channels to 1 (Mono)

Flavy::from('path/to/file.mp3')
    ->to('paths/to/new_file.mp3')
    ->aBitrate(64)
    ->channels(1)
->run();

Get file info:

Flavy::info('path/to/file.mp3'); //returns array with file info
Flavy::info('path/to/file.mp3', 'xml'); //returns xml string with file info
Flavy::info('path/to/file.mp3', 'csv'); //returns csv string with file info
Flavy::info('path/to/file.mp3', 'json', false); //returns json string with file info

Make thumbnails:

Flavy::thumbnail('path/to/video.mov', 'path/to/images/thumb_%d.jpg', 10); //Make 10 thumbnail and calculate time interval $duration/$count
Flavy::thumbnail('path/to/video.mov', 'path/to/images/thumb_%d.jpg', 10, 30); //Make 10 thumbnail with specified interval

Get ffmpeg base information:

Flavy::encoders(); //return a nested array with audio and video encoders
Flavy::decoders(); //return a nested array with audio and video decoders
Flavy::formats(); //return array with supported formats

Flavy::canEncode('encoder'); //Check encoder support
Flavy::canDecode('decoder'); //Check decoder support

The Versions

28/12 2017

dev-master

9999999-dev

FFmpeg layer for Laravel 5.2-5.4, this is a fork of rafasamp/sonus package

  Sources   Download

GPLv3

The Requires

 

by Vadim Bova

laravel converter audio video conversion ffmpeg video thumbnailer

09/05 2017

1.0.x-dev

1.0.9999999.9999999-dev

FFmpeg layer for Laravel 5.2-5.4, this is a fork of rafasamp/sonus package

  Sources   Download

GPLv3

The Requires

 

by Vadim Bova

laravel converter audio video conversion ffmpeg video thumbnailer

09/05 2017

v1.0.2

1.0.2.0

FFmpeg layer for Laravel 5.2-5.4, this is a fork of rafasamp/sonus package

  Sources   Download

GPLv3

The Requires

 

by Vadim Bova

laravel converter audio video conversion ffmpeg video thumbnailer

19/09 2016

dev-fl-1.0

dev-fl-1.0

FFmpeg layer for Laravel 5.2, this is a fork of rafasamp/sonus package

  Sources   Download

GPLv3

The Requires

 

by Vadim Bova

laravel converter audio video conversion ffmpeg video thumbnailer

19/09 2016

1.0.1

1.0.1.0

FFmpeg layer for Laravel 5.2, this is a fork of rafasamp/sonus package

  Sources   Download

GPLv3

The Requires

 

by Vadim Bova

laravel converter audio video conversion ffmpeg video thumbnailer

14/03 2016

1.0.0-beta

1.0.0.0-beta

FFmpeg layer for Laravel 5.2, this is a fork of rafasamp/sonus package

  Sources   Download

GPLv3

The Requires

 

by Vadim Bova

laravel converter audio video conversion ffmpeg video thumbnailer