Hacker News new | past | comments | ask | show | jobs | submit login

Just curious about how you technically do the export to MP4. Can you share any details? Do you play it back in real time and record it, or do you have a way of exporting it quicker than real time?? What technical approach do you use if you don't mind me asking? Thanks!



Quickly summarized we use puppeteer headfull with docker to do a recording of the video. So you’re right, it’s playing it back, not faster than real time. I might write more about the specifics in the future. It’s mostly open source code, you can start here: https://github.com/Ventricule/html2screen


Thanks for the reply. I was wondering if you were using the headfull chrome approach! I for one would definitely love to read some more specifics on this in the future when you have time! (And if there's anything you can open source please do!). I did a quick side project proof of concept of automating recording a webpage with video and other elements a few months ago. It's a shame there's not a way of just using headless chrome but my research let me to the headfull docker approach, so I'm happy to hear I landed on the same approach you did! Did you discover any novel tricks beyond what's been written about/open sourced already? What was the trickiest part for you?


No worries! Html2screen was a very good start, I modified it to support audio recording and got it to a pretty good state in a couple of days. After that the hard thing was just to run it automated on AWS. I used AWS Batch and Step Functions for that. When it’s a bit more stable I’ll definitely write about it and might open source it later. If you want to discuss more, feel free to email me at michiel@tella.tv




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: