Giter Site home page Giter Site logo

Running ccapture.js headless? about ccapture.js HOT 9 CLOSED

spite avatar spite commented on August 19, 2024 2
Running ccapture.js headless?

from ccapture.js.

Comments (9)

transitive-bullshit avatar transitive-bullshit commented on August 19, 2024 1

Also @spite, I've generally loved using this project -- thank you so much for your excellent work!!

from ccapture.js.

spite avatar spite commented on August 19, 2024

I haven't tried anything of the sort. Technically ccapture takes a canvas, so as long as you can produce one -or equivalent-, you should be good. For 2d canvas ,there's a few node modules, and for 3d, i've heard good things about headless-gl. If you can check those out for your case and report the results, I'm open to modify whatever is needed to get it working!

from ccapture.js.

cblavier avatar cblavier commented on August 19, 2024

Did anyone managed to run it headless?
I tried to run it with phantom.js but I have issues when capturing frames :

  • my socket to ffmpegserver.js is disconnected at the very beginning
  • if I use png + tar, Tar.append fails with an empty input

from ccapture.js.

spite avatar spite commented on August 19, 2024

If you can set up a repo with an example using phantom.js, i will take a look. Thanks!

from ccapture.js.

cblavier avatar cblavier commented on August 19, 2024

Thanks, preparing it right now!

from ccapture.js.

cblavier avatar cblavier commented on August 19, 2024

Here it is: https://github.com/cblavier/ccapture_headless

from ccapture.js.

transitive-bullshit avatar transitive-bullshit commented on August 19, 2024

For anyone trying to use headless chrome with this project, note that currently headless chrome doesn't support file downloads (issue).

from ccapture.js.

spite avatar spite commented on August 19, 2024

@fisch0920 I guess that's for the new chrome headless, not for phantom.js? does the rest work on chrome headless?

from ccapture.js.

transitive-bullshit avatar transitive-bullshit commented on August 19, 2024

@spite yes, this is related to the newer chrome headless, not phantom.js. Note that the rest works fine on chrome headless as far as I can tell, you just need to do some extra work to transfer the captured results to your server for processing as opposed to downloading it directly. I'm using websockets to accomplish this.

from ccapture.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.