Added ffmpeg version checking in the ComplexMediaTest::testXStackFilter().

This commit is contained in:
CaliforniaMountainSnake 2020-02-20 14:34:21 +03:00
commit 6dc260fd3d
3 changed files with 21 additions and 0 deletions

View file

@ -14,4 +14,16 @@ abstract class FunctionalTestCase extends TestCase
{
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];
}
}