canvas2video icon indicating copy to clipboard operation
canvas2video copied to clipboard

save canvas to webm video

Open millzee01 opened this issue 5 years ago • 1 comments

Hi,

The library works great when I set the outVideoType to mp4, however the canvas animation I am recording is 1660 x 960 so the mp4 takes quite a long time to create.

When it does create the video it plays perfect and downloads fine.

If I set outVideoType to webm the video renders much much faster and plays in the browser (chrome).

The problem I have is that when I download the video, it's black, however the video element plays fine.

Is there a parameter I am missing when I create the video?

I just use:

const canvas2videoInstance = new Canvas2Video({
    canvas: streamInput,
    outVideoType: "mp4"
});	

millzee01 avatar Feb 01 '21 09:02 millzee01

because webm video convert to mp4 is too slowly

welefen avatar Feb 22 '21 10:02 welefen