0.1.0 • Published 7 years ago
mp4-dash-record v0.1.0
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 withimageExt
save(options: {})
See below
{
width, //output width
height, //output height
saveDir, //override
inputOptions, //ffmpeg input
outputOptions,
withBuffers
}
See example.js
0.1.0
7 years ago