Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@BlackbitDevs
Copy link
Contributor

Expected behavior

Converting videos (and creating video thumbnails) works regardless of the asset storage location.

Actual behavior

When I use S3 as asset store (set up as described in the docs), it is not possible to use the ffmpeg adapter to convert videos or generate video thumbnails. The problem lies with the creation of the ffmpeg cli command. In Video/Adapter/Ffmpeg.php, the path to the file to convert is created as realpath($this->file), where $this->file is in the format of s3://my-bucket/assets/video.mp4. The realpath call will then return false, and the resulting command has no input file argument.

@brusch
Copy link
Member

brusch commented Mar 7, 2019

@BlackbitNeueMedien seems that stream_is_local() is not behaving as expected, otherwise a temp-file should be created, see:

if (!stream_is_local($file)) {

Maybe you can further investigate this ... thanks!

@BlackbitDevs
Copy link
Contributor Author

That check is for the destination file, not the video source. But still, you pointed me in the right direction here. Checking with stream_is_local at some additional places does the trick 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants