-
-
Notifications
You must be signed in to change notification settings - Fork 193
Monitoring the transcoding progress
pascalbaljet edited this page Dec 11, 2017
·
1 revision
This is supported by the underlying driver: https://github.com/PHP-FFMpeg/PHP-FFMpeg#transcoding
$format = new \FFMpeg\Format\Video\X264;
$format->on('progress', function($video, $format, $percentage) {
echo "$percentage % transcoded";
});
For HLS exports:
$exporter = FFMpeg::open('steve_howe.mp4')
->exportForHLS()
->onProgress(function ($percentage) {
echo "$percentage % transcoded";
});