Make sure transcoder is executable (fix #193)

pull/221/head
Varun Patil 2022-11-14 00:24:23 -08:00
parent 649c0659c7
commit 39daae1cb7
1 changed files with 5 additions and 0 deletions

View File

@ -90,6 +90,11 @@ class VideoController extends ApiBase
return new JSONResponse(['message' => 'Transcoder not configured'], Http::STATUS_INTERNAL_SERVER_ERROR); return new JSONResponse(['message' => 'Transcoder not configured'], Http::STATUS_INTERNAL_SERVER_ERROR);
} }
// Make transcoder executable
if (!is_executable($transcoder)) {
chmod($transcoder, 0755);
}
// Check for environment variables // Check for environment variables
$vaapi = $this->config->getSystemValue('memories.qsv', false); $vaapi = $this->config->getSystemValue('memories.qsv', false);
$env = ''; $env = '';