Giter VIP home page Giter VIP logo

mux-batch-import's Introduction

Mux batch import

Import a list of videos to Mux with ease.

Setup

Copy .env.example to .env and fill the environment variables based on the Mux access token you got from Mux dashboard.

Running the migration

  1. Clone the repository and install dependencies using NPM or Yarn;
  2. Fill video list data inside data/videos.json;
  3. Run yarn run-migration or npm run run-migration;

All of the videos from videos.json will be uploaded directly to Mux without saving them to the disk.

This process is kinda slow but, if you have a good internet connection and hardware, you can increment the concurrency inside src/lib/queue.ts to migrate more videos in parallel.

Getting the Playback ID list

If you're not using signed URLs, you'll need the playback ID to play the videos.

  1. Open up the file src/GetPlaybackIds.ts;
  2. At line 18 you'll be able to change the page every time you run this script (for now you have to manually set the page number so if you have 850 assets you'll have to run this script 9 times);
  3. Run yarn get-playback-ids or npm run get-playback-ids;

The script will fill the data/export.csv file with the data including the original video ID from data/videos.json, the playback ID e the duration.

mux-batch-import's People

Contributors

diego3g avatar

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.