Skip to content
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

raco video without Gtk #65

Open
vielleicht opened this issue Nov 16, 2019 · 3 comments
Open

raco video without Gtk #65

vielleicht opened this issue Nov 16, 2019 · 3 comments

Comments

@vielleicht
Copy link

Hi there...

Is it possible to run the raco video command without preview in a console to have it render a video DSL file? So I would like to run the rendering on a headless server...

raco video -o Test.mp4 Test.vid gives:

Gtk initialization failed for display ":0"\
    context...:  
    "/usr/share/racket/pkgs/gui-lib/mred/private/wx/gtk/queue.rkt": [running body]
    temp37_0
    for-loop
    run-module-instance!125
    for-loop
    [repeats 1 more time]
    run-module-instance!125
    for-loop
    [repeats 1 more time]
    run-module-instance!125
    do-dynamic-require5
    "/usr/share/racket/pkgs/gui-lib/mred/private/wx/platform.rkt": [running body]
    temp37_0
    for-loop
    run-module-instance!125
    for-loop
    ...```

As I'm very interested in using video language, it would be very helpful to get a solution.
@LeifAndersen
Copy link
Member

Thanks for trying out video.

I've pushed a patch to the master branch so that gtk is only required if you use the -p option in raco video. Does that work for you?

As a side note, I recommend checking out xvfb-run run. It allows you to hook up programs to a virtual buffer, and thus run gui programs on a headless server.

@vielleicht
Copy link
Author

Thanks for the quick reply.

I installed the racket-video after cloning master, but now raco video throws me video: MLT Not Installed. MLT 6.18.0-2 is installed.

Any further guidance, please?

@LeifAndersen
Copy link
Member

That's...odd. Video hasn't used MLT for years now. I wonder if there's an old version installed?

When you run:

> (require video/version)
> (version)

What version string comes out?

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

2 participants