Skip to content

This tool allows to compose in the browser together videos, audios and pre-defined canvas animations based on a declarative timeline

Notifications You must be signed in to change notification settings

dontcallmedom/web-video-composer

Repository files navigation

Web Video Composer

This tool allows to compose together videos, audios and pre-defined canvas animations based on a declarative timeline. It can also adjust WebVTT timed text tracks bound to the original timed assets to fit into the new timeline.

Timeline declaration

A timeline declaration starts with a list associating assets with ids, e.g.

v1: video1.mp4 options

v2: video2.webm options

The id must start with one of the following letters based on the content of the asset, and be followed by numbers:

  • v for videos
  • a for audio files
  • i for images
  • t for "running title"-canvas animations (see #2)

options is a space-separate list of option; the following options are recognized:

  • texttrackkind=url where texttrackind is one of "captions", "descriptions" or other recognized HTML text tracks, and url points to a WebVTT track associated with the asset

Two line returns after the list of assets starts a list of time blocks with the following template:

timedecl1->timedecl2

operation asset_id1 options

operation asset_id2 options

The following formats are recognizes for time declarations (timedecl1 & timedecl2 above):

  • hh:mm:ss.nnn (hours, minutes, seconds and miliseconds) to define the absolute time at which the operations must start (resp. end)
  • +hh:mm:ss.nnn (resp. -hh:mm:ss.nnn) to define the delay after (resp. the time before) the last time declaration (either the end time of the previous block, or the start time of the current range) at which the operations must start/end
  • >asset_id indicates until the end of the said asset
  • +asset_id (resp. -asset_id) indicates a delay of the length of the said asset (see #1)

The following operations are recognized:

  • play
  • pause

The follow options for operations are recognized:

  • fadein
  • fadeout

About

This tool allows to compose in the browser together videos, audios and pre-defined canvas animations based on a declarative timeline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published