From 2907a2b319c5fede30fc6aacdddabacc041c2e41 Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Wed, 6 Mar 2024 14:52:04 +0100 Subject: [PATCH] fix(InstallDeps): Use ffmpegDir to install ffmpeg see https://github.com/nextcloud/recognize/commit/4082b1ca90b6fc038a002a8c156664d23ba77a21#r139422392 Signed-off-by: Marcel Klehr --- lib/Migration/InstallDeps.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Migration/InstallDeps.php b/lib/Migration/InstallDeps.php index 090640e4..c6b2f0c4 100644 --- a/lib/Migration/InstallDeps.php +++ b/lib/Migration/InstallDeps.php @@ -217,7 +217,7 @@ protected function runTfjsGpuInstall(string $nodeBinary) : void { protected function runFfmpegInstall(string $nodeBinary): void { $oriCwd = getcwd(); - chdir($this->tfjsGPUPath); + chdir($this->ffmpegDir); $cmd = escapeshellcmd($nodeBinary) . ' ' . escapeshellarg($this->ffmpegInstallScript); try { exec($cmd . ' 2>&1', $output, $returnCode); // Appending 2>&1 to avoid leaking sterr