r/learnprogramming • u/BevWeb • 18d ago
Rendering video from a local webpage
I run a youtube channel for uploading albums, and the visuals consist of a makeshift music player made in html and javascript. I've been screen-recording this webpage to make a video out of it, but that results in skipping/lagging, so I'm interested in rendering the page frame-by-frame instead.
My hope is to use ffmpeg to screenshot-> frame advance the page (this is the easy part) -> repeat -> merge screenshots into a video -> add audio, but my research into ffmpeg has convinced me it's out of my skill level, so. How should I go about learning here, or, is there a better approach to the problem altogether?
1
u/rupertavery64 18d ago
Can you share more details about the makeshift music player?
If you can render it to canvas, you can probably capture it as a stream using canvas.captureStream and then the MediaRecorder API to save it as MP4
1
u/Different_Pain5781 14d ago
Puppeteer for generating the frames. That's probably the simplest route. freeCodeCamp has decent Node tutorials but if the goal is learning actual backend logic then Boot dev is worth a look. Writing and debugging code beats passively watching another 40 minute YouTube tutorial.