title: How to export mp4 using Canvas?
body: <p>I want to implement a function of exporting mp4 in web, as shown in the figure</p>
  <p>The picture is from clipchamp</p>
  <p>I start drawing video on Canvas, and then use CaptureStream + MediaRecorder to export mp4, but after I try it, the frame rate that cannot control</p>
  <p>Tried ffmpeg.wasm after that, but it's very slow</p>
  <p>Is there any solution to implement the function as shown</p>
  <p><a href="https://i.stack.imgur.com/kdr3s.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kdr3s.gif" alt="enter image description here" /></a></p>