Download the PHP package boz14676/laravel-ffmpeg without Composer
On this page you can find all versions of the php package boz14676/laravel-ffmpeg. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download boz14676/laravel-ffmpeg
More information about boz14676/laravel-ffmpeg
Files in boz14676/laravel-ffmpeg
Package laravel-ffmpeg
Short Description FFMpeg for Laravel
License MIT
Homepage https://github.com/pbmedia/laravel-ffmpeg
Informations about the package laravel-ffmpeg
Laravel FFMpeg
This package provides an integration with FFmpeg for Laravel 5.8. The storage of the files is handled by Laravel's Filesystem.
Features
- Super easy wrapper around PHP-FFMpeg, including support for filters and other advanced features.
- Integration with Laravel's Filesystem, configuration system and logging handling.
- Compatible with Laravel 5.8.
- Support for Package Discovery.
- PHP 7.1, 7.2 and 7.3 only.
Installation
Only the master branch and version 4.0 of this package are compatible with Laravel 5.8. If you're still using an older version of Laravel, please use the chart below to find out which version you should use. Mind that older versions are no longer supported.
Laravel Version | Package Version |
---|---|
5.8 | 4.0 |
5.7 | 3.0 |
5.6 | 2.1 |
5.1-5.5 | 1.3 |
You can install the package via composer:
Add the Service Provider and Facade to your config file if you're not using Package Discovery.
Publish the config file using the artisan CLI tool:
Usage
Convert an audio or video file:
Instead of the method you can also use the method, where is an instance of .
You can add filters through a or by using PHP-FFMpeg's Filter objects:
Sometimes you don't want to use the built-in filters. You can apply your own filter by providing a set of options. This can be an array or multiple strings as arguments:
Chain multiple convertions:
Create a frame from a video:
With the class you can determinate the duration of a file:
When opening or saving files from or to a remote disk, temporary files will be created on your server. After you're done exporting or processing these files, you could clean them up by calling the method:
HLS
You can create a M3U8 playlist to do HLS. Exporting is currently only supported on local disks.
As of version 1.2.0 the method of the HLS exporter takes an optional second parameter which can be a callback method. This allows you to add different filters per format:
As of version 1.3.0 you can monitor the transcoding progress of a HLS export. Use the method to provide a callback which gives you the completed percentage.
As of version 2.1.0 you can disable the sorting of the added formats as most players choose the first format as the default one.
Advanced
The Media object you get when you 'open' a file, actually holds the Media object that belongs to the underlying driver. It handles dynamic method calls as you can see here. This way all methods of the underlying driver are still available to you.
If you want direct access to the underlying object, call the object as a function (invoke):
Example app
Here's a blogpost that will help you get started with this package:
https://protone.media/en/blog/how-to-use-ffmpeg-in-your-laravel-projects
Wiki
- Custom filters
- FFmpeg failed to execute command
- Get the dimensions of a Video file
- Monitoring the transcoding progress
- Unable to load FFProbe
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker. Please do not email any questions, open an issue if you have a question.
Credits
- Pascal Baljet
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-ffmpeg with dependencies
illuminate/config Version 5.8.*
illuminate/filesystem Version 5.8.*
illuminate/log Version 5.8.*
illuminate/support Version 5.8.*
league/flysystem Version ~1.0
boz14676/php-ffmpeg Version ^0.14.0
symfony/process Version ~4.0