V
V
Volodya2016-02-27 14:58:49
JavaScript
Volodya, 2016-02-27 14:58:49

How to save a file created with js + canvas to mp4?

How to create a video file and attach it there on the alpha channel, for example, I found the text as a whole .


EXAMPLE
3 layers = video + plate + text (we change the text simply in the HTML text field, select from several plates and all this is superimposed on the video file)
f431c1facbad4049ae9ecf18de0d7561.jpg

But then, how to download the created file assembled using js and canvas in mp4 format to a computer? Didn't find any info anywhere. Maybe you know where to dig?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
RubaXa, 2016-02-27
@Kachimov

First line on Google: stackoverflow.com/questions/13405129/javascript-cr...

function saveAs(blob, file) {
   if (navigator.msSaveBlob) {
      navigator.msSaveBlob(blob, file);
   } else {
    var a = docuemnt.createElement("a");
    a.href = URL.createObjectURL(blob);
    a.download = file;
    a.click();
   }
}

N
Nicholas, 2016-02-27
@ACCNCC

it is forbidden

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question