Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

save canvas to webm video #3

Open
millzee01 opened this issue Feb 1, 2021 · 1 comment
Open

save canvas to webm video #3

millzee01 opened this issue Feb 1, 2021 · 1 comment

Comments

@millzee01
Copy link

millzee01 commented Feb 1, 2021

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"
});	
@welefen
Copy link
Owner

welefen commented Feb 22, 2021

because webm video convert to mp4 is too slowly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants