Skip to main content

npx remotion gpu

v4.0.52

打印出 Chrome 浏览器如何使用 GPU。

🌐 Prints out how the Chrome browser uses the GPUs.

npx remotion gpu --gl=angle

该命令对 --gl 使用与 npx remotion render 相同的参数,并且还会使用 Config.setChromiumOpenGlRenderer() 选项。 尝试不同的值以找到最适合你系统的选项。

🌐 The command takes the same arguments for --gl as npx remotion render and also picks up the Config.setChromiumOpenGlRenderer() option.
Try out different values to find which one is the best for your system.

Example output
Canvas: Hardware accelerated Canvas out-of-process rasterization: Enabled Direct Rendering Display Compositor: Disabled Compositing: Hardware accelerated Multiple Raster Threads: Enabled OpenGL: Enabled Rasterization: Hardware accelerated Raw Draw: Disabled Skia Graphite: Disabled Video Decode: Hardware accelerated Video Encode: Hardware accelerated WebGL: Hardware accelerated WebGL2: Hardware accelerated WebGPU: Hardware accelerated

输出不应用于自动解析,因为它可能会在任何 Remotion 和 Chrome 版本之间发生变化。

🌐 The output should not be used for automated parsing, as it may change inbetween any Remotion and Chrome versions.

应用编程接口

🌐 API

--log

One of trace, verbose, info, warn, error.
Determines how much info is being logged to the console.

Default info.

--gl

Changelog
  • From Remotion v2.6.7 until v3.0.7, the default for Remotion Lambda was swiftshader, but from v3.0.8 the default is swangle (Swiftshader on Angle) since Chrome 101 added support for it.
  • From Remotion v2.4.3 until v2.6.6, the default was angle, however it turns out to have a small memory leak that could crash long Remotion renders.

Select the OpenGL renderer backend for Chromium.
Accepted values:

  • "angle"
  • "egl"
  • "swiftshader"
  • "swangle"
  • "vulkan" (from Remotion v4.0.41)
  • "angle-egl" (from Remotion v4.0.51)

The default is null, letting Chrome decide, except on Lambda where the default is "swangle"

--chrome-modev4.0.248

One of headless-shell, chrome-for-testing. Default headless-shell. Use chrome-for-testing to take advantage of GPU drivers on Linux.

另请参阅

🌐 See also