quasarstream / shaka-php

🎞 Shaka PHP is a library that uses Shaka Packager for DASH and HLS packaging and encryption, supporting Common Encryption for Widevine and other DRM Systems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Process timeout

kfeng0806 opened this issue · comments

commented

Hello,
I am facing The process xxx exceeded the timeout of 60 seconds. error when converting a long video.
The Symfony Process package has default timeout limit to 60s

Thank you for your reporting. I have just fixed the bug and now you can set the timeout of process. But before you get started, you must update the package:

composer update aminyazdanpanah/php-shaka

After updating the package, you can pass an associative array of config to the initialize method:

$config = [
    'packager.binaries' => 'path/to/packager/binary',
    'timeout'           =>  3600
];

$shaka = \Shaka\Shaka::initialize($config);
commented

Thank you very much!