for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* This file is part of the PHP-FFmpeg-video-streaming package.
*
* (c) Amin Yazdanpanah <[email protected]>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Streaming;
use FFMpeg\FFMpeg as BFFMpeg;
use FFMpeg\FFProbe;
use Psr\Log\LoggerInterface;
class FFMpeg
{
/** @var BFFMpeg */
protected $ffmpeg;
* FFMpegInstance constructor.
* @param $ffmpeg
public function __construct(BFFMpeg $ffmpeg)
$this->ffmpeg = $ffmpeg;
}
* @param $path
* @return Media
public function open($path): Media
return new Media($this->ffmpeg->open($path), $path);
* @param $method
* @param $parameters
* @return mixed
public function __call($method, $parameters)
return call_user_func_array([$this->ffmpeg, $method], $parameters);
* @param array $config
* @param LoggerInterface $logger
* @param FFProbe|null $probe
* @return FFMpeg
public static function create($config = array(), LoggerInterface $logger = null, FFProbe $probe = null)
return new static(BFFMpeg::create($config, $logger, $probe));