
'ffmpeg.threads' => 12, // The number of threads that FFMpeg should use 'timeout' => 3600, // The timeout for the underlying process 'ffprobe.binaries' => '/opt/local/ffmpeg/bin/ffprobe', 'ffmpeg.binaries' => '/opt/local/ffmpeg/bin/ffmpeg', 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')

>save(new FFMpeg\Format\Video\WMV(), 'export-wmv.wmv') >frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10)) >resize(new FFMpeg\Coordinate\Dimension(320, 240)) The recommended way to install PHP-FFMpeg is through Composer. For older versions of PHP, check out the 0.x-branch.
