Has anyone been able upload videos from Google Drive to Cloudflare Stream? I’ve got a bunch of videos which are taking aaaaages uploading from my harddrive (as per other threads).
They’re also on Google Drive but as there’s no .mp4 link from GDrive I don’t know if I can use the link option?
I didn’t try it out yet, but a workaround would be to upload the videos from Google Drive to YouTube and then from YouTube to Cloudflare Stream. Here’s a link to the Google Drive to YouTube part:
I’m having difficulties with this… from googling and testing I’m almost positive it’s because of the no virus scan warning on files above 100mb in google drive. I successfully used this method with a 77mb video file but trying with all larger files pops the warning “Invalid URL (Code: 10010)”.
The curl and tuspy scripts that I’ve tried also seem to fail when trying to pull google drive videos, presumably also because of the virus scan warning.
Any known way around this? Would be nice to find a solution as I have many GB of video to move from google drive to cloudflare and it’s very painful downloading and re-uploading in the cloudflare UI.
Maybe one solution could be to transfer data from Google Drive to Google Cloud Storage (which I assume should be very fast since all is in Google’s infrastructure) and then use the public link from google cloud in Stream. This step should also be fast since all of the transfer happens in the cloud.
There are quite a few customers that use Google Cloud Storage to transfer videos to Stream, so once the videos are in Google Cloud from Google Drive, there should be no problems.
Set your bucket to uniform access permissions so all objects in the bucket inherit the permissions, and grant the bucket public access to make the transfers: Make data public | Cloud Storage | Google Cloud
Objects are then assigned public URLs which are recognized by Cloudflare stream’s URL uploader and I’m sure they’ll work programmatically as well.
Or use file-specific permissions if your case calls for it. Regardless remember to revoke public access in the cloud bucket after uploading to stream.
This is a million times faster than downloading from drive and uploading to stream through the ui.
HTH and thanks again @renan for pointing in the right direction.