mp4-dash-record
v0.1.0
Published
Merge audio and video with ffmpeg.
Downloads
21
Readme
Merge audio and video with ffmpeg.
Write in buffers, stored in memory and then on save piped into ffmpeg.
API
const recorder = new DASHSAVE({ffmpegPath:'./bin/ffmpeg'})
recorder.imageExt =how to save the base64 images. default: jpgrecorder.saveDirectory =where to save all the files. Can override in save optionsaddAudio(buffer: typedarray)any audio codecaddFrame(buffer: typedarray)any video codecsaveImage(base64Str, options){saveDir:"path"}. Specify type withimageExtsave(options: {})See below
{
width, //output width
height, //output height
saveDir, //override
inputOptions, //ffmpeg input
outputOptions,
withBuffers
}See example.js
