-
Couldn't load subscription status.
- Fork 1.5k
Closed
Description
Bug Report
Expected behavior
Open the video and then see its preview.
Actual behavior
When using remote object storage like AWS S3, Google Cloud Storage, to be able to perform conversion with FFMPEG, the video is downloaded into the temporary folder /var/tmp/asset-temporary.
Then FFMPEG is started in background with empty path to temporary file, because the file has been deleted by the __destruct method of Asset.php class.
pimcore/models/Asset/Video/Thumbnail/Processor.php
Lines 248 to 252 in c5660dc
| public function convert() | |
| { | |
| $this->save(); | |
| Console::runPhpScriptInBackground(realpath(PIMCORE_PROJECT_ROOT . DIRECTORY_SEPARATOR . 'bin' . DIRECTORY_SEPARATOR . 'console'), 'internal:video-converter ' . $this->getProcessId()); | |
| } |
Lines 1919 to 1930 in c5660dc
| public function __destruct() | |
| { | |
| // close open streams | |
| $this->closeStream(); | |
| // delete temporary files | |
| foreach ($this->_temporaryFiles as $tempFile) { | |
| if (file_exists($tempFile)) { | |
| @unlink($tempFile); | |
| } | |
| } | |
| } |
Trying to execute the command not in the background the process is successful, but before the video is opened, it is necessary to wait for the download time of the temporary file and the execution of the transcoding.
Related to #4043
dbraito-bsd, mhgtlc and alexandru-gaidei
Metadata
Metadata
Assignees
Labels
No labels