Skip to content

how to enable gpu render on linux #2967

Description

@tdcr5

Describe the bug

I tried to speed up the processing of hyperframes render .
I have a nvida gpu card (rtx3070) on linux,I use command below

PRODUCER_FORCE_SCREENSHOT=true hyperframes render --gpu --browser-gpu --workers 4 --video-bitrate 5M --protocol-timeout 3600000 --browser-timeout 86330 --fps 24 -o html_video_1.mp4

console logs:

....
[Browser:WARN] [GroupMarkerNotSet(crbug.com/242999)!:A0707C01D4370000]Automatic fallback to software WebGL has been deprecated. Please use the --enable-unsafe-swiftshader flag to opt in to lower security guarantees for trusted content.
██████░░░░░░░░░░░░░░░░░░░ 25% Capturing frame 90/19186 (4 workers)[Browser:WARN] [.WebGL-0x281c08c99c00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
██████░░░░░░░░░░░░░░░░░░░ 25% Capturing frame 120/19186 (4 workers)[Browser:WARN] [.WebGL-0x281c08c99c00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[Browser:WARN] [.WebGL-0x281c08c99c00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels
[Browser:WARN] [.WebGL-0x281c08c99c00]GL Driver Message (OpenGL, Performance, GL_CLOSE_PATH_NV, High): GPU stall due to ReadPixels (this message will no longer repeat)
██████░░░░░░░░░░░░░░░░░░░ 25% Capturing frame 210/19186 (4 workers)[Browser:WARN] [GroupMarkerNotSet(crbug.com/242999)!:A0D07C01D4370000]Automatic fallback to software WebGL has been deprecated. Please use the --enable-unsafe-swiftshader flag to opt in to lower security guarantees for trusted content.

the gpu not used, still use cpu to render, what should i do to enable gpu render on linux

Link to reproduction

https://github.com/heygen-com/hyperframes

Steps to reproduce

PRODUCER_FORCE_SCREENSHOT=true hyperframes render --gpu --browser-gpu --workers 4 --video-bitrate 5M --protocol-timeout 3600000 --browser-timeout 86330 --fps 24 -o html_video_1.mp4

Expected behavior

1

Actual behavior

1

Environment

hyperframes doctor

  ✗ Version          0.6.102 → 0.7.90 available
                     Run: hyperframes upgrade
  ✓ Node.js          v24.15.0 (linux x64)
  ✓ CPU              20 cores · Intel(R) Core(TM) i9-10850K CPU @ 3.60GHz @ 4799MHz
  ✓ Memory           31.3 GB total · 17.9 GB available
  ✓ Disk             15.7 GB free
  ✓ /dev/shm         8192 MB
  ✓ Environment      Docker
  ✓ FFmpeg           ffmpeg 6.1 at /usr/local/bin/ffmpeg
  ✓ FFprobe          ffprobe 6.1 at /usr/local/bin/ffprobe
  ✓ Chrome           cache: /root/.cache/hyperframes/chrome/chrome-headless-shell/linux-131.0.6778.85/chrome-headless-shell-linux64/chrome-headless-shell

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions