Page 1 of 1

Uploading Videos

Posted: 30 Aug 2019, 15:03
by temabu
I am having trouble uploading videos.  They sometimes fail during upload, and other times they complete and then show ERROR.  These files are approx 250-320MB in size.  Is there a size limit?  How can I upload them?  I have 40MBit upload speed so its not bandwidth.  Any known issues on this?  Thanks

Re: Uploading Videos

Posted: 31 Aug 2019, 05:10
by mjau-mjau
Hi. Usually, a web host will have Upload Max File Size and Post Max Size restrictions for your server. Can you check your websiteurl.com/?diagnostics ? Look for upload_max_file_size and post_max_size values. It is very likely that these values are set way below 300MB ... Often, they are set as low as 2MB. If your video file sizes are higher than your upload_max_file_size, you will need to upload specific videos by FTP.

Re: Uploading Videos

Posted: 02 Sep 2019, 13:26
by temabu
Karl, I am hosting with you...is there a limit?

Re: Uploading Videos

Posted: 03 Sep 2019, 01:11
by mjau-mjau
Ahh, that explains it. Normally the upload limit is a mere 2MB for most servers!

May I propose though, with this size videos, shouldn't you be considering Vimeo or Youtube? Hosting large video files on non-video services has several disadvantages:
  • For all devices without fast internet, the video will likely stutter (frequently buffering), especially if you have only high quality / low compression video file (which I am guessing).
  • When a device starts loading the video, it will download the entire video, even if the visitor only watches 3 seconds. This can be very detrimental for a mobile device.
  • All devices will have to load the quality you uploaded, even for small low-quality screens.
  • Video services on the other hand (like youtube and vimeo), will create multiple quality versions of your videos, perfectly adapted to each device screen quality and internet connection, and the user can choose.
Although 3rd party video services are clearly superior for video hosting, you can of course host locally if you really need to. Our servers are actually set to allow 512MB uploads, but the obstacle is that we use Cloudflare for security and CDN, and they cap uploads at 100MB [ref]. For now, you would have to optimize/resize your videos to within 100MB or consider a 3rd party video service. Or if you won't be frequently uploading 100+ MB files, I could perhaps assist in getting these transferred to server another way?

Re: Uploading Videos

Posted: 25 Oct 2019, 15:58
by Mike_Chandler
So I've disconnected my cloudflare because I'm trying to upload a video that's 123mb, it's purely for client delivery, not for public viewing from me.  It has failed multiple times, it's .mp4.  My uploading attempts include mobile browsers, and desktop  browswers.  How long would I have to wait for the CloudFlare to stop working on my site to see it's 100MB restriction removed.  And for sure if I'm doing a public video that is meant for me to share then I would do it on youtube or vimeo.

Edit:  Imma try a file that's 83MB and see what happens.

Mike

Re: Uploading Videos

Posted: 26 Oct 2019, 00:06
by mjau-mjau
Hi Mike. Did you check your PHP upload_max_filesize? Even before Cloudflare can block 100MB upload attempts, your server / hosting will likely have an upload_max_filesize set way below 100MB (traditionally, on low-spec shared hosting, it's set to 2MB). You can check the value of upload_max_filesize from Panel > Tools > PHPinfo.

If you run your own server, you can change the value from php.ini. Or depending on your host, you might be able to increase the value from your hosting control panel. If not, your only option is to upload large files via FTP. After uploading, you can refresh the page in the panel, and you will see the files uploaded via FTP.

Re: Uploading Videos

Posted: 26 Oct 2019, 08:20
by Mike_Chandler
I'm using flamepix for hosting too, I reprocessed my video and it uploaded at 83mb

Re: Uploading Videos

Posted: 27 Oct 2019, 04:59
by mjau-mjau
Ahh, sorry I can't immediately recognize flamepix users by their forum usernames, and also since you mentioned that you disconnected your Cloudflare. Good job!

Re: Uploading Videos

Posted: 05 Apr 2022, 14:04
by Misux
HI!

I need to create an php.ini file with the
Code
upload_max_filesize = 512M
information inside and then i need to upload it to my Host.

But where should i have to put in into? Should i put it in /panel or where?

Can you help me?

Re: Uploading Videos

Posted: 06 Apr 2022, 02:46
by Misux
HI!
Now i have optimized the max_upload_limit on all Folders and subfolders on my host to 512M but it still doesn`t work... Do you maybe have any idea to solve the problem?

The error :
compose_video_1649177112015.mp4
Fehler SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
140.36 MB

Re: Uploading Videos

Posted: 06 Apr 2022, 06:02
by mjau-mjau
Just because you change upload_max_filesize by php.ini, doesn't necessarily mean your host supports uploading files larger than 100 or 128MB. There are also other options like post_max_size that affect upload max file size ... post_max_size will need to be set to the same as upload_max_filesize.
https://stackoverflow.com/a/6135489/3040364

If you still have problems, I would need FTP to diagnose, but it's likely something on server.

Re: Uploading Videos

Posted: 06 Apr 2022, 08:51
by Misux
:heart_eyes: :kissing_heart: YES!
Code
post_max_size = 512M
This is the solution for my Problems!

Thank you very much!