예제 #1
0
 /**
  * Creates a new FFMpeg instance.
  *
  * @param array|ConfigurationInterface $configuration
  * @param LoggerInterface              $logger
  * @param FFProbe                      $probe
  *
  * @return FFMpeg
  */
 public static function create($configuration = array(), LoggerInterface $logger = null, FFProbe $probe = null)
 {
     if (null === $probe) {
         $probe = FFProbe::create($configuration, $logger, null);
     }
     return new static(FFMpegDriver::create($logger, $configuration), $probe);
 }
예제 #2
0
 /**
  * @expectedException FFMpeg\Exception\ExecutableNotFoundException
  */
 public function testCreateFailureThrowsAnException()
 {
     FFMpegDriver::create($this->getLoggerMock(), array('ffmpeg.binaries' => '/path/to/nowhere'));
 }