Is there a completion event of conversion library php ffmpeg?

Hello!
Using a library https://github.com/PHP-FFMpeg/PHP-FFMpeg
conversion? I used this:
$video = $ffmpeg->open($sPath);
 $format = new FFMpeg\Format\Video\X264('libmp3lame', 'libx264');
 $format->on('progress', function ($video, $format, $percentage) use($oMedia, $sPathNew) {

 if ((int)$percentage === 100){
 /// END
 });

But it does not always reach 100%
June 5th 19 at 21:42
1 answer
June 5th 19 at 21:44
If you need it is the event conversion is done, use the features of language.
Php executes the code sequentially. Therefore, when performing the conversion, it will start to perform the following during a code line)

Find more questions by tags PHP