vimeo / vimeo.php

Official PHP library for the Vimeo API.
https://developer.vimeo.com
Apache License 2.0
450 stars 210 forks source link

Why Vimeo is taking more video uploading time from my website to vimeo through API rather then upload directly on video upload page? #176

Open nishadhasan opened 6 years ago

nishadhasan commented 6 years ago

I have another big issue. I tried to compare the upload time from my website to Vimeo and direct Vimeo upload page. I saw a big difference. A video which size is 208MB is take just 6 min when I upload it on Vimeo Upload page but the same video when I tried to upload from my website it takes 27 min to finish the upload. Why does it happen? Is there any wrong with the code or generally it takes more time to upload through API? Please make me clear with this. I am in trouble about the upload time. Thanks in advance.

tommypenner commented 6 years ago

What upload method are you using with the PHP library? Are you consistently encountering slow upload speeds when using the API to upload?

We need technical details to help troubleshoot your report. Thanks!

nishadhasan commented 6 years ago

I am using Form Post method to upload the videos from website to Vimeo. Yes, I am consistently encountering slow upload speeds when I am using the API to upload. Please help me. I am in trouble.

nishadhasan commented 6 years ago

I am waiting for your answer include the solution. Please help me.

erunion commented 6 years ago

@nishadhasan It's hard to quantify what the problem is here without more information. How large of files are you uploading? What are the speeds you're receiving? Where is the person who is uploading the video located in the world? What is their internet speed?

nishadhasan commented 6 years ago

I m using POST method also using the library which is given in GitHub. I am trying to upload videos minimum 200MB. For testing, someone tries to upload the videos from France. We are also trying to test with uploading videos. We are from Bangladesh. Our internet connection is good. The users are uploading the videos to those who are registered on our website. With your POST method API, we allow users to upload videos in our Plus account. Hope you understand everything.

audiostrom commented 6 years ago

We are having the same issue. Uploading via the PHP api is very slow. (a bit hard to measure) like a 1/3 of the speed of just using the web-page. We are uploading large files (3 GB)

wurlJAM commented 5 years ago

im having the same issue, i try with test videos of less than a mb and it even exceds maximum execution time. tried with 60 sec, 2 min and nothing. the video as it seems it strarts the upload because i get the video on vimeo account, but stuck at uploading. tried sending it through form, or directly in php getting the asset from the file system. and nothing. it gets stuck.

image

ooredroxoo commented 5 years ago

Same here.

crmabs commented 4 years ago

well, i run into the same issue. my solution was to set the upload chunk size to 100 Mb. drawback: i get progress by every 100Mb upload... Acceptable for me at the moment.

ikramooe commented 4 years ago

i'm having the same issue any solution

AbhijitAQB commented 4 years ago

well, i run into the same issue. my solution was to set the upload chunk size to 100 Mb. drawback: i get progress by every 100Mb upload... Acceptable for me at the moment.

Hi, Are you talking about https://developer.vimeo.com/api/upload/videos#resumable-approach process? I need to use CURL here but is it possible to achieve this resumable (split in chunks) upload using their PHP sdk itself?

AbhijitAQB commented 4 years ago

I found a Tus js library and used to chunk a file when upload. I used the chunkSize property to set the chunk size (I set it to 128 MB). Check this : https://github.com/tus/tus-js-client

Before instantiating a new Tus upload needed to execute the first step from : https://developer.vimeo.com/api/upload/videos#resumable-approach-step-1

Then needed to set upload.upload_link from the response of API call to uploadUrl property (when instantiating a new Tus upload). Refer to Upload to Vimeo section in : https://github.com/tus/tus-js-client/blob/master/docs/usage.md

It worked for me nicely. Happy Coding!