diff --git a/main/inc/lib/document.lib.php b/main/inc/lib/document.lib.php index d9ed7ad9d3..ad71914a73 100755 --- a/main/inc/lib/document.lib.php +++ b/main/inc/lib/document.lib.php @@ -4273,6 +4273,7 @@ class DocumentManager try { $ffmpeg = \FFMpeg\FFMpeg::create(); $video = $ffmpeg->open($wavFile); + $mp3File = str_replace('wav', 'mp3', $wavFile); $result = $video->save(new FFMpeg\Format\Audio\Mp3(), $mp3File); if ($result && $removeWavFileIfSuccess) { @@ -4283,6 +4284,8 @@ class DocumentManager return $mp3File; } } catch (Exception $e) { + error_log($e->getMessage()); + error_log($e->getPrevious()->getMessage()); } } return false;