You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following settings allow to configure recording quality
158
+
Two rendering modes are supported:
159
+
* Realtime rendering: suitable for previews and scenarios where real-time interaction with the visuals are required. As with all real-time video capture, frame drops might occur, especially on lower spec hardware or when rendering very complex visuals.
160
+
* Offline rendering: suitable for production-grade rendering. Each frame is rendered sequentially without any drops.
161
+
162
+
The default is real-time rendering to activate offline rendering set `shader-toy.recordOffline`to true.
163
+
164
+
### Shared parameters
165
+
159
166
*`shader-toy.forceResolution`: Set canvas resolution, this will also set the resolution of the recorded video file. By default, the canvas will stretch to fill the entire window.
167
+
*`shader-toy.recordTargetFramerate`: Set recording target frame-rate. Default is 30fps.
168
+
*`shader-toy.recordMaxDuration`: Maximum recording duration in seconds. 0 (the default) will keep recording until the record button is pressed again.
169
+
170
+
### Real-time Rendering parameters
171
+
160
172
*`shader-toy.recordVideoContainer`: Set the video file container. Currently only `webm` is supported, but `mp4`support is coming [soon](https://chromestatus.com/feature/5163469011943424).
161
173
*`shader-toy.recordVideoCodec`: Set video codec. `vp8`, `vp9`, `h264` and `avc1` are all supported. Default it `vp8`.
162
174
*`shader-toy.recordVideoBitRate`: Set recording bit rate in bits/second. Default is 2500000.
163
-
*`shader-toy.recordTargetFramerate`: Set recording target frame-rate. Default is 30fps.
164
-
*`shader-toy.recordMaxDuration`: Maximum recording duration in seconds. 0 (the default) will keep recording until the record button is pressed again.
175
+
176
+
### Offline rendering parameters
177
+
178
+
*`shader-toy.recordOfflineQuality`: Offline recording quality. Applies when format is webm or jpg.
165
179
166
180
## Requirements
167
181
@@ -186,13 +200,15 @@ Contributions of any kind are welcome and encouraged.
0 commit comments