Added runtime check of the ffmpeg version before starting the command in the ComplexMedia. Added the FFMpegDriver::getVersion() method.
This commit is contained in:
parent
580fb21d5a
commit
d6f95508a9
15 changed files with 212 additions and 25 deletions
|
|
@ -14,16 +14,4 @@ abstract class FunctionalTestCase extends BaseTestCase
|
|||
{
|
||||
return FFMpeg::create(array('timeout' => 300));
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ffmpeg version.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getFFMpegVersion()
|
||||
{
|
||||
preg_match('#version\s(\S+)#',
|
||||
$this->getFFMpeg()->getFFMpegDriver()->command('-version'), $version);
|
||||
return $version[1];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue