Commit graph

82 commits

Author SHA1 Message Date
Alexander Schranz
e7e56d0440 Fix php 5.3 compatibility 2021-11-27 00:23:32 +01:00
Alexander Schranz
1859ab7253 Fix php 5.3 compatibility 2021-11-27 00:13:48 +01:00
Marcus Bointon
8f7575b076
Fix docs generation, PSR-12 type compliance (#790)
* Correct docs generation, fixes #774

* Standardise on unaliased int and bool types, as per PSR-12 section 2.5
2021-03-02 15:39:45 +01:00
Markus Fasselt
7abb6d36cb
Fix boolean types (#779)
Changed `Boolean` to `bool` to avoid Psalm being confused with a potential class.
Thanks @digilist
2020-12-23 11:14:24 +01:00
Boris Momčilović
a1a3281dbf
PHP 8 Support (#782)
Thanks @kornrunner for these changes:
* Test against PHP 8
* U-Tests: FFProbe: OptionsTester: handle phpunit deprecation of at
* FiltersCollection: tweak for call_user_func_array and PHP 8 named arguments
2020-12-18 15:27:38 +01:00
CaliforniaMountainSnake
0d3bed21a7 ComplexMedia has been renamed to the AdvancedMedia. 2020-03-23 17:47:36 +03:00
CaliforniaMountainSnake
71766fed47 Added the BC Layer alias for some phpunit methods to fix build at php <= 5.5. 2020-02-27 20:59:26 +03:00
CaliforniaMountainSnake
d6f95508a9 Added runtime check of the ffmpeg version before starting the command in the ComplexMedia. Added the FFMpegDriver::getVersion() method. 2020-02-26 12:33:45 +03:00
CaliforniaMountainSnake
6dc260fd3d Added ffmpeg version checking in the ComplexMediaTest::testXStackFilter(). 2020-02-20 14:34:21 +03:00
CaliforniaMountainSnake
f20ad8a82e Added the ComplexMedia type and the possibility to use -filter_complex and -map features. Added some built-in complex filters. Added the unit and functional tests of the new features. README.md has been updated. 2020-02-18 13:49:32 +03:00
Jens Hausdorf
fab3638caf
Merge branch 'master' into master 2018-11-24 08:32:18 +01:00
Ilja Lukin
b3bfb34475 added custom frame filter 2018-11-20 23:32:47 +01:00
Jon Hassall
fa37258502 Added custom filters for Audio, in the same way as custom filters are available for Video 2018-10-20 14:36:10 +01:00
Shaked Klein Orbach
fcd494f723 improve tests, validate frame file type 2018-03-07 14:27:27 -06:00
Shaked Klein Orbach
9fe417745e add phpdoc & test png files 2018-03-06 17:16:37 -06:00
Shaked Klein Orbach
ae92dd5887 allow to set frame file type instead of hardcoded jpg 2018-03-05 18:59:57 -06:00
Cuong M. Tran
cedcd37bd2 Correct type in VideoFilters->framerate (#372) 2017-06-28 00:46:54 +02:00
Kyle Tse
4cfcabd7b5 Support resize and watermark in ordering. (#343)
* Support multiple -vf commands

Marge Filters into one command

* Ordering Scale

Using -vf to scale instead of -s to have ordering

* Correct the ResizeFilterTest

* Remove useless comments

* Fixed filter bug

Add checking on filters if only one process.

* Fixed typo error
2017-06-27 23:18:22 +02:00
Sébastien Nikolaou
e8b247891b Fix missing audio artwork metadata on multiple exports (#340)
When the metadata filter is applied on an `Audio` media, the `artwork`
parameter was being unset from the metadata array.

Saving the same `Audio` instance into multiple formats generated the
correct commands for the first export, but the subsequent commands were
missing the `artwork` parameter.

This commit fixes this issue by copying (by value) the `metaArr`
property to a local variable each time the filter is applied.
2017-04-12 14:40:31 -03:00
Romain Biard
edf87d9cb1 Set a default duration to 0 to fix issue 333 (#334) 2017-04-12 13:15:13 -03:00
Jens Hausdorf
ecd50cd5f1 Audio Clip (#314)
* add missing headers
* add audio clip filter and improve timecode
* php 5.4 :(
* prevent audio from being reencoded
* php 5.x: Really?
* fix tests... I need to concentrate...
2017-03-06 10:17:12 -03:00
Romain Biard
21c28dea25 Concatenation feature (#287)
* Creation of a feature to concatenate files into a new one.

* Update of the README
* Creation of the tests for the concatenation
* We use an array of videos instead of a path to a text files
* We use the bundle Temporary File System instead of getcwd
2017-02-14 13:55:07 -03:00
Romain Biard
a6f6bbcb1e Improvements (#286)
* Adding a missing use statement in src/FFMpeg/Filters/Video/ExtractMultipleFramesFilter.php
* We remove a user specific folder from the gitignore
* We remove an unused use statement from src/FFMpeg/Filters/Video/ExtractMultipleFramesFilter.php
* We remove an unused use statement from src/FFMpeg/Filters/Video/PadFilter.php
* We remove an unused use statement from src/FFMpeg/Media/Waveform.php
* We remove an unused variable from src/FFMpeg/Filters/Waveform/WaveformDownmixFilter.php
* We fix the name of a variable in src/FFMpeg/Filters/Audio/AddMetadataFilter.php
2017-01-24 15:45:56 -03:00
Romain Biard
2b5d18f510 Creation of a Gif Media to be able to extract gif animation based on video sequences (#285)
* Creation of a media to extract video sequences into gif files
* We add a gif method to the class Video to be able to use the Gif Media.
* Parameters where missing in the declaration of the gif function
* One parameter was badly defined in the gif method
* We use the proper media in the method gif
* We add a missing declaration in the Video class
* Update of the README file
* Modification of the README file
* We remove an empty class
2017-01-24 15:03:51 -03:00
Romain Biard
7adc8c73c0 Merge branch 'master' into multipleframes 2017-01-13 12:28:36 -03:00
Romain Biard
31629f7162 Merge branch 'master' into addAudioMetadata 2017-01-13 12:12:26 -03:00
Romain Biard
4c0777b7c4 Merge branch 'master' into padding 2017-01-13 11:53:59 -03:00
Romain Biard
580765386a We change the way we deal with the number of digits in the filename 2017-01-11 11:49:34 -03:00
Romain Biard
4d76b26d1d We improve the way we pass the number of digits in the filename 2017-01-11 11:17:47 -03:00
Romain Biard
5ff0b24230 Here is the stable version of the filter, all bugs fixed. 2017-01-11 11:15:22 -03:00
Romain Biard
ca8eea7ec6 We fix the usage of 2017-01-11 10:59:22 -03:00
Romain Biard
8bdc839e91 We remove a useless variable. 2017-01-11 10:55:49 -03:00
Romain Biard
c7df2b17e6 Fixing the way we apply for the filter. 2017-01-11 10:49:37 -03:00
Romain Biard
223118db4e We remove a break instruction inacurrately copied-pasted. 2017-01-11 10:43:30 -03:00
Romain Biard
2f47c45093 Fixing the names of the constants 2017-01-11 10:41:01 -03:00
Romain Biard
8ac67679ab Fixing a bug when throwing an exception 2017-01-11 10:35:29 -03:00
Romain Biard
cbb4c35ef0 We remove a bracket which has nothing to do there. 2017-01-11 10:31:18 -03:00
Romain Biard
6aeec7d337 We make sure that the destination folder has a trailing slash 2017-01-11 10:21:14 -03:00
Romain Biard
3aa13c09d3 This filter is a video filter, not a frame filter 2017-01-11 10:17:21 -03:00
Romain Biard
b3155f9622 Creation of the method to add the filter 2017-01-11 10:06:17 -03:00
Romain Biard
d83c7e271f Creation of a filter to extract multiple frames from a video 2017-01-11 10:01:09 -03:00
shadrech
35474279e1 Added set priority to AddMetadataFilter class 2017-01-09 17:34:43 +00:00
shadrech
8cfb17682f Add metadata to audio files - feature 2017-01-09 13:41:32 +00:00
Romain Biard
71bfcbcc11 We change the description of the method 2016-12-28 16:47:22 -03:00
Romain Biard
af38e5b0ac Creation of a method to apply custom filters 2016-12-28 16:42:03 -03:00
Romain Biard
7c4eed68f9 We change the way we execute this filter. 2016-12-20 18:47:40 -03:00
Romain Biard
345656b1dc Creation of a pad filters which adds padding (black bars) to a video 2016-12-20 18:25:45 -03:00
Romain Biard
5ef964f2b5 Fixed bugs in the tests 2016-11-16 14:46:11 -03:00
Romain Biard
e1625f1f94 Modification of the filters 2016-11-16 14:11:11 -03:00
Romain Biard
dab2ae5a8c Improvements in the way we deal with filters for the waveform 2016-11-16 13:15:27 -03:00