GithubHelp home page GithubHelp logo

krdimitrov / vidar.js Goto Github PK

View Code? Open in Web Editor NEW

This project forked from etro-js/etro

0.0 0.0 0.0 1.76 MB

A flexible video-editing library for the browser

License: GNU General Public License v3.0

JavaScript 100.00%

vidar.js's Introduction

Vidar.js

A video editor for developers

Screenshot

Vidar.js is an in-browser video-editing framework. Similar to video-editing software, it lets you layer media and other content on a timeline. Audio, image, video and other tracks are supported, along with powerful video and audio manipulation to existing tracks.

Some things you can do with this framework are making a video-editor with a UI, making a machine-generated video, or just having fun mixing videos. Being very flexible and extendable, you can choose to only use the core components or define your own.

Installation

Use one of the bundled files.

Usage

<script src="vidar-iife.js"></script>

or

import vd from 'vidar-esm.js';

Then, to create a movie (which is a project)

const movie = new vd.Movie(canvas);

Then, add layers

movie
  // add an empty blue layer starting at 0s and lasting 3s and filling the entire screen
  .addLayer(new vd.layer.Base(0, 3, {background: 'blue'}))
  // add a cropped video layer starting at 2.5s
  .addLayer(new vd.layer.Video(2.5, video, {mediaX: 10, mediaY: -25}));

To start the movie, just like any ol' <video> or <audio>, use .play()

movie.play();

License

Distributed under GNU General Public License v3. See LICENSE for more information.

Further Reading

To learn more, please see the work-in-progress wiki.

Contributing

  1. Fork it (https://github.com/clabe45/vidar.js/fork)
  2. Create your feature branch (git checkout -b fooBar)
  3. Commit your changes (git commit -m ':emoji: Concise description', use this as an emoji reference)
  4. Push to branch (git push origin fooBar)
  5. Create a Pull Request

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.