• Runtimes
  • Export .mov videos from .spine project files programmatically

We have a backend application that needs to implement the following functionality:
Users upload a ZIP file (containing a .spine file and other resource files), and the backend automatically generates an MOV file.

Question:
Can we directly read the project file (.spine) without using the exported JSON and Atlas files?

  • Misaki ответили на это сообщение.
    Related Discussions
    ...

    aaronjheng It is impossible to load a Spine project file without using the Spine Editor. The only way to save an animation to MOV without using the Spine Editor is to load the exported file at runtime and save the rendered animation as a MOV file.

    Thanks. We want run spine cli on Amazon Linux (Without graphics environment). Is it possible?

    @aaronjheng Unfortunately, as described in the CLI documentation:

    Most CLI parameters can be used headless, which means on a computer that is not configured to display a user interface. However, to export images or video an OS windowing system and OpenGL are required.

    So it would be recommended to configure your AWS instances accordingly so that they support OpenGL rendering (you might need to change your configuration).

    Otherwise, you could theoretically resort to software drivers like Mesa which emulate everything on the CPU (see this external forum thread). I doubt however that this will work at all and even if it does, it would be quite slow.