Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
Not enough user ratings | Total: 357 | All time: 6,939 This week: 79 |
Version | License | PHP version | Categories | |||
ffmpeg-maker 1.0.0 | GNU General Publi... | 5 | PHP 5, Graphics, Audio, Video |
Description | Author | |
This package can be used to build movies with images and audio using ffmpeg. Innovation Award
|
PHP library allow create simple movie with ffmpeg
> TODO
Initialize object Movie
$mv = new Movie([
'width' => 640,
'height' => 480,
'outputFile' => 'movie.mp4',
'outputDirectory' => './out',
]);
Add frame
$mv->addFrame(new ImageFrame([
'filePath' => 'image1.jpg',
'duration' => 6,
'effects' => [
FadeEffect::makeIn(1, 0),
FadeEffect::makeOut(1, 4)
],
'text' => new Text([
'value' => "Hello world!\nSome text.",
'posX' => '10',
'posY' => '20',
'color' => '#ffff00',
'box' => true,
'wrap' => false,
])
]));
Add audio track
$mv->addAudio(new Audio([
'filePath' => 'audio.mp3',
]));
Build movie
$mm = new MovieMaker($mv);
$mm->build();
Files (15) |
File | Role | Description | ||
---|---|---|---|---|
src (1 file, 1 directory) | ||||
test (1 file) | ||||
composer.json | Data | Auxiliary data | ||
composer.lock | Data | Auxiliary data | ||
README.md | Doc. | Documentation |
Files (15) | / | src | / | Models |
File | Role | Description |
---|---|---|
Audio.php | Class | Class source |
Effect.php | Class | Class source |
FadeEffect.php | Class | Class source |
Frame.php | Class | Class source |
ImageFrame.php | Class | Class source |
Input.php | Class | Class source |
Movie.php | Class | Class source |
Text.php | Class | Class source |
VideoFrame.php | Class | Class source |
ZoomEffect.php | Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.