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

Use webcodec to accelerate lottie to video #70

Open
Dramalf opened this issue Apr 25, 2023 · 0 comments
Open

Use webcodec to accelerate lottie to video #70

Dramalf opened this issue Apr 25, 2023 · 0 comments

Comments

@Dramalf
Copy link

Dramalf commented Apr 25, 2023

Use puppeteer in nodejs using webcodec to convert lottie file to mp4 video

No need to take screenshot of each frame (it takes much time)

Its workflow basiclly looks like this:

  • load in puppeteer lottie-web
  • encode each frame by webcodec API : VideoEncoder and VideoFrame
  • frames -> buffer -> blob -> file
  • send back to nodejs
  • use ffmpeg to generate video

I write a demo here https://github.com/Dramalf/puppeteer-webcodec-lottie/tree/master

I think it can be merged into this project

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

1 participant