Steve Tung

Results 73 comments of Steve Tung

Can you verify that your changes result in less file descriptors? From a quick, cursory search, I didn't find too much about beginning-of-file `require`s being more efficient than in-program ones,...

This is a planned feature in an upcoming release, via custom plugins. It'll be called something like `plugin.beforeLoad`.

By default, puppeteer installs a specific version of Chromium, and the version used in timesnap is fairly old. You can override the browser used by separately installing Chromium or Chrome...

Hi, thanks for filing this! I was wondering when I wrote the video handling code whether anyone would have this use case. Thanks for an actual real world case! Currently...

`timecut` and its underlying library `timesnap` work by implementing custom `requestAnimationFrame` functions that can be manually called on demand, essentially creating a virtual timeline. In your case, I suspect the...

I should also add that videos modified via `timesnap` aren't really "played," but rather the video is paused, and the seeked to the appropriate time for each frame. This approach...

Awesome! Glad to hear that you got it working. If you eventually want to share the end result and the code, I'm interested in seeing it.

This is worth looking into, but bear in mind that `timesnap` uses `page.evaluate` to transfer canvas data. According to the puppeteer docs, [`page.evaluate`](https://github.com/puppeteer/puppeteer/blob/main/docs/api.md#pageevaluatepagefunction-args) requires a function that returns a serializable...

After doing a quick search, see puppeteer/puppeteer#3722 -- there doesn't seem to be a direct way to return a Blob or ArrayBuffer from puppeteer, and the suggested solution converts the...

Using a different transfer protocol is an interesting idea, though probably using something like a web server is beyond the scope of this project. If canvas capturing and file storing...