| FFMpeg | -- | -
| FFMpegServiceProvider | -- | -
| FFProbe | -- | -
diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 3f36d28..76475ce 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -1,66 +1,48 @@ -name: Test +name: run-tests -on: - pull_request: ~ - push: - branches: - - "master" - schedule: - - cron: "0 0 * * *" +on: [push, pull_request] jobs: - test: - name: "PHP ${{ matrix.php-version }} ${{ matrix.dependency-versions }} ${{ matrix.composer-stability }}" - runs-on: ubuntu-latest + test: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: true + matrix: + os: [ubuntu-20.04] + php: [8.1, 8.0] + ffmpeg: [5.0, 4.4] + dependency-version: [prefer-lowest, prefer-stable] - env: - PHPUNIT_VERSION: ${{ matrix.phpunit-version }} + name: ${{ matrix.os }} - P${{ matrix.php }} - FF${{ matrix.ffmpeg }} - ${{ matrix.dependency-version }} - strategy: - fail-fast: false - matrix: - os: [ubuntu-20.04] - php-version: [8.1, 8.0, 7.4, 7.3, 7.2, 7.1, 7.0, 5.6, 5.5] - dependency-versions: [prefer-lowest, prefer-stable] - include: - - php-version: 5.5 - phpunit-version: 4 + steps: + - name: Checkout code + uses: actions/checkout@v2 - steps: - - name: Checkout project - uses: actions/checkout@v2 + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: ${{ matrix.php }} + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, mysql, mysqli, pdo_mysql, fileinfo + coverage: none - - name: Install and configure PHP - uses: shivammathur/setup-php@v2 - with: - php-version: ${{ matrix.php-version }} - tools: composer:v2 - coverage: none + - name: Install FFmpeg + uses: Iamshankhadeep/setup-ffmpeg@ffmpeg-5.0-20220119 + with: + version: ${{ matrix.ffmpeg }} + id: setup-ffmpeg - - name: Install phpunit - if: ${{ matrix.phpunit-version }} - run: | - composer remove symfony/phpunit-bridge --dev - wget -O phpunit "https://phar.phpunit.de/phpunit-${{ matrix.phpunit-version }}.phar" - chmod +x phpunit - composer require "roave/security-advisories" dev-master --no-update + - name: Install dependencies + run: | + composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest - - name: Set composer stability - if: ${{ matrix.composer-stability }} - run: composer config minimum-stability ${{ matrix.composer-stability }} + - name: Cache dependencies + uses: actions/cache@v2 + with: + path: ~/.composer/cache/files + key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}-dep-${{ matrix.dependency-version }} - - name: Install composer dependencies - uses: ramsey/composer-install@v1 - with: - dependency-versions: ${{ matrix.dependency-versions }} - - - name: Install ffmpeg - uses: FedericoCarboni/setup-ffmpeg@v1 - - - name: Run tests - run: | - if [ "$PHPUNIT_VERSION" ]; then - ./phpunit --verbose - else - ./vendor/bin/simple-phpunit --verbose - fi; + - name: Execute tests + run: vendor/bin/phpunit + env: + FFMPEG_TEMPORARY_FILES_ROOT: ${{ github.workspace }} diff --git a/.gitignore b/.gitignore index eb02dfe..e69b0e3 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ composer.phar composer.lock phpunit.xml .phpunit.result.cache +.php-cs-fixer.cache /tests/Functional/output/output-* /docs/doctum.phar /docs/source/API/API/cache/twig/* diff --git a/LICENSE b/LICENSE index ac8da71..07d4d9f 100644 --- a/LICENSE +++ b/LICENSE @@ -1,21 +1,21 @@ -PHP-FFmpeg is released with MIT License : +MIT License -Copyright (c) 2012 Alchemy +Copyright (c) 2012-2021 Alchemy Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), -to deal in the Software without restriction, including without limitation -the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following conditions: +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS -OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/ORIGINAL_ALCHEMY_CHANGELOG.md b/ORIGINAL_ALCHEMY_CHANGELOG.md new file mode 100644 index 0000000..f892249 --- /dev/null +++ b/ORIGINAL_ALCHEMY_CHANGELOG.md @@ -0,0 +1,64 @@ +CHANGELOG +--------- +* 1.6.0 (2015-03-02) + * BC Break: bump minimum PHP versions + * Allow use of evenement v2.0 (thanks @patkar for the P/R) + +* 1.5.0 (2013-06-21) + + * BC Break : ConfigurationInterface::get does not throw exceptions anymore + in case the key does not exist. Second argument is a default value to return + in case the key does not exist. + +* 1.4.1 (2013-05-23) + + * Add third parameter to BinaryInterface::command method to pass a listener or + an array of listener that will be registered just the time of the command. + +* 1.4.0 (2013-05-11) + + * Extract process run management to ProcessRunner. + * Add support for process listeners. + * Provides bundled DebugListener. + * Add BinaryInterface::command method. + * BC break : ProcessRunnerInterface::run now takes an SplObjectStorage containing + listeners as second argument. + * BC break : BinaryInterface no longer implements LoggerAwareInterface + as it is now supported by ProcessRunner. + +* 1.3.4 (2013-04-26) + + * Add BinaryDriver::run method. + +* 1.3.3 (2013-04-26) + + * Add BinaryDriver::createProcessMock method. + +* 1.3.2 (2013-04-26) + + * Add BinaryDriverTestCase for testing BinaryDriver implementations. + +* 1.3.1 (2013-04-24) + + * Add timeouts handling + +* 1.3.0 (2013-04-24) + + * Add BinaryInterface and AbstractBinary + +* 1.2.1 (2013-04-24) + + * Add ConfigurationAwareInterface + * Add ProcessBuilderAwareInterface + +* 1.2.0 (2013-04-24) + + * Add BinaryDriver\Configuration + +* 1.1.0 (2013-04-24) + + * Add support for timeouts via `setTimeout` method + +* 1.0.0 (2013-04-23) + + * First stable version. diff --git a/ORIGINAL_ALCHEMY_LICENSE b/ORIGINAL_ALCHEMY_LICENSE new file mode 100644 index 0000000..e7bb314 --- /dev/null +++ b/ORIGINAL_ALCHEMY_LICENSE @@ -0,0 +1,21 @@ +BinaryDriver is released with MIT License : + +Copyright (c) 2013 Alchemy + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +IN THE SOFTWARE. diff --git a/ORIGINAL_ALCHEMY_README.md b/ORIGINAL_ALCHEMY_README.md new file mode 100644 index 0000000..05b3a13 --- /dev/null +++ b/ORIGINAL_ALCHEMY_README.md @@ -0,0 +1,190 @@ +# Binary Driver + +Binary-Driver is a set of PHP tools to build binary drivers. + +[](https://travis-ci.org/alchemy-fr/BinaryDriver) + +## Why ? + +You may wonder *Why building a library while I can use `exec` or +[symfony/process](https://github.com/symfony/Process) ?*. + +Here is a simple answer : + + - If you use `exec`, `passthru`, `system`, `proc_open` or any low level process + handling in PHP, you should have a look to [symfony/process](https://github.com/symfony/Process) + component that will provide an OO portable, testable and secure interface to + deal with this. It seems easy at first approach, but if you look at this + component [unit tests](https://github.com/symfony/Process/tree/master/Tests), + you will see that handling process in a simple interface can easily become a + nightmare. + + - If you already use symfony/process, and want to build binary drivers, you + will always have the same common set of methods and objects to configure, log, + debug, and generate processes. + This library is a base to implement any binary driver with this common set of + needs. + +## AbstractBinary + +`AbstractBinary` provides an abstract class to build a binary driver. It implements +`BinaryInterface`. + +Implementation example : + +```php +use Alchemy\BinaryDriver\AbstractBinary; + +class LsDriver extends AbstractBinary +{ + public function getName() + { + return 'ls driver'; + } +} + +$parser = new LsParser(); + +$driver = Driver::load('ls'); +// will return the output of `ls -a -l` +$parser->parse($driver->command(array('-a', '-l'))); +``` + +### Binary detection troubleshooting + +If you are using Nginx with PHP-fpm, executable detection may not work because of an empty `$_ENV['path']`. +To avoid having an empty `PATH` environment variable, add the following line to your `fastcgi_params` +config file (replace `/your/current/path/` with the output of `printenv PATH`) : + +``` +fastcgi_param PATH /your/current/path +``` + +## Logging + +You can log events with a `Psr\Log\LoggerInterface` by passing it in the load +method as second argument : + +```php +$logger = new Monolog\Logger('driver'); +$driver = Driver::load('ls', $logger); +``` + +## Listeners + +You can add custom listeners on processes. +Listeners are built on top of [Evenement](https://github.com/igorw/evenement) +and must implement `Alchemy\BinaryDriver\ListenerInterface`. + +```php +use Symfony\Component\Process\Process; + +class DebugListener extends EventEmitter implements ListenerInterface +{ + public function handle($type, $data) + { + foreach (explode(PHP_EOL, $data) as $line) { + $this->emit($type === Process::ERR ? 'error' : 'out', array($line)); + } + } + + public function forwardedEvents() + { + // forward 'error' events to the BinaryInterface + return array('error'); + } +} + +$listener = new DebugListener(); + +$driver = CustomImplementation::load('php'); + +// adds listener +$driver->listen($listener); + +$driver->on('error', function ($line) { + echo '[ERROR] ' . $line . PHP_EOL; +}); + +// removes listener +$driver->unlisten($listener); +``` + +### Bundled listeners + +The debug listener is a simple listener to catch `stderr` and `stdout` outputs ; +read the implementation for customization. + +```php +use Alchemy\BinaryDriver\Listeners\DebugListener; + +$driver = CustomImplementation::load('php'); +$driver->listen(new DebugListener()); + +$driver->on('debug', function ($line) { + echo $line; +}); +``` + +## ProcessBuilderFactory + +ProcessBuilderFactory ease spawning processes by generating Symfony [Process] +(http://symfony.com/doc/master/components/process.html) objects. + +```php +use Alchemy\BinaryDriver\ProcessBuilderFactory; + +$factory = new ProcessBuilderFactory('/usr/bin/php'); + +// return a Symfony\Component\Process\Process +$process = $factory->create('-v'); + +// echoes '/usr/bin/php' '-v' +echo $process->getCommandLine(); + +$process = $factory->create(array('-r', 'echo "Hello !";')); + +// echoes '/usr/bin/php' '-r' 'echo "Hello !";' +echo $process->getCommandLine(); +``` + +## Configuration + +A simple configuration object, providing an `ArrayAccess` and `IteratorAggregate` +interface. + +```php +use Alchemy\BinaryDriver\Configuration; + +$conf = new Configuration(array('timeout' => 0)); + +echo $conf->get('timeout'); + +if ($conf->has('param')) { + $conf->remove('param'); +} + +$conf->set('timeout', 20); + +$conf->all(); +``` + +Same example using the `ArrayAccess` interface : + +```php +use Alchemy\BinaryDriver\Configuration; + +$conf = new Configuration(array('timeout' => 0)); + +echo $conf['timeout']; + +if (isset($conf['param'])) { + unset($conf['param']); +} + +$conf['timeout'] = 20; +``` + +## License + +This project is released under the MIT license. diff --git a/README.md b/README.md index 58772de..1a79ef1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# php-ffmpeg +# PHP-FFMPEG [](https://github.com/PHP-FFMpeg/PHP-FFMpeg/actions/workflows/test.yaml) diff --git a/composer.json b/composer.json index 8850836..b49c59a 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,16 @@ "name": "php-ffmpeg/php-ffmpeg", "type": "library", "description": "FFMpeg PHP, an Object Oriented library to communicate with AVconv / ffmpeg", - "keywords": ["video processing", "video", "audio processing", "audio", "avconv", "ffmpeg", "avprobe", "ffprobe"], + "keywords": [ + "video processing", + "video", + "audio processing", + "audio", + "avconv", + "ffmpeg", + "avprobe", + "ffprobe" + ], "license": "MIT", "authors": [ { @@ -29,35 +38,37 @@ "name": "Jens Hausdorf", "email": "hello@jens-hausdorf.de", "homepage": "https://jens-hausdorf.de" + }, + { + "name": "Pascal Baljet", + "email": "pascal@protone.media", + "homepage": "https://protone.media" } ], "require": { - "php": ">=5.5.9", - "alchemy/binary-driver": "^1.5 || ~2.0.0 || ^5.0", - "evenement/evenement": "^3.0 || ^2.0 || ^1.0", - "neutron/temporary-filesystem": "^2.1.1 || ^3.0", - "symfony/cache": "^3.1 || ^4.0 || ^5.0 || ^6.0" + "php": "^8.0 || ^8.1", + "evenement/evenement": "^3.0", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "spatie/temporary-directory": "^2.0", + "symfony/process": "^5.4 || ^6.0", + "symfony/cache": "^5.4 || ^6.0" }, "suggest": { "php-ffmpeg/extras": "A compilation of common audio & video drivers for PHP-FFMpeg" }, "require-dev": { - "symfony/phpunit-bridge": "^5.0.4", - "symfony/process": "2.8 || 3.3" + "phpunit/phpunit": "^9.5.10" }, "autoload": { - "psr-0": { - "FFMpeg": "src" + "psr-4": { + "FFMpeg\\": "src/FFMpeg", + "Alchemy\\BinaryDriver\\": "src/Alchemy/BinaryDriver" } }, "autoload-dev": { "psr-4": { - "Tests\\FFMpeg\\": "tests" - } - }, - "extra": { - "branch-alias": { - "dev-master": "0.x-dev" + "Alchemy\\Tests\\BinaryDriver\\": "tests/Alchemy/BinaryDriver", + "Tests\\FFMpeg\\": "tests/FFMpeg" } } -} +} \ No newline at end of file diff --git a/docs/doctum.php b/docs/doctum.php deleted file mode 100644 index 3f0d9be..0000000 --- a/docs/doctum.php +++ /dev/null @@ -1,15 +0,0 @@ -files() - ->name('*.php') - ->in(__DIR__.'/../src/'); - -return new Doctum($iterator, [ - 'title' => 'PHP-FFMpeg API', - 'build_dir' => __DIR__.'/source/API/API', - 'cache_dir' => __DIR__.'/source/API/API/cache', -]); diff --git a/docs/generate-docs.sh b/docs/generate-docs.sh deleted file mode 100755 index c50293c..0000000 --- a/docs/generate-docs.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/bin/bash - -set -e - -SELF_DIR=$(dirname $0) -cd ${SELF_DIR} - -rm -f doctum.phar -rm -f doctum.phar.sha256 - -# Download the latest (5.1.x) release if the file does not exist -# Remove it to update your phar -curl -o doctum.phar https://doctum.long-term.support/releases/5.1/doctum.phar -curl -o doctum.phar.sha256 https://doctum.long-term.support/releases/5.1/doctum.phar.sha256 - -sha256sum --strict --check doctum.phar.sha256 -rm doctum.phar.sha256 - -# You can fetch the latest (5.1.x) version code here: -# https://doctum.long-term.support/releases/5.1/VERSION - - -# Show the version to inform users of the script -php doctum.phar --version -php doctum.phar update --force --ignore-parse-errors doctum.php -v diff --git a/docs/source/API/API/FFMpeg.html b/docs/source/API/API/FFMpeg.html deleted file mode 100644 index 30b55e4..0000000 --- a/docs/source/API/API/FFMpeg.html +++ /dev/null @@ -1,50 +0,0 @@ - - -
- - -| FFMpeg | -- | -
| FFMpegServiceProvider | -- | -
| FFProbe | -- | -
| AspectRatio | -- | -
| Dimension | -Dimension object, used for manipulating width and height couples | -
| FrameRate | -- | -
| Point | -- | -
| TimeCode | -- | -
class - AspectRatio
- - -| AR_4_3 | -
- - -- - |
-
| AR_16_9 | -
- - -- - |
-
| AR_3_2 | -
- - -- - |
-
| AR_5_3 | -
- - -- - |
-
| AR_5_4 | -
- - -- - |
-
| AR_1_1 | -
- - -- - |
-
| AR_1_DOT_85_1 | -
- - -- - |
-
| AR_2_DOT_39_1 | -
- - -- - |
-
| AR_ROTATED_3_4 | -
- - -- - |
-
| AR_ROTATED_9_16 | -
- - -- - |
-
| AR_ROTATED_2_3 | -
- - -- - |
-
| AR_ROTATED_3_5 | -
- - -- - |
-
| AR_ROTATED_4_5 | -
- - -- - |
-
| AR_ROTATED_1_DOT_85 | -
- - -- - |
-
| AR_ROTATED_2_DOT_39 | -
- - -- - |
-
| - - | -
- __construct($ratio)
- - - |
- - |
| - float - | -
- getValue()
- Returns the value of the ratio. - |
- - |
| - Integer - | -
- calculateWidth(Integer $height, Integer $modulus = 1)
- Computes the best width for given height and modulus. - |
- - |
| - Integer - | -
- calculateHeight(Integer $width, Integer $modulus = 1)
- Computes the best height for given width and modulus. - |
- - |
| - static AspectRatio - | -
- create(Dimension $dimension, Boolean $forceStandards = true)
- Creates a ratio based on Dimension. - |
- - |
public
- __construct($ratio)
- -
--
- - public float
- getValue()
- Returns the value of the ratio.
--
- - public Integer
- calculateWidth(Integer $height, Integer $modulus = 1)
- Computes the best width for given height and modulus.
--
- - public Integer
- calculateHeight(Integer $width, Integer $modulus = 1)
- Computes the best height for given width and modulus.
--
- - static public AspectRatio
- create(Dimension $dimension, Boolean $forceStandards = true)
- Creates a ratio based on Dimension.
-The strategy parameter forces by default to use standardized ratios. If -custom ratio need to be used, disable it.
- -class - Dimension
- -Dimension object, used for manipulating width and height couples
--
-| - - | -
- __construct(integer $width, integer $height)
- - - |
- - |
| - integer - | -
- getWidth()
- Returns width. - |
- - |
| - integer - | -
- getHeight()
- Returns height. - |
- - |
| - AspectRatio - | -
- getRatio(type $forceStandards = true)
- Returns the ratio. - |
- - |
public
- __construct(integer $width, integer $height)
- -
--
- - public integer
- getWidth()
- Returns width.
--
- - public integer
- getHeight()
- Returns height.
--
- - public AspectRatio
- getRatio(type $forceStandards = true)
- Returns the ratio.
--
- -class - FrameRate
- - - - -| - - | -
- __construct($value)
- - - |
- - |
| - float - | -
- getValue()
- - - |
- - |
public
- __construct($value)
- -
--
- - public float
- getValue()
- -
--
- -class - Point
- - - - -| - - | -
- __construct($x, $y)
- - - |
- - |
| - integer - | -
- getX()
- - - |
- - |
| - integer - | -
- getY()
- - - |
- - |
public
- __construct($x, $y)
- -
--
- - public integer
- getX()
- -
--
- - public integer
- getY()
- -
--
- -class - TimeCode
- - - - -| - - | -
- __construct($hours, $minutes, $seconds, $frames)
- - - |
- - |
| - - | -
- __toString()
- - - |
- - |
| - static TimeCode - | -
- fromString(string $timecode)
- Creates timecode from string. - |
- - |
| - static TimeCode - | -
- fromSeconds(float $quantity)
- Creates timecode from number of seconds. - |
- - |
public
- __construct($hours, $minutes, $seconds, $frames)
- -
--
- - public
- __toString()
- -
--
- - static public TimeCode
- fromString(string $timecode)
- Creates timecode from string.
--
- - static public TimeCode
- fromSeconds(float $quantity)
- Creates timecode from number of seconds.
--
- -| FFMpegDriver | -- | -
| FFProbeDriver | -- | -
class - FFMpegDriver extends AbstractBinary
- - - - -| - - | -
- getName()
- {@inheritdoc} - |
- - |
| - static FFMpegDriver - | -
- create(LoggerInterface $logger = null, array|Configuration $configuration = array())
- Creates an FFMpegDriver. - |
- - |
public
- getName()
- {@inheritdoc}
--
- - static public FFMpegDriver
- create(LoggerInterface $logger = null, array|Configuration $configuration = array())
- Creates an FFMpegDriver.
--
- -class - FFProbeDriver extends AbstractBinary
- - - - -| - - | -
- getName()
- {@inheritdoc} - |
- - |
| - static FFProbeDriver - | -
- create(array|ConfigurationInterface $configuration, LoggerInterface $logger = null)
- Creates an FFProbeDriver. - |
- - |
public
- getName()
- {@inheritdoc}
--
- - static public FFProbeDriver
- create(array|ConfigurationInterface $configuration, LoggerInterface $logger = null)
- Creates an FFProbeDriver.
--
- -| ExecutableNotFoundException | -- | -
| InvalidArgumentException | -- | -
| LogicException | -- | -
| RuntimeException | -- | -
| ExceptionInterface | -- | -
interface - ExceptionInterface
- - - - -class - ExecutableNotFoundException extends RuntimeException
- - - - -class - InvalidArgumentException extends InvalidArgumentException implements - ExceptionInterface
- - - - -class - LogicException extends LogicException implements - ExceptionInterface
- - - - -class - RuntimeException extends RuntimeException implements - ExceptionInterface
- - - - -class - FFMpeg
- - - - -| - - | -
- __construct(FFMpegDriver $ffmpeg, FFProbe $ffprobe)
- - - |
- - |
| - FFMpeg - | -
- setFFProbe(FFProbe $ffprobe)
- Sets FFProbe. - |
- - |
| - FFProbe - | -
- getFFProbe()
- Gets FFProbe. - |
- - |
| - FFMpeg - | -
- setFFMpegDriver(FFMpegDriver $ffmpeg)
- Sets the ffmpeg driver. - |
- - |
| - FFMpegDriver - | -
- getFFMpegDriver()
- Gets the ffmpeg driver. - |
- - |
| - Audio|Video - | -
- open(string $pathfile)
- Opens a file in order to be processed. - |
- - |
| - static FFMpeg - | -
- create(array|ConfigurationInterface $configuration = array(), LoggerInterface $logger = null, FFProbe $probe = null)
- Creates a new FFMpeg instance. - |
- - |
public
- __construct(FFMpegDriver $ffmpeg, FFProbe $ffprobe)
- -
--
- - public FFMpeg
- setFFProbe(FFProbe $ffprobe)
- Sets FFProbe.
--
- - public FFProbe
- getFFProbe()
- Gets FFProbe.
--
- - public FFMpeg
- setFFMpegDriver(FFMpegDriver $ffmpeg)
- Sets the ffmpeg driver.
--
- - public FFMpegDriver
- getFFMpegDriver()
- Gets the ffmpeg driver.
--
- - public Audio|Video
- open(string $pathfile)
- Opens a file in order to be processed.
--
- - static public FFMpeg
- create(array|ConfigurationInterface $configuration = array(), LoggerInterface $logger = null, FFProbe $probe = null)
- Creates a new FFMpeg instance.
--
- -class - FFMpegServiceProvider implements - ServiceProviderInterface
- - - - -| - - | -
- register(Application $app)
- - - |
- - |
| - - | -
- boot(Application $app)
- - - |
- - |
public
- register(Application $app)
- -
--
- - public
- boot(Application $app)
- -
--
- -class - FFProbe
- - -| TYPE_STREAMS | -
- - -- - |
-
| TYPE_FORMAT | -
- - -- - |
-
| - - | -
- __construct(FFProbeDriver $ffprobe, Cache $cache)
- - - |
- - |
| - OutputParserInterface - | -
- getParser()
- - - |
- - |
| - FFProbe - | -
- setParser(OutputParserInterface $parser)
- - - |
- - |
| - FFProbeDriver - | -
- getFFProbeDriver()
- - - |
- - |
| - FFProbe - | -
- setFFProbeDriver(FFProbeDriver $ffprobe)
- - - |
- - |
| - FFProbe - | -
- setOptionsTester(OptionsTesterInterface $tester)
- - - |
- - |
| - OptionsTesterInterface - | -
- getOptionsTester()
- - - |
- - |
| - FFProbe - | -
- setCache(Cache $cache)
- - - |
- - |
| - Cache - | -
- getCache()
- - - |
- - |
| - MapperInterface - | -
- getMapper()
- - - |
- - |
| - FFProbe - | -
- setMapper(MapperInterface $mapper)
- - - |
- - |
| - Format - | -
- format(string $pathfile)
- - - |
- - |
| - StreamCollection - | -
- streams(string $pathfile)
- - - |
- - |
| - static FFProbe - | -
- create(array|ConfigurationInterface $configuration = array(), LoggerInterface $logger = null, Cache $cache = null)
- - - |
- - |
public
- __construct(FFProbeDriver $ffprobe, Cache $cache)
- -
--
- - public OutputParserInterface
- getParser()
- -
--
- - public FFProbe
- setParser(OutputParserInterface $parser)
- -
--
- - public FFProbeDriver
- getFFProbeDriver()
- -
--
- - public FFProbe
- setFFProbeDriver(FFProbeDriver $ffprobe)
- -
--
- - public FFProbe
- setOptionsTester(OptionsTesterInterface $tester)
- -
--
- - public OptionsTesterInterface
- getOptionsTester()
- -
--
- - public FFProbe
- setCache(Cache $cache)
- -
--
- - public Cache
- getCache()
- -
--
- - public MapperInterface
- getMapper()
- -
--
- - public FFProbe
- setMapper(MapperInterface $mapper)
- -
--
- - public Format
- format(string $pathfile)
- -
--
- - public StreamCollection
- streams(string $pathfile)
- -
--
- - static public FFProbe
- create(array|ConfigurationInterface $configuration = array(), LoggerInterface $logger = null, Cache $cache = null)
- -
--
- -| AbstractData | -- | -
| Format | -- | -
| Stream | -- | -
| StreamCollection | -- | -
abstract class - AbstractData implements - Countable
- - - - -| - - | -
- __construct(array $properties)
- - - |
- - |
| - Boolean - | -
- has(string $property)
- Returns true if data has property. - |
- - |
| - mixed - | -
- get(string $property)
- Returns the property value given its name. - |
- - |
| - AbstractData - | -
- set(string $property, mixed $value)
- Sets the property value given its name. - |
- - |
| - array - | -
- keys()
- Returns all property names. - |
- - |
| - array - | -
- all()
- Returns all properties and their values. - |
- - |
| - - | -
- count()
- {@inheritdoc} - |
- - |
public
- __construct(array $properties)
- -
--
- - public Boolean
- has(string $property)
- Returns true if data has property.
--
- - public mixed
- get(string $property)
- Returns the property value given its name.
--
- - public AbstractData
- set(string $property, mixed $value)
- Sets the property value given its name.
--
- - public array
- keys()
- Returns all property names.
--
- - public array
- all()
- Returns all properties and their values.
--
- - public
- count()
- {@inheritdoc}
--
- -class - Format extends AbstractData
- - - - -| - - | -
- __construct(array $properties)
- - - |
- from AbstractData | -
| - Boolean - | -
- has(string $property)
- Returns true if data has property. - |
- from AbstractData | -
| - mixed - | -
- get(string $property)
- Returns the property value given its name. - |
- from AbstractData | -
| - AbstractData - | -
- set(string $property, mixed $value)
- Sets the property value given its name. - |
- from AbstractData | -
| - array - | -
- keys()
- Returns all property names. - |
- from AbstractData | -
| - array - | -
- all()
- Returns all properties and their values. - |
- from AbstractData | -
| - - | -
- count()
- {@inheritdoc} - |
- from AbstractData | -
public
- __construct(array $properties)
- -
--
- - public Boolean
- has(string $property)
- Returns true if data has property.
--
- - public mixed
- get(string $property)
- Returns the property value given its name.
--
- - public AbstractData
- set(string $property, mixed $value)
- Sets the property value given its name.
--
- - public array
- keys()
- Returns all property names.
--
- - public array
- all()
- Returns all properties and their values.
--
- - public
- count()
- {@inheritdoc}
--
- -class - Stream extends AbstractData
- - - - -| - - | -
- __construct(array $properties)
- - - |
- from AbstractData | -
| - Boolean - | -
- has(string $property)
- Returns true if data has property. - |
- from AbstractData | -
| - mixed - | -
- get(string $property)
- Returns the property value given its name. - |
- from AbstractData | -
| - AbstractData - | -
- set(string $property, mixed $value)
- Sets the property value given its name. - |
- from AbstractData | -
| - array - | -
- keys()
- Returns all property names. - |
- from AbstractData | -
| - array - | -
- all()
- Returns all properties and their values. - |
- from AbstractData | -
| - - | -
- count()
- {@inheritdoc} - |
- from AbstractData | -
| - Boolean - | -
- isAudio()
- Returns true if the stream is an audio stream. - |
- - |
| - Boolean - | -
- isVideo()
- Returns true if the stream is a video stream. - |
- - |
| - Dimension - | -
- getDimensions()
- Returns the dimension of the video stream. - |
- - |
public
- __construct(array $properties)
- -
--
- - public Boolean
- has(string $property)
- Returns true if data has property.
--
- - public mixed
- get(string $property)
- Returns the property value given its name.
--
- - public AbstractData
- set(string $property, mixed $value)
- Sets the property value given its name.
--
- - public array
- keys()
- Returns all property names.
--
- - public array
- all()
- Returns all properties and their values.
--
- - public
- count()
- {@inheritdoc}
--
- - public Boolean
- isAudio()
- Returns true if the stream is an audio stream.
--
- - public Boolean
- isVideo()
- Returns true if the stream is a video stream.
--
- - public Dimension
- getDimensions()
- Returns the dimension of the video stream.
--
- -class - StreamCollection implements - Countable, IteratorAggregate
- - - - -| - - | -
- __construct(array $streams = array())
- - - |
- - |
| - null|Stream - | -
- first()
- Returns the first stream of the collection, null if the collection is empty. - |
- - |
| - StreamCollection - | -
- add(Stream $stream)
- Adds a stream to the collection. - |
- - |
| - StreamCollection - | -
- videos()
- Returns a new StreamCollection with only video streams. - |
- - |
| - StreamCollection - | -
- audios()
- Returns a new StreamCollection with only audio streams. - |
- - |
| - - | -
- count()
- {@inheritdoc} - |
- - |
| - array - | -
- all()
- Returns the array of contained streams. - |
- - |
| - - | -
- getIterator()
- {@inheritdoc} - |
- - |
public
- __construct(array $streams = array())
- -
--
- - public null|Stream
- first()
- Returns the first stream of the collection, null if the collection is empty.
--
- - public StreamCollection
- add(Stream $stream)
- Adds a stream to the collection.
--
- - public StreamCollection
- videos()
- Returns a new StreamCollection with only video streams.
--
- - public StreamCollection
- audios()
- Returns a new StreamCollection with only audio streams.
--
- - public
- count()
- {@inheritdoc}
--
- - public array
- all()
- Returns the array of contained streams.
--
- - public
- getIterator()
- {@inheritdoc}
--
- -class - Mapper implements - MapperInterface
- - - - -| - Format|Stream - | -
- map(string $type, string $data)
- Maps data given its type. - |
- - |
public Format|Stream
- map(string $type, string $data)
- Maps data given its type.
--
- -interface - MapperInterface
- - - - -| - Format|Stream - | -
- map(string $type, string $data)
- Maps data given its type. - |
- - |
public Format|Stream
- map(string $type, string $data)
- Maps data given its type.
--
- -class - OptionsTester implements - OptionsTesterInterface
- - - - -| - - | -
- __construct(FFProbeDriver $ffprobe, Cache $cache)
- - - |
- - |
| - Boolean - | -
- has(string $name)
- Tells if the given option is supported by ffprobe. - |
- - |
public
- __construct(FFProbeDriver $ffprobe, Cache $cache)
- -
--
- - public Boolean
- has(string $name)
- Tells if the given option is supported by ffprobe.
--
- -interface - OptionsTesterInterface
- - - - -| - Boolean - | -
- has(string $name)
- Tells if the given option is supported by ffprobe. - |
- - |
public Boolean
- has(string $name)
- Tells if the given option is supported by ffprobe.
--
- -class - OutputParser implements - OutputParserInterface
- - - - -| - array - | -
- parse(string $type, string $data)
- Parses ffprobe raw output. - |
- - |
public array
- parse(string $type, string $data)
- Parses ffprobe raw output.
--
- -interface - OutputParserInterface
- - - - -| - array - | -
- parse(string $type, string $data)
- Parses ffprobe raw output. - |
- - |
public array
- parse(string $type, string $data)
- Parses ffprobe raw output.
--
- -| AudioFilters | -- | -
| AudioResamplableFilter | -- | -
| SimpleFilter | -- | -
| AudioFilterInterface | -- | -
interface - AudioFilterInterface implements - FilterInterface
- - - - -| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- from FilterInterface | -
| - array - | -
- apply(Audio $audio, AudioInterface $format)
- Applies the filter on the the Audio media given an format. - |
- - |
public integer
- getPriority()
- Returns the priority of the filter.
--
- - public array
- apply(Audio $audio, AudioInterface $format)
- Applies the filter on the the Audio media given an format.
--
- -class - AudioFilters
- - - - -| - - | -
- __construct(Audio $media)
- - - |
- - |
| - AudioFilters - | -
- resample(Integer $rate)
- Resamples the audio file. - |
- - |
public
- __construct(Audio $media)
- -
--
- - public AudioFilters
- resample(Integer $rate)
- Resamples the audio file.
--
- -class - AudioResamplableFilter implements - AudioFilterInterface
- - - - -| - - | -
- __construct($rate, $priority)
- - - |
- - |
| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- - |
| - Integer - | -
- getRate()
- - - |
- - |
| - array - | -
- apply(Audio $audio, AudioInterface $format)
- Applies the filter on the the Audio media given an format. - |
- - |
public
- __construct($rate, $priority)
- -
--
- - public integer
- getPriority()
- Returns the priority of the filter.
--
- - public Integer
- getRate()
- -
--
- - public array
- apply(Audio $audio, AudioInterface $format)
- Applies the filter on the the Audio media given an format.
--
- -class - SimpleFilter implements - AudioFilterInterface
- - - - -| - - | -
- __construct(array $params, $priority)
- - - |
- - |
| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- - |
| - array - | -
- apply(Audio $audio, AudioInterface $format)
- Applies the filter on the the Audio media given an format. - |
- - |
public
- __construct(array $params, $priority)
- -
--
- - public integer
- getPriority()
- Returns the priority of the filter.
--
- - public array
- apply(Audio $audio, AudioInterface $format)
- Applies the filter on the the Audio media given an format.
--
- -interface - FilterInterface
- - - - -| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- - |
public integer
- getPriority()
- Returns the priority of the filter.
--
- -class - FiltersCollection implements - Countable, IteratorAggregate
- - - - -| - FiltersCollection - | -
- add(FilterInterface $filter)
- - - |
- - |
| - - | -
- count()
- {@inheritdoc} - |
- - |
| - - | -
- getIterator()
- {@inheritdoc} - |
- - |
public FiltersCollection
- add(FilterInterface $filter)
- -
--
- - public
- count()
- {@inheritdoc}
--
- - public
- getIterator()
- {@inheritdoc}
--
- -| DisplayRatioFixerFilter | -- | -
| FrameFilters | -- | -
| FrameFilterInterface | -- | -
class - DisplayRatioFixerFilter implements - FrameFilterInterface
- - - - -| - - | -
- __construct($priority)
- - - |
- - |
| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- - |
| - - | -
- apply(Frame $frame)
- - - |
- - |
public
- __construct($priority)
- -
--
- - public integer
- getPriority()
- Returns the priority of the filter.
--
- - public
- apply(Frame $frame)
- -
--
- -interface - FrameFilterInterface implements - FilterInterface
- - - - -| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- from FilterInterface | -
| - - | -
- apply(Frame $frame)
- - - |
- - |
public integer
- getPriority()
- Returns the priority of the filter.
--
- - public
- apply(Frame $frame)
- -
--
- -class - FrameFilters
- - - - -| - - | -
- __construct(Frame $frame)
- - - |
- - |
| - FrameFilters - | -
- fixDisplayRatio()
- Fixes the display ratio of the output frame. - |
- - |
public
- __construct(Frame $frame)
- -
--
- - public FrameFilters
- fixDisplayRatio()
- Fixes the display ratio of the output frame.
-In case the sample ratio and display ratio are different, image may be -anamorphozed. This filter fixes this by specifying the output size.
- -| ClipFilter | -- | -
| CustomFilter | -- | -
| FrameRateFilter | -- | -
| ResizeFilter | -- | -
| RotateFilter | -- | -
| SynchronizeFilter | -Synchronizes audio and video in case of desynchronized movies. | -
| VideoFilters | -- | -
| WatermarkFilter | -- | -
| VideoFilterInterface | -- | -
class - ClipFilter implements - VideoFilterInterface
- - - - -| - - | -
- __construct(TimeCode $start, TimeCode $duration = null, $priority)
- - - |
- - |
| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- - |
| - TimeCode - | -
- getStart()
- - - |
- - |
| - TimeCode - | -
- getDuration()
- - - |
- - |
| - array - | -
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format. - |
- - |
public
- __construct(TimeCode $start, TimeCode $duration = null, $priority)
- -
--
- - public integer
- getPriority()
- Returns the priority of the filter.
--
- - public TimeCode
- getStart()
- -
--
- - public TimeCode
- getDuration()
- -
--
- - public array
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format.
--
- -class - CustomFilter implements - VideoFilterInterface
- - - - -| - - | -
- __construct(string $filter, int $priority)
- A custom filter, useful if you want to build complex filters - |
- - |
| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- - |
| - array - | -
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format. - |
- - |
public
- __construct(string $filter, int $priority)
- A custom filter, useful if you want to build complex filters
--
- - public integer
- getPriority()
- Returns the priority of the filter.
--
- - public array
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format.
--
- -class - FrameRateFilter implements - VideoFilterInterface
- - - - -| - - | -
- __construct(FrameRate $rate, $gop, $priority)
- - - |
- - |
| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- - |
| - FrameRate - | -
- getFrameRate()
- Returns the frame rate. - |
- - |
| - Integer - | -
- getGOP()
- Returns the GOP size. - |
- - |
| - array - | -
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format. - |
- - |
public
- __construct(FrameRate $rate, $gop, $priority)
- -
--
- - public integer
- getPriority()
- Returns the priority of the filter.
--
- - public FrameRate
- getFrameRate()
- Returns the frame rate.
--
- - public Integer
- getGOP()
- Returns the GOP size.
--
- - public array
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format.
--
- -class - ResizeFilter implements - VideoFilterInterface
- - -| RESIZEMODE_FIT | -
- fits to the dimensions, might introduce anamorphosis -- - |
-
| RESIZEMODE_INSET | -
- resizes the video inside the given dimension, no anamorphosis -- - |
-
| RESIZEMODE_SCALE_WIDTH | -
- resizes the video to fit the dimension width, no anamorphosis -- - |
-
| RESIZEMODE_SCALE_HEIGHT | -
- resizes the video to fit the dimension height, no anamorphosis -- - |
-
| - - | -
- __construct(Dimension $dimension, $mode = self::RESIZEMODE_FIT, $forceStandards = true, $priority)
- - - |
- - |
| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- - |
| - Dimension - | -
- getDimension()
- - - |
- - |
| - string - | -
- getMode()
- - - |
- - |
| - Boolean - | -
- areStandardsForced()
- - - |
- - |
| - array - | -
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format. - |
- - |
public
- __construct(Dimension $dimension, $mode = self::RESIZEMODE_FIT, $forceStandards = true, $priority)
- -
--
- - public integer
- getPriority()
- Returns the priority of the filter.
--
- - public Dimension
- getDimension()
- -
--
- - public string
- getMode()
- -
--
- - public Boolean
- areStandardsForced()
- -
--
- - public array
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format.
--
- -class - RotateFilter implements - VideoFilterInterface
- - -| ROTATE_90 | -
- - -- - |
-
| ROTATE_180 | -
- - -- - |
-
| ROTATE_270 | -
- - -- - |
-
| - - | -
- __construct($angle, $priority)
- - - |
- - |
| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- - |
| - Dimension - | -
- getAngle()
- - - |
- - |
| - array - | -
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format. - |
- - |
public
- __construct($angle, $priority)
- -
--
- - public integer
- getPriority()
- Returns the priority of the filter.
--
- - public Dimension
- getAngle()
- -
--
- - public array
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format.
--
- -class - SynchronizeFilter implements - VideoFilterInterface
- -Synchronizes audio and video in case of desynchronized movies.
--
-| - - | -
- __construct($priority = 12)
- - - |
- - |
| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- - |
| - array - | -
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format. - |
- - |
public
- __construct($priority = 12)
- -
--
- - public integer
- getPriority()
- Returns the priority of the filter.
--
- - public array
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format.
--
- -interface - VideoFilterInterface implements - FilterInterface
- - - - -| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- from FilterInterface | -
| - array - | -
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format. - |
- - |
public integer
- getPriority()
- Returns the priority of the filter.
--
- - public array
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format.
--
- -class - VideoFilters extends AudioFilters
- - - - -| - - | -
- __construct(Video $media)
- - - |
- - |
| - AudioFilters - | -
- resample(Integer $rate)
- Resamples the audio file. - |
- from AudioFilters | -
| - VideoFilters - | -
- resize(Dimension $dimension, string $mode = ResizeFilter::RESIZEMODE_FIT, Boolean $forceStandards = true)
- Resizes a video to a given dimension. - |
- - |
| - VideoFilters - | -
- framerate(FrameRate $framerate, type $gop)
- Changes the video framerate. - |
- - |
| - VideoFilters - | -
- synchronize()
- Synchronizes audio and video. - |
- - |
| - VideoFilters - | -
- clip(TimeCode $start, TimeCode $duration = null)
- Clips (cuts) the video. - |
- - |
| - AudioFilters - | -
- audioResample(Integer $rate)
- Resamples the audio file. - |
- - |
| - - | -
- rotate($angle)
- - - |
- - |
| - $this - | -
- watermark(string $imagePath, array $coordinates = array())
- - - |
- - |
public
- __construct(Video $media)
- -
--
- - public AudioFilters
- resample(Integer $rate)
- Resamples the audio file.
--
- - public VideoFilters
- resize(Dimension $dimension, string $mode = ResizeFilter::RESIZEMODE_FIT, Boolean $forceStandards = true)
- Resizes a video to a given dimension.
--
- - public VideoFilters
- framerate(FrameRate $framerate, type $gop)
- Changes the video framerate.
--
- - public VideoFilters
- synchronize()
- Synchronizes audio and video.
--
- - public VideoFilters
- clip(TimeCode $start, TimeCode $duration = null)
- Clips (cuts) the video.
--
- - public AudioFilters
- audioResample(Integer $rate)
- Resamples the audio file.
--
- - public
- rotate($angle)
- -
--
- - public $this
- watermark(string $imagePath, array $coordinates = array())
- -
--
- -class - WatermarkFilter implements - VideoFilterInterface
- - - - -| - - | -
- __construct($watermarkPath, array $coordinates = array(), $priority)
- - - |
- - |
| - integer - | -
- getPriority()
- Returns the priority of the filter. - |
- - |
| - array - | -
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format. - |
- - |
public
- __construct($watermarkPath, array $coordinates = array(), $priority)
- -
--
- - public integer
- getPriority()
- Returns the priority of the filter.
--
- - public array
- apply(Video $video, VideoInterface $format)
- Applies the filter on the the Video media given an format.
--
- -| AudioInterface | -- | -
| FormatInterface | -- | -
| FrameInterface | -- | -
| ProgressableInterface | -- | -
| VideoInterface | -- | -
| Aac | -The AAC audio format | -
| DefaultAudio | -- | -
| Flac | -The Flac audio format | -
| Mp3 | -The MP3 audio format | -
| Vorbis | -The Vorbis audio format | -
| Wav | -The WAV audio format | -
class - Aac extends DefaultAudio
- -The AAC audio format
--
-| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from DefaultAudio | -
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from DefaultAudio | -
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultAudio | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from DefaultAudio | -
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultAudio | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from DefaultAudio | -
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- from DefaultAudio | -
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- from DefaultAudio | -
| - string - | -
- getPasses()
- Returns the number of passes. - |
- from DefaultAudio | -
| - - | -
- __construct()
- - - |
- - |
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public string
- getPasses()
- Returns the number of passes.
--
- - public
- __construct()
- -
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- -abstract class - DefaultAudio extends EventEmitter implements - AudioInterface, ProgressableInterface
- - - - -| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- - |
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- - |
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- - |
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- - |
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- - |
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- - |
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- - |
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- - |
| - string - | -
- getPasses()
- Returns the number of passes. - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public string
- getPasses()
- Returns the number of passes.
--
- -class - Flac extends DefaultAudio
- -The Flac audio format
--
-| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from DefaultAudio | -
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from DefaultAudio | -
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultAudio | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from DefaultAudio | -
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultAudio | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from DefaultAudio | -
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- from DefaultAudio | -
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- from DefaultAudio | -
| - string - | -
- getPasses()
- Returns the number of passes. - |
- from DefaultAudio | -
| - - | -
- __construct()
- - - |
- - |
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public string
- getPasses()
- Returns the number of passes.
--
- - public
- __construct()
- -
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- -class - Mp3 extends DefaultAudio
- -The MP3 audio format
--
-| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from DefaultAudio | -
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from DefaultAudio | -
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultAudio | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from DefaultAudio | -
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultAudio | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from DefaultAudio | -
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- from DefaultAudio | -
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- from DefaultAudio | -
| - string - | -
- getPasses()
- Returns the number of passes. - |
- from DefaultAudio | -
| - - | -
- __construct()
- - - |
- - |
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public string
- getPasses()
- Returns the number of passes.
--
- - public
- __construct()
- -
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- -class - Vorbis extends DefaultAudio
- -The Vorbis audio format
--
-| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- - |
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from DefaultAudio | -
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultAudio | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from DefaultAudio | -
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultAudio | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from DefaultAudio | -
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- from DefaultAudio | -
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- from DefaultAudio | -
| - string - | -
- getPasses()
- Returns the number of passes. - |
- from DefaultAudio | -
| - - | -
- __construct()
- - - |
- - |
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public string
- getPasses()
- Returns the number of passes.
--
- - public
- __construct()
- -
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- -class - Wav extends DefaultAudio
- -The WAV audio format
--
-| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from DefaultAudio | -
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from DefaultAudio | -
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultAudio | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from DefaultAudio | -
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultAudio | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from DefaultAudio | -
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- from DefaultAudio | -
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- from DefaultAudio | -
| - string - | -
- getPasses()
- Returns the number of passes. - |
- from DefaultAudio | -
| - - | -
- __construct()
- - - |
- - |
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public string
- getPasses()
- Returns the number of passes.
--
- - public
- __construct()
- -
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- -interface - AudioInterface implements - FormatInterface
- - - - -| - string - | -
- getPasses()
- Returns the number of passes. - |
- from FormatInterface | -
| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from FormatInterface | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- - |
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- - |
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- - |
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- - |
public string
- getPasses()
- Returns the number of passes.
--
- - public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- -interface - FormatInterface
- - - - -| - string - | -
- getPasses()
- Returns the number of passes. - |
- - |
| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- - |
public string
- getPasses()
- Returns the number of passes.
--
- - public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- -interface - FrameInterface implements - FormatInterface
- - - - -| - string - | -
- getPasses()
- Returns the number of passes. - |
- from FormatInterface | -
| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from FormatInterface | -
public string
- getPasses()
- Returns the number of passes.
--
- - public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- -| AbstractProgressListener | -- | -
| AudioProgressListener | -Parses ffmpeg stderr progress information. | -
| VideoProgressListener | -Parses ffmpeg stderr progress information for video files. | -
abstract class - AbstractProgressListener extends EventEmitter implements - ListenerInterface
- - - - -| - - | -
- __construct(FFProbe $ffprobe, string $pathfile, integer $currentPass, integer $totalPass)
- - - |
- - |
| - FFProbe - | -
- getFFProbe()
- - - |
- - |
| - string - | -
- getPathfile()
- - - |
- - |
| - integer - | -
- getCurrentPass()
- - - |
- - |
| - integer - | -
- getTotalPass()
- - - |
- - |
| - - | -
- handle($type, $data)
- {@inheritdoc} - |
- - |
| - - | -
- forwardedEvents()
- {@inheritdoc} - |
- - |
public
- __construct(FFProbe $ffprobe, string $pathfile, integer $currentPass, integer $totalPass)
- -
--
- - public FFProbe
- getFFProbe()
- -
--
- - public string
- getPathfile()
- -
--
- - public integer
- getCurrentPass()
- -
--
- - public integer
- getTotalPass()
- -
--
- - public
- handle($type, $data)
- {@inheritdoc}
--
- - public
- forwardedEvents()
- {@inheritdoc}
--
- -class - AudioProgressListener extends AbstractProgressListener
- -Parses ffmpeg stderr progress information.
-An example:
- -- size= 3552kB time=00:03:47.29 bitrate= 128.0kbits/s -- -
| - - | -
- __construct(FFProbe $ffprobe, string $pathfile, integer $currentPass, integer $totalPass)
- - - |
- from AbstractProgressListener | -
| - FFProbe - | -
- getFFProbe()
- - - |
- from AbstractProgressListener | -
| - string - | -
- getPathfile()
- - - |
- from AbstractProgressListener | -
| - integer - | -
- getCurrentPass()
- - - |
- from AbstractProgressListener | -
| - integer - | -
- getTotalPass()
- - - |
- from AbstractProgressListener | -
| - - | -
- handle($type, $data)
- {@inheritdoc} - |
- from AbstractProgressListener | -
| - - | -
- forwardedEvents()
- {@inheritdoc} - |
- from AbstractProgressListener | -
| - - | -
- getPattern()
- - - |
- - |
public
- __construct(FFProbe $ffprobe, string $pathfile, integer $currentPass, integer $totalPass)
- -
--
- - public FFProbe
- getFFProbe()
- -
--
- - public string
- getPathfile()
- -
--
- - public integer
- getCurrentPass()
- -
--
- - public integer
- getTotalPass()
- -
--
- - public
- handle($type, $data)
- {@inheritdoc}
--
- - public
- forwardedEvents()
- {@inheritdoc}
--
- - public
- getPattern()
- -
--
- -class - VideoProgressListener extends AbstractProgressListener
- -Parses ffmpeg stderr progress information for video files.
-An example:
- -- frame= 171 fps=0.0 q=10.0 size= 18kB time=00:00:05.72 bitrate= 26.4kbits/s dup=8 drop=0 -- -
| - - | -
- __construct(FFProbe $ffprobe, string $pathfile, integer $currentPass, integer $totalPass)
- - - |
- from AbstractProgressListener | -
| - FFProbe - | -
- getFFProbe()
- - - |
- from AbstractProgressListener | -
| - string - | -
- getPathfile()
- - - |
- from AbstractProgressListener | -
| - integer - | -
- getCurrentPass()
- - - |
- from AbstractProgressListener | -
| - integer - | -
- getTotalPass()
- - - |
- from AbstractProgressListener | -
| - - | -
- handle($type, $data)
- {@inheritdoc} - |
- from AbstractProgressListener | -
| - - | -
- forwardedEvents()
- {@inheritdoc} - |
- from AbstractProgressListener | -
| - - | -
- getPattern()
- - - |
- - |
public
- __construct(FFProbe $ffprobe, string $pathfile, integer $currentPass, integer $totalPass)
- -
--
- - public FFProbe
- getFFProbe()
- -
--
- - public string
- getPathfile()
- -
--
- - public integer
- getCurrentPass()
- -
--
- - public integer
- getTotalPass()
- -
--
- - public
- handle($type, $data)
- {@inheritdoc}
--
- - public
- forwardedEvents()
- {@inheritdoc}
--
- - public
- getPattern()
- -
--
- -interface - ProgressableInterface implements - EventEmitterInterface
- - - - -| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- - |
public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- -| DefaultVideo | -The abstract default Video format | -
| Ogg | -The Ogg video format | -
| WMV | -The WMV video format | -
| WMV3 | -The WMV video format | -
| WebM | -The WebM video format | -
| X264 | -The X264 video format | -
abstract class - DefaultVideo extends DefaultAudio implements - VideoInterface
- -The abstract default Video format
--
-| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from DefaultAudio | -
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from DefaultAudio | -
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultAudio | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from DefaultAudio | -
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultAudio | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from DefaultAudio | -
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- from DefaultAudio | -
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- - |
| - string - | -
- getPasses()
- Returns the number of passes. - |
- from DefaultAudio | -
| - integer - | -
- getKiloBitrate()
- Gets the kiloBitrate value. - |
- - |
| - - | -
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- - |
| - string - | -
- getVideoCodec()
- Returns the video codec. - |
- - |
| - - | -
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown. - |
- - |
| - integer - | -
- getModulus()
- - - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public string
- getPasses()
- Returns the number of passes.
--
- - public integer
- getKiloBitrate()
- Gets the kiloBitrate value.
--
- - public
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public string
- getVideoCodec()
- Returns the video codec.
--
- - public
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getModulus()
- -
--
- -class - Ogg extends DefaultVideo
- -The Ogg video format
--
-| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from DefaultAudio | -
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from DefaultAudio | -
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultAudio | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from DefaultAudio | -
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultAudio | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from DefaultAudio | -
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- from DefaultAudio | -
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- from DefaultVideo | -
| - string - | -
- getPasses()
- Returns the number of passes. - |
- from DefaultAudio | -
| - integer - | -
- getKiloBitrate()
- Gets the kiloBitrate value. - |
- from DefaultVideo | -
| - - | -
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultVideo | -
| - string - | -
- getVideoCodec()
- Returns the video codec. - |
- from DefaultVideo | -
| - - | -
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultVideo | -
| - integer - | -
- getModulus()
- - - |
- from DefaultVideo | -
| - - | -
- __construct($audioCodec = 'libvorbis', $videoCodec = 'libtheora')
- - - |
- - |
| - Boolean - | -
- supportBFrames()
- Returns true if the current format supports B-Frames. - |
- - |
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- - |
| - array - | -
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format. - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public string
- getPasses()
- Returns the number of passes.
--
- - public integer
- getKiloBitrate()
- Gets the kiloBitrate value.
--
- - public
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public string
- getVideoCodec()
- Returns the video codec.
--
- - public
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getModulus()
- -
--
- - public
- __construct($audioCodec = 'libvorbis', $videoCodec = 'libtheora')
- -
--
- - public Boolean
- supportBFrames()
- Returns true if the current format supports B-Frames.
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- - public array
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format.
--
- -class - WMV extends DefaultVideo
- -The WMV video format
--
-| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from DefaultAudio | -
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from DefaultAudio | -
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultAudio | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from DefaultAudio | -
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultAudio | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from DefaultAudio | -
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- from DefaultAudio | -
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- from DefaultVideo | -
| - string - | -
- getPasses()
- Returns the number of passes. - |
- from DefaultAudio | -
| - integer - | -
- getKiloBitrate()
- Gets the kiloBitrate value. - |
- from DefaultVideo | -
| - - | -
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultVideo | -
| - string - | -
- getVideoCodec()
- Returns the video codec. - |
- from DefaultVideo | -
| - - | -
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultVideo | -
| - integer - | -
- getModulus()
- - - |
- from DefaultVideo | -
| - - | -
- __construct($audioCodec = 'wmav2', $videoCodec = 'wmv2')
- - - |
- - |
| - Boolean - | -
- supportBFrames()
- Returns true if the current format supports B-Frames. - |
- - |
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- - |
| - array - | -
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format. - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public string
- getPasses()
- Returns the number of passes.
--
- - public integer
- getKiloBitrate()
- Gets the kiloBitrate value.
--
- - public
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public string
- getVideoCodec()
- Returns the video codec.
--
- - public
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getModulus()
- -
--
- - public
- __construct($audioCodec = 'wmav2', $videoCodec = 'wmv2')
- -
--
- - public Boolean
- supportBFrames()
- Returns true if the current format supports B-Frames.
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- - public array
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format.
--
- -class - WMV3 extends DefaultVideo
- -The WMV video format
--
-| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from DefaultAudio | -
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from DefaultAudio | -
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultAudio | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from DefaultAudio | -
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultAudio | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from DefaultAudio | -
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- from DefaultAudio | -
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- from DefaultVideo | -
| - string - | -
- getPasses()
- Returns the number of passes. - |
- from DefaultAudio | -
| - integer - | -
- getKiloBitrate()
- Gets the kiloBitrate value. - |
- from DefaultVideo | -
| - - | -
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultVideo | -
| - string - | -
- getVideoCodec()
- Returns the video codec. - |
- from DefaultVideo | -
| - - | -
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultVideo | -
| - integer - | -
- getModulus()
- - - |
- from DefaultVideo | -
| - - | -
- __construct($audioCodec = 'wmav3', $videoCodec = 'wmv3')
- - - |
- - |
| - Boolean - | -
- supportBFrames()
- Returns true if the current format supports B-Frames. - |
- - |
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- - |
| - array - | -
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format. - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public string
- getPasses()
- Returns the number of passes.
--
- - public integer
- getKiloBitrate()
- Gets the kiloBitrate value.
--
- - public
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public string
- getVideoCodec()
- Returns the video codec.
--
- - public
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getModulus()
- -
--
- - public
- __construct($audioCodec = 'wmav3', $videoCodec = 'wmv3')
- -
--
- - public Boolean
- supportBFrames()
- Returns true if the current format supports B-Frames.
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- - public array
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format.
--
- -class - WebM extends DefaultVideo
- -The WebM video format
--
-| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- - |
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from DefaultAudio | -
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultAudio | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from DefaultAudio | -
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultAudio | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from DefaultAudio | -
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- from DefaultAudio | -
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- from DefaultVideo | -
| - string - | -
- getPasses()
- Returns the number of passes. - |
- from DefaultAudio | -
| - integer - | -
- getKiloBitrate()
- Gets the kiloBitrate value. - |
- from DefaultVideo | -
| - - | -
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultVideo | -
| - string - | -
- getVideoCodec()
- Returns the video codec. - |
- from DefaultVideo | -
| - - | -
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultVideo | -
| - integer - | -
- getModulus()
- - - |
- from DefaultVideo | -
| - - | -
- __construct($audioCodec = 'libvorbis', $videoCodec = 'libvpx')
- - - |
- - |
| - Boolean - | -
- supportBFrames()
- Returns true if the current format supports B-Frames. - |
- - |
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- - |
| - array - | -
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format. - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public string
- getPasses()
- Returns the number of passes.
--
- - public integer
- getKiloBitrate()
- Gets the kiloBitrate value.
--
- - public
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public string
- getVideoCodec()
- Returns the video codec.
--
- - public
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getModulus()
- -
--
- - public
- __construct($audioCodec = 'libvorbis', $videoCodec = 'libvpx')
- -
--
- - public Boolean
- supportBFrames()
- Returns true if the current format supports B-Frames.
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- - public array
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format.
--
- -class - X264 extends DefaultVideo
- -The X264 video format
--
-| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from DefaultAudio | -
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from DefaultAudio | -
| - - | -
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultAudio | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from DefaultAudio | -
| - - | -
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultAudio | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from DefaultAudio | -
| - - | -
- setAudioChannels(integer $channels)
- Sets the channels value. - |
- from DefaultAudio | -
| - array - | -
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener. - |
- from DefaultVideo | -
| - integer - | -
- setPasses(integer $passes)
- Sets the number of passes. - |
- - |
| - integer - | -
- getPasses()
- Returns the number of passes. - |
- - |
| - integer - | -
- getKiloBitrate()
- Gets the kiloBitrate value. - |
- from DefaultVideo | -
| - - | -
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value. - |
- from DefaultVideo | -
| - string - | -
- getVideoCodec()
- Returns the video codec. - |
- from DefaultVideo | -
| - - | -
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown. - |
- from DefaultVideo | -
| - int - | -
- getModulus()
- - - |
- - |
| - - | -
- __construct($audioCodec = 'libfaac', $videoCodec = 'libx264')
- - - |
- - |
| - Boolean - | -
- supportBFrames()
- Returns true if the current format supports B-Frames. - |
- - |
| - X264 - | -
- setBFramesSupport($support $support)
- - - |
- - |
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- - |
| - array - | -
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format. - |
- - |
public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public
- setAudioCodec(string $audioCodec)
- Sets the audio codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public
- setAudioKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public
- setAudioChannels(integer $channels)
- Sets the channels value.
--
- - public array
- createProgressListener(MediaTypeInterface $media, FFProbe $ffprobe, Integer $pass, Integer $total)
- Creates the progress listener.
--
- - public integer
- setPasses(integer $passes)
- Sets the number of passes.
--
- - public integer
- getPasses()
- Returns the number of passes.
--
- - public integer
- getKiloBitrate()
- Gets the kiloBitrate value.
--
- - public
- setKiloBitrate(integer $kiloBitrate)
- Sets the kiloBitrate value.
--
- - public string
- getVideoCodec()
- Returns the video codec.
--
- - public
- setVideoCodec(string $videoCodec)
- Sets the video codec, Should be in the available ones, otherwise an exception is thrown.
--
- - public int
- getModulus()
- -
--
- - public
- __construct($audioCodec = 'libfaac', $videoCodec = 'libx264')
- -
--
- - public Boolean
- supportBFrames()
- Returns true if the current format supports B-Frames.
--
- - public X264
- setBFramesSupport($support $support)
- -
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- - public array
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format.
--
- -interface - VideoInterface implements - AudioInterface
- - - - -| - string - | -
- getPasses()
- Returns the number of passes. - |
- from FormatInterface | -
| - array() - | -
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline. - |
- from FormatInterface | -
| - integer - | -
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value. - |
- from AudioInterface | -
| - integer - | -
- getAudioChannels()
- Gets the audio channels value. - |
- from AudioInterface | -
| - string - | -
- getAudioCodec()
- Returns the audio codec. - |
- from AudioInterface | -
| - array - | -
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format. - |
- from AudioInterface | -
| - integer - | -
- getKiloBitrate()
- Gets the kiloBitrate value. - |
- - |
| - integer - | -
- getModulus()
- Returns the modulus used by the Resizable video. - |
- - |
| - string - | -
- getVideoCodec()
- Returns the video codec. - |
- - |
| - Boolean - | -
- supportBFrames()
- Returns true if the current format supports B-Frames. - |
- - |
| - array - | -
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format. - |
- - |
public string
- getPasses()
- Returns the number of passes.
--
- - public array()
- getExtraParams()
- Returns an array of extra parameters to add to ffmpeg commandline.
--
- - public integer
- getAudioKiloBitrate()
- Gets the audio kiloBitrate value.
--
- - public integer
- getAudioChannels()
- Gets the audio channels value.
--
- - public string
- getAudioCodec()
- Returns the audio codec.
--
- - public array
- getAvailableAudioCodecs()
- Returns the list of available audio codecs for this format.
--
- - public integer
- getKiloBitrate()
- Gets the kiloBitrate value.
--
- - public integer
- getModulus()
- Returns the modulus used by the Resizable video.
-This used to calculate the target dimensions while maintaining the best -aspect ratio.
- - public string
- getVideoCodec()
- Returns the video codec.
--
- - public Boolean
- supportBFrames()
- Returns true if the current format supports B-Frames.
--
- - public array
- getAvailableVideoCodecs()
- Returns the list of available video codecs for this format.
--
- -| AbstractMediaType | -- | -
| AbstractStreamableMedia | -- | -
| Audio | -- | -
| Frame | -- | -
| Video | -- | -
| MediaTypeInterface | -- | -
abstract class - AbstractMediaType implements - MediaTypeInterface
- - - - -| - - | -
- __construct($pathfile, FFMpegDriver $driver, FFProbe $ffprobe)
- - - |
- - |
| - FFMpegDriver - | -
- getFFMpegDriver()
- - - |
- - |
| - MediaTypeInterface - | -
- setFFMpegDriver(FFMpegDriver $driver)
- - - |
- - |
| - FFProbe - | -
- getFFProbe()
- - - |
- - |
| - MediaTypeInterface - | -
- setFFProbe(FFProbe $ffprobe)
- - - |
- - |
| - string - | -
- getPathfile()
- - - |
- - |
| - MediaTypeInterface - | -
- setFiltersCollection(FiltersCollection $filters)
- - - |
- - |
| - MediaTypeInterface - | -
- getFiltersCollection()
- - - |
- - |
public
- __construct($pathfile, FFMpegDriver $driver, FFProbe $ffprobe)
- -
--
- - public FFMpegDriver
- getFFMpegDriver()
- -
--
- - public MediaTypeInterface
- setFFMpegDriver(FFMpegDriver $driver)
- -
--
- - public FFProbe
- getFFProbe()
- -
--
- - public MediaTypeInterface
- setFFProbe(FFProbe $ffprobe)
- -
--
- - public string
- getPathfile()
- -
--
- - public MediaTypeInterface
- setFiltersCollection(FiltersCollection $filters)
- -
--
- - public MediaTypeInterface
- getFiltersCollection()
- -
--
- -abstract class - AbstractStreamableMedia extends AbstractMediaType
- - - - -| - - | -
- __construct($pathfile, FFMpegDriver $driver, FFProbe $ffprobe)
- - - |
- from AbstractMediaType | -
| - FFMpegDriver - | -
- getFFMpegDriver()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFFMpegDriver(FFMpegDriver $driver)
- - - |
- from AbstractMediaType | -
| - FFProbe - | -
- getFFProbe()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFFProbe(FFProbe $ffprobe)
- - - |
- from AbstractMediaType | -
| - string - | -
- getPathfile()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFiltersCollection(FiltersCollection $filters)
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- getFiltersCollection()
- - - |
- from AbstractMediaType | -
| - StreamCollection - | -
- getStreams()
- - - |
- - |
| - Stream - | -
- getFormat()
- - - |
- - |
public
- __construct($pathfile, FFMpegDriver $driver, FFProbe $ffprobe)
- -
--
- - public FFMpegDriver
- getFFMpegDriver()
- -
--
- - public MediaTypeInterface
- setFFMpegDriver(FFMpegDriver $driver)
- -
--
- - public FFProbe
- getFFProbe()
- -
--
- - public MediaTypeInterface
- setFFProbe(FFProbe $ffprobe)
- -
--
- - public string
- getPathfile()
- -
--
- - public MediaTypeInterface
- setFiltersCollection(FiltersCollection $filters)
- -
--
- - public MediaTypeInterface
- getFiltersCollection()
- -
--
- - public StreamCollection
- getStreams()
- -
--
- - public Stream
- getFormat()
- -
--
- -class - Audio extends AbstractStreamableMedia
- - - - -| - - | -
- __construct($pathfile, FFMpegDriver $driver, FFProbe $ffprobe)
- - - |
- from AbstractMediaType | -
| - FFMpegDriver - | -
- getFFMpegDriver()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFFMpegDriver(FFMpegDriver $driver)
- - - |
- from AbstractMediaType | -
| - FFProbe - | -
- getFFProbe()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFFProbe(FFProbe $ffprobe)
- - - |
- from AbstractMediaType | -
| - string - | -
- getPathfile()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFiltersCollection(FiltersCollection $filters)
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- getFiltersCollection()
- - - |
- from AbstractMediaType | -
| - StreamCollection - | -
- getStreams()
- - - |
- from AbstractStreamableMedia | -
| - Stream - | -
- getFormat()
- - - |
- from AbstractStreamableMedia | -
| - AudioFilters - | -
- filters()
- Returns the available filters. - |
- - |
| - Audio - | -
- addFilter(FilterInterface $filter)
- {@inheritdoc} - |
- - |
| - Audio - | -
- save(FormatInterface $format, string $outputPathfile)
- Exports the audio in the desired format, applies registered filters. - |
- - |
| - Audio - | -
- waveform(integer $width, integer $height)
- Generates an image file representing the waveform of the audio file. - |
- - |
public
- __construct($pathfile, FFMpegDriver $driver, FFProbe $ffprobe)
- -
--
- - public FFMpegDriver
- getFFMpegDriver()
- -
--
- - public MediaTypeInterface
- setFFMpegDriver(FFMpegDriver $driver)
- -
--
- - public FFProbe
- getFFProbe()
- -
--
- - public MediaTypeInterface
- setFFProbe(FFProbe $ffprobe)
- -
--
- - public string
- getPathfile()
- -
--
- - public MediaTypeInterface
- setFiltersCollection(FiltersCollection $filters)
- -
--
- - public MediaTypeInterface
- getFiltersCollection()
- -
--
- - public StreamCollection
- getStreams()
- -
--
- - public Stream
- getFormat()
- -
--
- - public AudioFilters
- filters()
- Returns the available filters.
--
- - public Audio
- addFilter(FilterInterface $filter)
- {@inheritdoc}
--
- - public Audio
- save(FormatInterface $format, string $outputPathfile)
- Exports the audio in the desired format, applies registered filters.
--
- - public Audio
- save(FormatInterface $format, string $outputPathfile)
- Exports the audio in the desired format, applies registered filters.
--
- -class - Frame extends AbstractMediaType
- - - - -| - - | -
- __construct(Video $video, FFMpegDriver $driver, FFProbe $ffprobe, TimeCode $timecode)
- - - |
- - |
| - FFMpegDriver - | -
- getFFMpegDriver()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFFMpegDriver(FFMpegDriver $driver)
- - - |
- from AbstractMediaType | -
| - FFProbe - | -
- getFFProbe()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFFProbe(FFProbe $ffprobe)
- - - |
- from AbstractMediaType | -
| - string - | -
- getPathfile()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFiltersCollection(FiltersCollection $filters)
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- getFiltersCollection()
- - - |
- from AbstractMediaType | -
| - Video - | -
- getVideo()
- Returns the video related to the frame. - |
- - |
| - FrameFilters - | -
- filters()
- Returns the available filters. - |
- - |
| - Frame - | -
- addFilter(FrameFilterInterface $filter)
- {@inheritdoc} - |
- - |
| - TimeCode - | -
- getTimeCode()
- - - |
- - |
| - Frame - | -
- save(string $pathfile, Boolean $accurate = false)
- Saves the frame in the given filename. - |
- - |
public
- __construct(Video $video, FFMpegDriver $driver, FFProbe $ffprobe, TimeCode $timecode)
- -
--
- - public FFMpegDriver
- getFFMpegDriver()
- -
--
- - public MediaTypeInterface
- setFFMpegDriver(FFMpegDriver $driver)
- -
--
- - public FFProbe
- getFFProbe()
- -
--
- - public MediaTypeInterface
- setFFProbe(FFProbe $ffprobe)
- -
--
- - public string
- getPathfile()
- -
--
- - public MediaTypeInterface
- setFiltersCollection(FiltersCollection $filters)
- -
--
- - public MediaTypeInterface
- getFiltersCollection()
- -
--
- - public Video
- getVideo()
- Returns the video related to the frame.
--
- - public FrameFilters
- filters()
- Returns the available filters.
--
- - public Frame
- addFilter(FrameFilterInterface $filter)
- {@inheritdoc}
--
- - public TimeCode
- getTimeCode()
- -
--
- - public Frame
- save(string $pathfile, Boolean $accurate = false)
- Saves the frame in the given filename.
-Uses the unaccurate method by default.
interface - MediaTypeInterface
- - - - -| - - | -
- filters()
- Returns the available filters. - |
- - |
| - string - | -
- getPathfile()
- - - |
- - |
public
- filters()
- Returns the available filters.
--
- - public string
- getPathfile()
- -
--
- -class - Video extends Audio
- - - - -| - - | -
- __construct($pathfile, FFMpegDriver $driver, FFProbe $ffprobe)
- - - |
- from AbstractMediaType | -
| - FFMpegDriver - | -
- getFFMpegDriver()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFFMpegDriver(FFMpegDriver $driver)
- - - |
- from AbstractMediaType | -
| - FFProbe - | -
- getFFProbe()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFFProbe(FFProbe $ffprobe)
- - - |
- from AbstractMediaType | -
| - string - | -
- getPathfile()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFiltersCollection(FiltersCollection $filters)
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- getFiltersCollection()
- - - |
- from AbstractMediaType | -
| - StreamCollection - | -
- getStreams()
- - - |
- from AbstractStreamableMedia | -
| - Stream - | -
- getFormat()
- - - |
- from AbstractStreamableMedia | -
| - VideoFilters - | -
- filters()
- Returns the available filters. - |
- - |
| - Video - | -
- addFilter(FilterInterface $filter)
- {@inheritdoc} - |
- - |
| - Video - | -
- save(FormatInterface $format, string $outputPathfile)
- Exports the video in the desired format, applies registered filters. - |
- - |
| - Frame - | -
- frame(TimeCode $at)
- Gets the frame at timecode. - |
- - |
public
- __construct($pathfile, FFMpegDriver $driver, FFProbe $ffprobe)
- -
--
- - public FFMpegDriver
- getFFMpegDriver()
- -
--
- - public MediaTypeInterface
- setFFMpegDriver(FFMpegDriver $driver)
- -
--
- - public FFProbe
- getFFProbe()
- -
--
- - public MediaTypeInterface
- setFFProbe(FFProbe $ffprobe)
- -
--
- - public string
- getPathfile()
- -
--
- - public MediaTypeInterface
- setFiltersCollection(FiltersCollection $filters)
- -
--
- - public MediaTypeInterface
- getFiltersCollection()
- -
--
- - public StreamCollection
- getStreams()
- -
--
- - public Stream
- getFormat()
- -
--
- - public VideoFilters
- filters()
- Returns the available filters.
--
- - public Video
- addFilter(FilterInterface $filter)
- {@inheritdoc}
--
- - public Video
- save(FormatInterface $format, string $outputPathfile)
- Exports the video in the desired format, applies registered filters.
--
- - public Frame
- frame(TimeCode $at)
- Gets the frame at timecode.
--
- -class - Frame extends AbstractMediaType
- - - - -| - - | -
- __construct(Video $video, FFMpegDriver $driver, FFProbe $ffprobe, TimeCode $timecode)
- - - |
- - |
| - FFMpegDriver - | -
- getFFMpegDriver()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFFMpegDriver(FFMpegDriver $driver)
- - - |
- from AbstractMediaType | -
| - FFProbe - | -
- getFFProbe()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFFProbe(FFProbe $ffprobe)
- - - |
- from AbstractMediaType | -
| - string - | -
- getPathfile()
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- setFiltersCollection(FiltersCollection $filters)
- - - |
- from AbstractMediaType | -
| - MediaTypeInterface - | -
- getFiltersCollection()
- - - |
- from AbstractMediaType | -
| - Video - | -
- getVideo()
- Returns the video related to the frame. - |
- - |
| - FrameFilters - | -
- filters()
- Returns the available filters. - |
- - |
| - Frame - | -
- addFilter(FrameFilterInterface $filter)
- {@inheritdoc} - |
- - |
| - TimeCode - | -
- getTimeCode()
- - - |
- - |
| - Frame - | -
- save(string $pathfile, Boolean $accurate = false)
- Saves the frame in the given filename. - |
- - |
public
- __construct(Video $video, FFMpegDriver $driver, FFProbe $ffprobe, TimeCode $timecode)
- -
--
- - public FFMpegDriver
- getFFMpegDriver()
- -
--
- - public MediaTypeInterface
- setFFMpegDriver(FFMpegDriver $driver)
- -
--
- - public FFProbe
- getFFProbe()
- -
--
- - public MediaTypeInterface
- setFFProbe(FFProbe $ffprobe)
- -
--
- - public string
- getPathfile()
- -
--
- - public MediaTypeInterface
- setFiltersCollection(FiltersCollection $filters)
- -
--
- - public MediaTypeInterface
- getFiltersCollection()
- -
--
- - public Video
- getVideo()
- Returns the video related to the frame.
--
- - public FrameFilters
- filters()
- Returns the available filters.
--
- - public Frame
- addFilter(FrameFilterInterface $filter)
- {@inheritdoc}
--
- - public TimeCode
- getTimeCode()
- -
--
- - public Frame
- save(string $pathfile, Boolean $accurate = false)
- Saves the frame in the given filename.
-Uses the unaccurate method by default.
| FFMpeg\Exception\ExceptionInterface | -- - - | -
| FFMpeg\FFProbe\MapperInterface | -- - - | -
| FFMpeg\FFProbe\OptionsTesterInterface | -- - - | -
| FFMpeg\FFProbe\OutputParserInterface | -- - - | -
| FFMpeg\Filters\Audio\AudioFilterInterface | -- - - | -
| FFMpeg\Filters\FilterInterface | -- - - | -
| FFMpeg\Filters\Frame\FrameFilterInterface | -- - - | -
| FFMpeg\Filters\Video\VideoFilterInterface | -- - - | -
| FFMpeg\Format\AudioInterface | -- - - | -
| FFMpeg\Format\FormatInterface | -- - - | -
| FFMpeg\Format\FrameInterface | -- - - | -
| FFMpeg\Format\ProgressableInterface | -- - - | -
| FFMpeg\Format\VideoInterface | -- - - | -
| FFMpeg\Media\MediaTypeInterface | -- - - | -
loading...
-