Skip to content

Library for making video using provided images and specified soundtrack

Notifications You must be signed in to change notification settings

tseylerd/Webm-writer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webm-writer

Merge WebP images and ogg vorbis audio in WebM video file.

Run build.sh first.

Example:

var fs = require('fs');  
var Video = require('src/writer.js');
var video = new Video();  
var image1 = fs.readFileSync("1.webp");  
var image2 = fs.readFileSync("2.webp");  
var audio = fs.readFileSync("1.ogg");
var images = [image1.toString('base64'), image2.toString('base64')];  
video.addVideoFrame(images[0], 30000); //duration in millis  
video.addVideoFrame(images[1], 30000);  
video.addAudioTrack(audio);  
var buffer = video.compile() //result buffer  

About

Library for making video using provided images and specified soundtrack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published