Socket
Socket
Sign inDemoInstall

vidar

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vidar

A flexible video-editing library for the browser


Version published
Maintainers
1
Created

Changelog

Source

[0.7.0] - 2020-12-17

Added

  • Importing with CommonJS syntax.
  • MIME type option for record.

Changed

  • Movies are no longer hidden and silent when exporting.
  • Media layers' audio nodes can now be reconnected to other audio nodes.
  • refresh can be called when the movie is playing or recording to force render.

Removed

  • Image layers' imageX, imageY, imageWidth and imageHeight properties. Every image is now rendered over its entire layer.
  • Video layers' mediaX, mediaY, mediaWidth and mediaHeight properties. Every video is now rendered over its entire layer.

Fixed

  • Fix recording with only video or only audio.
  • Video layers' clipWidth and clipHeight are no longer treated as invalid options.
  • Image layers' clipWidth and clipHeight are no longer set in the constructor, so if the clipWidth option is not supplied and the layer's width changes clipWidth uses the new width.
  • Video and image layers' width and height default to their clipWidth and clipHeight respectively.
  • Elliptical mask effect throwing TypeError: path.split is not a function.
  • In shader effects, textures whose dimensions are not powers of two accept interpolation filters.
  • No longer ignore video layers' mediaWidth option.
  • Treat layers' enabled property as dynamic (allowing for keyframes and functions).
  • Make each media layer's duration depend on its playback rate.

Security

  • Update vulnerable dependencies.

Readme

Source

Vidar

Build Status

A video editor for developers

Screenshot

Vidar is a completely in-browser video-editing framework. Similar to GUI-based 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. Being very flexible and extendable, you can choose to only use the core components or define your own.

Features

  • Export video to blob
  • Write your own layers and effects
  • Write a function for a property
  • Keyframes
  • Built-in hardware accelerated visual effects
  • More coming soon

Installation

npm install vidar

Usage

You can use CommonJS syntax:

import vd from 'vidar'

Or include it as a global vd:

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

Then, to create a movie (a Vidar "project")

var movie = new vd.Movie(canvas);

Then, add layers

movie
  // add a solid blue layer starting at 0s and lasting 3s and filling the entire screen
  .addLayer(new vd.layer.Visual(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}));

Finally, start the movie

movie.play();

Further Reading

Contributing

See the contributing guide

License

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

Keywords

FAQs

Last updated on 18 Dec 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc