Add of set the timeout for video process and audio

This commit is contained in:
Oleg Tsarenko 2013-05-10 23:53:37 +03:00
commit 98a8cf8874

View file

@ -265,6 +265,8 @@ class FFMpeg extends Binary
$process = $builder->getProcess(); $process = $builder->getProcess();
$process->setTimeout($this->timeout);
$this->logger->addInfo(sprintf('FFmpeg executes command %s', $process->getCommandLine())); $this->logger->addInfo(sprintf('FFmpeg executes command %s', $process->getCommandLine()));
try { try {
@ -397,6 +399,8 @@ class FFMpeg extends Binary
foreach ($passes as $process) { foreach ($passes as $process) {
$process->setTimeout($this->timeout);
$this->logger->addInfo(sprintf('FFmpeg executes command %s', $process->getCommandline())); $this->logger->addInfo(sprintf('FFmpeg executes command %s', $process->getCommandline()));
try { try {
@ -457,7 +461,7 @@ class FFMpeg extends Binary
while (0 !== $value % $multiple) { while (0 !== $value % $multiple) {
$value++; $value++;
} }
return $value; return $value;
} }