Added custom filter support
This commit is contained in:
parent
475d1a508a
commit
72d7a8c236
2 changed files with 71 additions and 0 deletions
20
tests/FFMpeg/Tests/Filters/Video/CustomFilterTest.php
Normal file
20
tests/FFMpeg/Tests/Filters/Video/CustomFilterTest.php
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
namespace FFMpeg\Tests\Filters\Video;
|
||||
|
||||
use FFMpeg\Filters\Video\CustomFilter;
|
||||
use FFMpeg\Filters\Video\FrameRateFilter;
|
||||
use FFMpeg\Tests\TestCase;
|
||||
use FFMpeg\Coordinate\FrameRate;
|
||||
|
||||
class CustomFilterTest extends TestCase
|
||||
{
|
||||
public function testApplyCustomFilter()
|
||||
{
|
||||
$video = $this->getVideoMock();
|
||||
$format = $this->getMock('FFMpeg\Format\VideoInterface');
|
||||
|
||||
$filter = new CustomFilter('whatever i put would end up as a filter');
|
||||
$this->assertEquals(array('-vf', 'whatever i put would end up as a filter'), $filter->apply($video, $format));
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue