Skip to content

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";
    });
You can’t perform that action at this time.