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:
Romain Neutron 2013-05-10 14:25:20 -07:00
commit 418ad8493b

View file

@ -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;
}