Closed 81reap closed 5 months ago
@81reap What size is your video?
It's about 1.5 MB. To keep the test consistent I used the smallest file size on this page.
https://file-examples.com/index.php/sample-video-files/sample-mp4-files/
I am trying to schedule a video upload to Twitter/X
@81reap Are you doing the proxy with Nginx?
If yes, add this:
client_max_body_size 200M;
before location /
I get a similar problem, same outcome as above, but with the following error logged:
File does not exist at path /home/forge/mixpost/storage/mixpost-media/temp/XXX/YYY/uploads/01-2024/ZZZ-thumb.jpg
At vendor/inovector/mixpost-pro-team/src/Support/MediaFilesystem.php(17)
The mp4 file ZZZ.mp4 is found in storage at the same location.
I tried with another video, and it worked. Both run on the computer fine, so not corrupt. Perhaps different encodings? (MP4 is just a wrapper).
So maybe a smarter detection is needed, or better handling of FFmpeg errors when it fails to decode.
@kurucu Hi Eliot, Thank you for the report. Please, send me the video that has not been uploaded. I'd want to reproduce this bug.
This one opens on my computer locally and as a hosted video. But does not work with ffmpeg.
https://github.com/inovector/mixpost/assets/1073323/5fdafae1-7c72-4213-8847-9fc2e2ceebd8
ffmpeg version 4.4.2-0ubuntu0.22.04.1
Steps to reproduce the problem
docker compose
Expected behaviour
.mp4 file should upload
Actual behaviour
it failed
Detailed description
Images seem to upload fine but videos [EXAMPLE] fail. I see no logs for mixpost nor from cloudflared that would indicate that the network failed.
Specifications