etro-js/etro

★ 1,149⑂ 97

Typescript video-editing library for the browser

About etro-js/etro

etro-js/etro is an open-source project on GitHub, mainly written in TypeScript. Typescript video-editing library for the browser It currently holds 1,149 stars and 97 forks with 0 open issues, and was last pushed on an unknown date (repository created unknown).

Project Overview

AI Homed tracks it on the AI Video Projects board and on the AI AI Video Projects list.

GitHub Repository Details

Repository etro-js/etro · default branch - · size 0 KB · watchers 0 · source: GitHub REST API and repository README

README

Etro

Build Status Discord

Etro is a framework-agnostic TypeScript library for programmatically editing videos. It lets you composite layers and add filters. Etro includes text, video, audio and image layers, along with a variety of GLSL filters. You can also define your own layers and filters with TypeScript and GLSL.

Features

Installation

npm i etro

Basic Usage

Let's look at an example:

import etro from 'etro'

var movie = new etro.Movie({ canvas: outputCanvas }) var layer = new etro.layer.Video({ startTime: 0, source: videoElement }) // the layer starts at 0s movie.addLayer(layer)

movie.record({ frameRate: 24 }) // or just play if you don't need to save it .then(blob => ...)

The blob could then be downloaded as a video file or displayed using a element.

See the documentation for a list of all built-in layers.

Effects

Effects can transform the output of a layer or movie:

var layer = new etro.layer.Video({ startTime: 0, source: videoElement })
    .addEffect(new etro.effect.Brightness({ brightness: +100) }))

See the documentation for a list of all built-in effects.

Dynamic Properties

Most properties also support keyframes and functions:

// Keyframes
layer.effects[0].brightness = new etro.KeyFrame(
  [0, -75],  // brightness == -75 at 0 seconds
  [2, +75]  // +75 at 2 seconds
)

// Function layer.effects[0].brightness = () => 100 * Math.random() - 50

See the documentation for more info.

Using in Node

To use Etro in Node, see the wrapper:

Running the Examples

Start the development server (used for convenience during development; Etro does not require a server):

npm i
npm run build
npm start

Now you can open any example (such as http://127.0.0.1:8080/examples/introduction/hello-world1.html).

Further Reading

Contributing

See the contributing guide

License

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

GitHub Stars & Activity

1,149Stars
97Forks
0Open issues
TypeScriptLanguage

GitHub Popularity

GitHub stars1,149
Forks97
Open issues0
Primary languageTypeScript
License-
Stars gained today0
Created-
Last pushed-

Trending History

Trending statusnot on today's boards

Related AI Projects

1

HBAI-Ltd / Toonflow-app

TypeScript★ 15,838⑂ 2,840
2

waooAI / waoowaoo

TypeScript★ 14,217⑂ 3,122
3

hypit-ai / hypit

TypeScript★ 12,082⑂ 1,456
4

Vincentwei1021 / video-shotcraft

TypeScript★ 9,126⑂ 828
5

tmoroney / auto-subs

TypeScript★ 4,255⑂ 286
6

getopenscreen / openscreen

TypeScript★ 3,109⑂ 195
7

trykimu / videoeditor

TypeScript★ 2,228⑂ 251
8

walterlow / freecut

TypeScript★ 2,189⑂ 342

More AI Rankings