# How to save video using three.js

**URL:** <https://discourse.threejs.org/t/how-to-save-video-using-three-js/39863>\
**Category:** Questions\
**Tags:** video\
**Created:** [July 1, 2022, 6:20am UTC](https://discourse.threejs.org/t/how-to-save-video-using-three-js/39863 "2022-07-01T06:20:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheungbh](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/cheungbh/32/23871_2.png) [@cheungbh](https://discourse.threejs.org/u/cheungbh)\
**Post date:** [July 1, 2022, 6:20am UTC](https://discourse.threejs.org/t/how-to-save-video-using-three-js/39863/1 "2022-07-01T06:20:40Z")

</div>

Hello. I wonder how to save the screen to a local video file?

---

<div class="post-metadata">

**Author:** ![Umbawa\_Sarosong](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/umbawa_sarosong/32/30107_2.png) [@Umbawa\_Sarosong](https://discourse.threejs.org/u/Umbawa_Sarosong)\
**Post date:** [July 1, 2022, 7:23am UTC](https://discourse.threejs.org/t/how-to-save-video-using-three-js/39863/2 "2022-07-01T07:23:02Z")

</div>

use screen recorder to capture threejs animation into video file.

---

<div class="post-metadata">

**Author:** ![Mugen87](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/mugen87/32/5645_2.png) [@Mugen87](https://discourse.threejs.org/u/Mugen87)\
**Post date:** [July 1, 2022, 8:47am UTC](https://discourse.threejs.org/t/how-to-save-video-using-three-js/39863/3 "2022-07-01T08:47:30Z")

</div>

Duplicate:

> [@Trouble rendering video from scene](https://discourse.threejs.org/t/trouble-rendering-video-from-scene/28732):
>
> Hello all I only use Editor and I created (published) a json file via ‘three.js Editor’ (the rendered function is no longer available to create an MP4 file, due to chrome updates) does anyone know, how to get MP4 file, from the published Json file? what other tool can replace rendered function to create MP4 file from three.js json Thanks to help

---

<div class="post-metadata">

**Author:** ![rrrr\_rrrr](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/rrrr_rrrr/32/7697_2.png) [@rrrr\_rrrr](https://discourse.threejs.org/u/rrrr_rrrr)\
**Post date:** [July 3, 2022, 5:39pm UTC](https://discourse.threejs.org/t/how-to-save-video-using-three-js/39863/4 "2022-07-03T17:39:48Z")

</div>

# HTMLMediaElement.captureStream()

To capture canvas

# navigator.mediaDevices.getUserMedia()

To capture window and ( tab Chrome only )  
You can see GUI recording itself.

# new MediaRecorder()

To bring everything together.

You can also take a still picture.

> **Show me**
>
> ![Screen_Capture](https://canada1.discourse-cdn.com/flex035/uploads/threejs/original/3X/6/c/6cd728f13aca6a839aa802b18cc28d8b0fac9a3a.webp)

No lib or extension were used, just pure Mocha.
