Releases: protonemedia/laravel-ffmpeg
Releases · protonemedia/laravel-ffmpeg
7.5.2
- Support for setting a custom path for temporary directories
- HLS Encryption I/O improvements
- Path normalization on Windows, which solves common problems with HLS and watermarks
- GitHub Actions now runs on Windows in addition to Ubuntu
- Some refactors and documentation improvements
7.5.1
- Support for codec in HLS playlist
- Fixed bitrate bug in HLS playlist
7.5.0
- Encrypted HLS
- Rotating keys (optional)
- Raw process output, great for analysis!
- An HTTP helper to protect HLS (DynamicHLSPlaylist)
- Support for PHP 8.0, dropped support for PHP 7.2
7.4.1
- Better exceptions
- dd() improvements
- Some refactors
7.4.0
- Watermark manipulations
FFMpeg::fromDisk('videos')
->open('video.mp4')
->addWatermark(function(WatermarkFactory $watermark) {
$watermark->open('logo.png')
->width(100)
->height(100)
->greyscale();
});
- Dump and die
FFMpeg::fromDisk('videos')
->open('video.mp4')
->export()
->inFormat(new X264)
->dd('output.mkv');
- Resize filter shortcut
FFMpeg::fromDisk('videos')
->open('video.mp4')
->resize(640, 360);
- HLS export with multiple filters per format
use ProtoneMedia\LaravelFFMpeg\Exporters\HLSVideoFilters;
FFMpeg::open('video.mp4')
->exportForHLS()
->addFormat($lowBitrate, function (HLSVideoFilters $filters) {
$filters->addWatermark(function ($watermark) {
$watermark->open("logo.png")
->top(15)
->left(15)
->width(100)
->height(100);
});
$filters->resize(640, 360);
})
->addFormat($highBitrate, function (HLSVideoFilters $filters) {
$filters->addWatermark(function ($watermark) {
$watermark->open("logo.png")
->top(30)
->left(30)
->width(200)
->height(200);
});
$filters->resize(1280, 720);
})
->toDisk('local')
->save('adaptive.m3u8');
7.3.0
Built-in support for watermarks.
7.2.0
- Support for opening files from the web
7.1.0
- Support for Laravel 8.0
7.0.5
Added CopyFormat
to export a file without transcoding.
7.0.4
Improved support for loops