Merge pull request #35 from xammep-ua/timeoute-for-video-process
IMPORTANT If the conversion process (video) takes more time than the default value, the process is fails.
This commit is contained in:
commit
418ad8493b
1 changed files with 5 additions and 1 deletions
|
|
@ -265,6 +265,8 @@ class FFMpeg extends Binary
|
|||
|
||||
$process = $builder->getProcess();
|
||||
|
||||
$process->setTimeout($this->timeout);
|
||||
|
||||
$this->logger->addInfo(sprintf('FFmpeg executes command %s', $process->getCommandLine()));
|
||||
|
||||
try {
|
||||
|
|
@ -397,6 +399,8 @@ class FFMpeg extends Binary
|
|||
|
||||
foreach ($passes as $process) {
|
||||
|
||||
$process->setTimeout($this->timeout);
|
||||
|
||||
$this->logger->addInfo(sprintf('FFmpeg executes command %s', $process->getCommandline()));
|
||||
|
||||
try {
|
||||
|
|
@ -457,7 +461,7 @@ class FFMpeg extends Binary
|
|||
while (0 !== $value % $multiple) {
|
||||
$value++;
|
||||
}
|
||||
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue