This python3 code will add intro + outro + logo to your video and then will upload your edited video to YouTube, including all video details by a single click.

Overview

alt text

Python3 Video Editor + YouTube API Uploader

This Python3 code allows you to add intro + outro + logo + upload complete video, including all video details to YouTube by a single click.

What exactly is this script doing?

It calls two main functions Video Editor and then Video Uploader.

Note: you can disable editor or uploader in case you want to use just single function in start_process(), simply add "#" before the call row.

Here is complete steps:

Video Editor

  1. Adding intro clip (replace intro.mp4 with your own file)
  2. Adding logo (any gif file or edit the code for png, jpg formats)
  3. Adding outro clip (replace outro.mp4 with your own file)

Video Uploader

  1. Uploading Video (uploading edited file)
  2. Adding Title
  3. Adding Complete Description + urls + emojis + tags + any info you desire
  4. Adding tags
  5. Video will be "Private", edit status manually once uploaded. Note: you can't upload with API as public. Unless you pass audit with google
  6. Uploading thumbnail photo (YouTube account must be confirmed)

How to use?

  1. Use Python 3.10 or newer, I am using 3.10.
  2. Install all python packages (in case of an issue, see my requirements.txt, install equal versions), maybe moviepy will require to install imagemagick (https://imagemagick.org/script/download.php), I originally wrote this code for much larger project and can't remember if it was required for the logo editing.
  3. Create cloud project, install YouTube Data API v3. Can do it at: https://console.cloud.google.com, I will upload complete video tutorial soon.
  4. Download OAuth client secrets file from google clouds, rename it to: "client_secrets.json" and place it in the root folder.
  5. Run main.py
  6. Browser will be opened automatically. You will be asked to approve the app by signing into your YouTube account. Once approved, credentials will be saved to credentials.json, this is temporary file in the root folder. This is 1 time process basically and you won't be asked again. Unless your credentials expired or you want to change the YouTube account, if so then simply remove the credentials.json file and re-do the approval.

Note: All file locations, directories, video details can be edited in videoDetails.py, I added sample files but please don't use these for production beyond testings.

Can you help me? I want to integrate it into my project?

Short answer, yes.

But it depends on how much time it will require. If you need my help, you can contact me on LinkedIn: https://www.linkedin.com/in/georgekhananaev/

Limitations

By default, your app will be restricted to 10000 quotas a day. It takes 1600 quotas to upload a single video. Which means you can upload just 6 videos a day. You can't post videos as "public" directly by API. Which means once video is uploaded, you must log into your YouTube account and then change the status to "public" manually, if you want to publish it. Otherwise, it will stay private to you.

To lift these limitations as shown above, you must do audit with google, url: https://support.google.com/code/contact/oauth_quota_increase

You can bypass 2nd limitation by creating a script with Selenium. (I won't help with this, find yourself) You can upload more than 6 videos a day, if you upload simultaneity from different apps(projects). However, YouTube might consider this as a spam. I suggest you read the policy first.

This project has absolutely no warranty. Do not use it to create spam. Do not use it for any illegal activities. Please follow YouTube terms and policy.

You might also like...

A python package that provides Nigerian bank details(bank code, cbn code, name & ussd code)

📦 nigeria_banks Nigeria Banks is a basic python package that returns details of particular bank in Nigeria. Installation You can install nigeria_bank

Aug 6, 2022

Blender Add-on for Pose and Animation Library management. This add-on will allow you to store and reuse poses and animations from one blender file to another.

Blender Add-on for Pose and Animation Library management. This add-on will allow you to store and reuse poses and animations from one blender file to another.

GAOLIB GAOLIB Copyright (C) 2022 GAO SHAN PICTURES is a GAO SHAN PICTURES Blender add-on developped to manage a library of poses and animations. This

Sep 19, 2022

Open all the tabs you need with just a click!

autoSite Open all the tabs you need with just a click! Well, 5 or 6 clicks anyways. Download Extract Open the folder Maybe open another one 5 and 6. D

Apr 21, 2022

Modified reddit-place-script to bring the Genshin Impact logo back to the canvas.

genshin-place-war by genshindb.net Modified reddit-place-script to bring the Genshin Impact logo back to the canvas. UPDATE People have decided to dra

Apr 2, 2022

[CVPR 2022] Aesthetic Text Logo Synthesis via Content-aware Layout Inferring

[CVPR 2022] Aesthetic Text Logo Synthesis via Content-aware Layout Inferring

TextLogoLayout This is the official Pytorch implementation of the paper: Aesthetic Text Logo Synthesis via Content-aware Layout Inferring. CVPR 2022.

Sep 16, 2022

Logo FireDM - a python open source (Internet Download Manager) with multi-connections, high speed engine

Logo FireDM is a python open source (Internet Download Manager) with multi-connections, high speed engine, it downloads general files and videos from youtube and tons of other streaming websites .

Sep 11, 2022

☘️ logo generate bot telegram ☘️

☘️ logo generate bot telegram ☘️

Logo-Generate-Bot 🛠 Configuring Environments API_HASH Your Api Hash, Generate It From TG API BOT API_ID You Api Id, Generate It From TG API BOT BOT_T

Apr 21, 2022

PowerFul Logo Maker Bot 🤖

 PowerFul Logo Maker Bot 🤖

OutruiX Logo Maker Bot ✨ PowerFul Logo Maker Bot 🤖 Deploy your Logo Maker Bot (Deploy Heroku) Deploy Your Logo Maker Bot (Okteto) Support Channel Sup

Jun 29, 2022

Email Spoofer Tool for Spoofing Gmail Addresses. 100% Inbox Rate with orginal emailer's logo.

Email Spoofer Tool for Spoofing Gmail Addresses. 100% Inbox Rate with orginal emailer's logo.

Gmail Spoofer is a Python Script that helps to Spoof Email Addresses, The mail spoofed by this tool lands 100% on inbox and the tool is very easy to use. The email will be received with orginal user's logo.

Sep 13, 2022
Releases(v2.0.1)
Owner
George Khananaev
For any questions connect to me at LinkedIn: https://www.linkedin.com/in/georgekhananaev/
George Khananaev
A simple python calculator made with tkinter. The code is clean and can be easily edited.

Python-Calculator A simple python calculator made with tkinter. The code is clean and can be easily edited. Setup This app requires python and tkinter

BananaBoii 2 Apr 24, 2022
Internet Speed test app. Open the application and click the start button to run the app, take a look at your upload, download and even ping results.

Internet Speed test app. Open the application and click the start button to run the app, take a look at your upload, download and even ping results. while the loading there are some funny quotes that have been written as the title with the process is going on, have fun looking at them.

Chibong 2 Apr 27, 2022
Automate Your Raw Coding Video and Music then let the Your Device to Compile Them in a single gapless video.

Time-lapse-Video-Creator Automate Your Raw Coding Video and Music then let the Your Device to Compile Them in a single output. Written in Python with

Jovan 2 Aug 10, 2022
Backports python3.10 typing features into python3.8 and python3.9.

sigparse Backports python3.10 typing features into python3.8 and 3.9. Example import sigparse def func(param_a: list[str], param_b: str | int, param_

null 4 Sep 8, 2022
This repository provides details and links to the ACL anthology corpus/collection including .bib, .pdf and grobid extractions of the pdfs

ACL Anthology Corpus - Full Text ?? This repository provides full-text and metadata to the ACL anthology collection including .pdf files and grobid ex

Shaurya Rohatgi 92 Sep 16, 2022
One click termux all pkg install A automotive tool inatall all basick ccommand in termux you don't need to be remembered or typing

One click termux all pkg install A automotive tool inatall all basick ccommand in termux you don't need to be remembered or typing

AkashBlackHat 11 Sep 21, 2022
This is the data scrapped of all the pitches made up potential startup's to established bussiness tycoons of India with all the details of Investments made, equity share, Name of investor etc.

SharkTankInvestor This is the data scrapped of all the pitches made up potential startup's to established bussiness tycoons of India with all the deta

Subradip Poddar 2 Aug 2, 2022
Pinyin input method in Python. Homework of Intro. to AI course, 2022 Spring @THU.

input-method Pinyin input method in Python. Homework of Intro. to AI course, 2022 Spring @THU. The Principle 隐 Markov 模型(HMM) Hidden Markov Model (HMM

西北望长安 6 Apr 9, 2022
programming-intro-lab-10-FragaSantana created by GitHub Classroom

Object Oriented Programming in Python 3 Each folder has an example with corresponding tests of a class with one or two features of the Python Object O

Boolean Academia 1 Sep 8, 2022
Hemangani 1 Mar 5, 2022