

A Psr\Logger\LoggerInterfaceĬan also be passed to log binary executions. Paths explicitly, you can pass an array as configuration. Use the static FFMpeg\FFMpeg::create: $ffmpeg = FFMpeg\ FFMpeg:: create() įFMpeg will autodetect ffmpeg and ffprobe binaries. FFMpegįFMpeg\FFMpeg is the main object to use to manipulate medias. To browse the source code as it is self-documented. This documentation is an introduction to discover the API. > save( new FFMpeg\ Format\ Video\ WebM(), 'export-webm.webm') Documentation > save( new FFMpeg\ Format\ Video\ WMV(), 'export-wmv.wmv') > frame( FFMpeg\ Coordinate\ TimeCode:: fromSeconds( 10)) > resize( new FFMpeg\ Coordinate\ Dimension( 320, 240)) $ composer require php-ffmpeg/php-ffmpeg Basic Usage require 'vendor/autoload.php' The recommended way to install PHP-FFMpeg is through Composer.

Otherwise you should have to explicitly give the binaries path on load.įor Windows users: Please find the binaries at.

You will need both FFMpeg and FFProbe binaries to use it.īe sure that these binaries can be located with system PATH to get the benefit of the binary detection, This library requires a working FFMpeg install. Your attention please How this library works: An Object-Oriented library to convert video/audio files with FFmpeg / AVConv.Ĭheck another amazing repo: PHP FFMpeg extras, you will find lots of Audio/Video formats there.
