Added the ComplexMedia type and the possibility to use -filter_complex and -map features. Added some built-in complex filters. Added the unit and functional tests of the new features. README.md has been updated.
This commit is contained in:
parent
89b0c2b4d0
commit
f20ad8a82e
17 changed files with 1583 additions and 7 deletions
|
|
@ -16,6 +16,7 @@ use FFMpeg\Driver\FFMpegDriver;
|
|||
use FFMpeg\Exception\InvalidArgumentException;
|
||||
use FFMpeg\Exception\RuntimeException;
|
||||
use FFMpeg\Media\Audio;
|
||||
use FFMpeg\Media\ComplexMedia;
|
||||
use FFMpeg\Media\Video;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
||||
|
|
@ -102,6 +103,18 @@ class FFMpeg
|
|||
throw new InvalidArgumentException('Unable to detect file format, only audio and video supported');
|
||||
}
|
||||
|
||||
/**
|
||||
* Opens multiple input sources.
|
||||
*
|
||||
* @param string[] $inputs Array of files to be opened.
|
||||
*
|
||||
* @return ComplexMedia
|
||||
*/
|
||||
public function openComplex($inputs)
|
||||
{
|
||||
return new ComplexMedia($inputs, $this->driver, $this->ffprobe);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new FFMpeg instance.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue