Giter VIP home page Giter VIP logo

vimeo-to-youtube's Introduction

License: GPL v3 JavaScript Style Guide Commitizen friendly

Vimeo to YouTube

A Node.js CLI to easily transfer your videos from Vimeo to YouTube

Download all your videos from Vimeo with the push of a button, and upload them to YouTube with all their metadata.

cli-demo

Features

  • Highly customizable
  • Download and upload videos in parallel
  • Keep metadata
  • Transfer directly without any disk write

Requirements

Quick start

Clone this repo:

git clone https://github.com/hichamelkaddioui/vimeo-to-youtube

Install dependencies:

npm install

Create a .env file based on .env.dist, fill it with your API keys and run

npm start

Environment variables

You can set these variables either by editing the .env file or by setting them before running the CLI. E.g.:

LOGGER_LEVEL=debug npm start

Data folder ($DATA_FOLDER) and config folder ($CONFIG_FOLDER) are resolved with platform-folders.

Vimeo API

Key Type Description Default
VIMEO_CLIENT_ID String The Client ID of your Vimeo application Required
VIMEO_CLIENT_SECRET String The Client Secret of your Vimeo application Required
VIMEO_ACCESS_TOKEN String A generated Access Token Required
VIMEO_VIDEOS_PER_PAGE Number The number of videos to fetch per request. More info here 100
VIMEO_VIDEOS_FIELDS String The fields of the video object to filter from the Vimeo API. More info here 'resource_key,name,description,tags,files,download,privacy,categories'

YouTube API

Key Type Description Default
YOUTUBE_CLIENT_ID String The Client ID of your YouTube application Required
YOUTUBE_PROJECT_ID String The Project ID of your YouTube application Required
YOUTUBE_AUTH_URI String OAuth2 auth URI 'https://accounts.google.com/o/oauth2/auth'
YOUTUBE_TOKEN_URI String OAuth2 token URI 'https://www.googleapis.com/oauth2/v3/token'
YOUTUBE_AUTH_PROVIDER_X509_CERT_URL String OAuth2 certs URL 'https://www.googleapis.com/oauth2/v1/certs'
YOUTUBE_CLIENT_SECRET String The Client Secret of your YouTube application Required
YOUTUBE_REDIRECT_URIS String OAuth2 redirect URIs 'urn:ietf:wg:oauth:2.0:oob,http://localhost'
YOUTUBE_TOKEN_PATH String The path of the file in which to store the access token '$CONFIG_FOLDER/vimeo-to-youtube/youtube-oauth2-credentials.json'

Config

Key Type Description Default
DB_FILENAME String The path of the local database file '$DATA_FOLDER/vimeo-to-youtube/db/videos.db'
DOWNLOAD_DEST String The path of the folder into which store the downloaded video files '$DATA_FOLDER/vimeo-to-youtube/files'
DOWNLOAD_PARALLEL_VIDEOS Number The number of videos to download in parallel 3
UPLOAD_PARALLEL_VIDEOS Number The number of videos to upload in parallel 10
LOGGER_LEVEL String The level of log to display 'info'

vimeo-to-youtube's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

bunkus1 tux889

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.