White 2 second video uploaded #3398
Unanswered
jamesh-purr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
So I am not sure if this is an issue or maybe something I am doing wrong? Maybe this is something you have come across before? I did search but didn't find anything related to my issue.
I am using the media library to upload a video to s3 however something seems to be going wrong - https://social-saas-dev.s3.eu-west-1.amazonaws.com/tenants/tenant1/27/preview.mp4
The video isn't uploaded as the video should. It appears as a 2 second video with a white background. I can see from the media table it gets all the video data correct e.g size of video etc.
If I use the exact same file and upload it to s3 via Storage::putFile() then the outcome is exactly as I expect - https://social-saas-dev.s3.eu-west-1.amazonaws.com/tenants/tenant1/27/ixksvYLvPyM5ry4JgSe5XE9f1xSYcXkhmdVkNie4.mp4
I am doing this via 2 local laravel apps and I have a api laravel app 1 that does video generation and then sends back a url to my other laravel app 2.
I then take that url like this "url.test/tmp/5/201/preview.mp4" and use the packages addMediaFromUrl() like so - $contact->addMediaFromUrl($event['data']['url'])->toMediaCollection('video'); from my 2nd laravel app
I have checked the video locally from every aspect and the url is accessible. Is there something I don't know regarding how spatie would process the url request? e.g not being a live site and being on my local?
Apologies if I have missed something regarding this and it being raised before.
Beta Was this translation helpful? Give feedback.
All reactions