Can You Upload a You Tube Video to Google Drive

Question about Google Drive to Youtube Uploader - Thumbnail.

Question well-nigh Google Bulldoze to Youtube Uploader - Thumbnail.

TL;DR

Practically, Yes. Yous can upload to YouTube from Google Drive, using Google Colab, but it's not gonna piece of work functionally, equally it's not gonna viewable by public,

This article is written in English.

Brief Alert

Notice

  • This post intended to testify how using Google Colab supposedly could exist useful for proficient, but probably shutted downwardly past YouTube due to its possibility to be driveling by others.
  • This postal service is non to encourage others to abuse the system, as I idea this organization could be useful, especially every bit it seems more than efficient every bit everything is already in the cloud (Google Workspace), rather than doing much work by upload-download-reuploading things again.
  • This probably has the same workaround as the mirroring system implemented by others such as MultiUp.org.
  • This article is written based on my agreement only, as I have zero to little knowledge on Python topics.

Introduction

Why do I need to solve these bug?

  • Need to postal service some videos to my YouTube aqueduct.
  • The video itself is already bachelor on Google Drive.
  • Each size is also quite big, ranging from 600 MB to ii.2 GB.
  • Uploading remotely from Google Bulldoze seems more efficient, rather than re-downloading each locally, then re-uploading everything manually to YouTube.

Application/Workaround

YouTube™ Uploader for Dropbox, Bulldoze

At first, I tried this Google Workspace App, named YouTube™ Uploader for Dropbox, Drive. This app has a size limit effectually 1024 GB (if I empathise correctly, equally they said it'south one~Hundreds of MB or GB). Then, equally the videos that I take range from 600 MB to ii.two GB, I tried using the 2.2 GB first, but information technology'south not working, and showed an mistake. Then I tried the 600 MB i, but it also showed the same message.

I surrender then. I demand to find another solution.

youtube-upward by agent87 on github

Then, I found a solution in github, a repository named youtube-up, entitled Straight upload media from Google bulldoze to Youtube using google colab, by agent87. It seems like it'southward actually easier to apply and larn. Thus, steps that I did was:

  1. Set up-Upward Things on Google Deject Platform.
    • Create a new project.
    • Enable the YouTube Data API v3.
    • Create OAuth Consent Screen. And so Publish the App.
    • Create OAuth (ii.0) Client ID. Make sure that the Application blazon is Desktop app.
    • Download JSON Secret Primal. This is needed for later.
  2. Fix things on Google Bulldoze.
    • Upload the JSON Secret Fundamental file to Google Bulldoze. Place it on the root to make it easier to access after on.
    • Make sure that the video yous wanted to upload is already on "your bulldoze". If it's shared from others, copy the file first to your drive, and delete it subsequently afterwards you are washed to save storage.
  3. Time to Work in Google Colab.
    • Create a new notebook. This volition create a new Jupyter notebook to exist used for. Rename it if needed.
    • Create a new code line, then paste this first line, to clone the git to our notebook from github.
                            !git clone https://github.com/agent87/youtube_uploader.git                    
    • Now, press Ctrl + Enter to start the process then. After a few seconds, the notebook then will starting time the process by Connecting -> Initializing -> Connected, and so start processing the code-line. After the process is finished, a green checkmark will be shown later on the left side.
    • Mount Google Drive, to use it equally a repository (?) for taking out files that nosotros needed afterwards on.
    • Create another new lawmaking-line, and paste this line.
                            !cd youtube_uploader                    
    • Printing Ctrl + Enter to start the procedure.
    • Next, create another new code-line, and paste this line. This will install a youtube uploader python script (?), with it's dependence(southward) (?) to our notebook.
                            !python youtube_uploader/setup.py                    
    • Then, press Ctrl + Enter to first the process.
    • Final, to start uploading, create another new code-line, and paste this line.
                            !python2 youtube_uploader/upload.py                    
    • Press Ctrl + Enter to start the process.
    • Next, fill the area with following items:
      1. First, with your clandestine JSON cardinal.
        • Open the Google Drive folder that we have mounted before.
        • Right-click your json file, and copy the path to this file.
        • Paste the path in the processing code-line.
        • Press enter subsequently this.
      2. Next, select the video that you wanted to upload.
        • Open up the Google Drive binder that we have mounted before.
        • Right-click the file, then copy the path to this file.
        • Paste the path in the processing code-line.
        • Press enter again to go along.
      3. Now, we need to authorize the awarding.
        • Click the URL on the lawmaking-line.
        • Select the channel that you wanted to upload to.
        • Click Advanced to go along.
        • Choose Go To "Your application name" (unsafe) to go along.
        • Printing proceed.
        • Click the copy icon to copy the code.
        • Paste the code in the processing code-line.
        • Press enter to continue.
      4. Lastly, wait for the notebook to upload the file...
      5. Afterwards a few seconds (depending on your file size), it will finish uploading, by showing Video id "xxxx" was successfully uploaded.
      6. Nosotros're done. That's it. You can check your YouTube Studio if the video is uploaded already with the same URL ID.

At first, I felt happy, as it showed upwardly equally Processing... on the channel, equally a sign that information technology's actually working equally intended. But and so... After inserting the metadata, and changing the Visibility option from Private to Public, it suddenly changed itself into Private (locked) with Terms and policies on the Restrictions tab. This means the video tin can only be viewed by myself, and no one else, which basically... unusable (unless you wanted to make your channel equally an annal channel, which also not practical to do). And so... I guess it's time to notice another workaround.

Uploading-video-on-youtube past sandeepyadav1478 on github

Next, I found another repository on github, by sandeepyadav1478. Practically, information technology's the same step, as we already have a json secret key and prepared all needed files on Google Drive. The only difference is iii things:

  1. video_dir, ways yous need to copy the "path" toward where your video(s) are located on Google Drive.
  2. video_urls_file, for this, I copied the path to ane of the videos in the folder. So...
  3. youtube_secret, means yous demand to copy the path to your json secret key.

And that's it. Afterward pressing

Ctrl + Enter

in the concluding code-line, the process will begin, and you simply need to look. Merely in that location'south another departure. The previous repository needs usa to

upload each video, one past 1

. But this one, it will

upload every video "in the folder"

. So y'all need to make sure that yous choose the right path.

Simply as the previous ane, it'due south still not working functionally. So... It's useless in the end...

Cease Product

End Product of Trying to Upload Videos using Google Colab.

C. Videos that I uploaded manually; B. Videos that I uploaded using notebook past sandeepyadav1478; and A. Videos that I uploaded using notebook past agent87.

Why does this thing continue happening?

I wonder why you couldn't change the video into another Visibility option equally it's uploaded already. After lurking around on the internet, I found the reply. In short, it was due to our app that is not verified past Google. And the verification process will concluding for days too based on some comments... You tin read more of it here: Using Youtube Data API makes my videos private on upload. Which means, yeah it'southward just not gonna piece of work functionally.

Manually

In the cease, due to none of these methods actually working, I ended up downloading all of these videos, then re-upload it once again to the channel. And it's working, like how it is supposed to exist.


Conclusion

Yes, it's just not working. The workaround does work, every bit each video is uploaded already on the channel. Merely functionally, none of these is viewable by the public. So it'southward no utilize and so.

slocumhatumer.blogspot.com

Source: https://tech.justadli.page/2021/11/can-you-upload-to-youtube-directly-from.html

0 Response to "Can You Upload a You Tube Video to Google Drive"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel