Skip to content

[NodeJs] - Failed to create OpenGL context. #119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
safranx opened this issue Jun 16, 2021 · 3 comments
Open

[NodeJs] - Failed to create OpenGL context. #119

safranx opened this issue Jun 16, 2021 · 3 comments

Comments

@safranx
Copy link

safranx commented Jun 16, 2021

Hello,

I am facing this issue 🦗 ..
image

Package.json:

  "dependencies": {
    "ffmpeg-concat": "^1.3.3",
    "node-sass": "^6.0.0",
    "nodejs-file-downloader": "^4.6.0",
    "tslib": "~2.2.0",
  },

Env:
Node version: v14.17.1
Typescript: 4.3.2
WSL: v2 Ubuntu 18.04

Code sample:

async function createVideo() {
    if (clipList.length > 1) {
      console.log('🎞️ Try to concat');
      concat({
        output: './video/final.mp4',
        videos: ['./clips/clip-0.mp4', './clips/clip-1.mp4'],
        verbose: true,
        frameFormat: 'jpg',
        concurrency: 6,
        log: console.log('progress'),
        tempDir: './video/tmp',
        transition: {
          name: 'fade',
          duration: 500
        }
      }).catch((err) => {
        console.log(err);
      })
    } else {
      console.error('❌ Cannot proceed, no clips available');
    }
};

I checked (https://github.com/stackgl/headless-gl#supported-platforms-and-nodejs-versions) and tried a lot of think but nothing worked...

Any idea @transitive-bullshit @daniel-habib, I followed the issue #36, but nothing worked.

Thank you for your help!

@ejz
Copy link

ejz commented Nov 22, 2021

try to run your script using xvfb:

# xvfb-run -s "-ac -screen 0 1280x1024x24" node concat.js

@ruedasjnthn
Copy link

did u already fixed this issue @Ray-P

@mdelnegro-lennd
Copy link

@safranx any solution on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants