Download .zip |
Info | Documentation | View files (15) | Download .zip | Reputation | Support forum (1) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-11-17 (1 month ago) | Not yet rated by the users | Total: 125 This week: 5 | All time: 8,665 This week: 111 |
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 |
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 | / | 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 |
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.