Re: [mediacapture-record] Ability to record non-realtime / frame-by-frame (#213)

Maybe you can try the `VideoEncoder` from WebCodecs API (https://developer.mozilla.org/en-US/docs/Web/API/VideoEncoder), it encodes images (including `<canvas/>`) to a video frame.

Then you need to mux those frames into a video. I'm using this library: https://github.com/Vanilagy/webm-muxer, it allows you to specify timestamp for each frame.

This method is much more flexible, and the muxer can be quickly replaced/updated interpedently from the browser.

Here is a demo from that library: https://github.com/Vanilagy/webm-muxer/blob/main/demo/script.js

-- 
GitHub Notification of comment by yume-chan
Please view or discuss this issue at https://github.com/w3c/mediacapture-record/issues/213#issuecomment-1376416592 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 9 January 2023 22:25:31 UTC