-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Trying to render just results in a blank file. #63
Comments
Do you mean that the size of the mp4 file is zero or that it generates a video but each frame is black/white? |
And what's the output of 'ffmpeg -version'? Maybe it was compiled without --enable-librsvg. |
As in zero size. Here's ffmpeg -version
|
Similarly empty with --format webm, and with --format gif it does not make a file at all. |
Yeah, it looks like your ffmpeg doesn't have svg support. I would have imagined it to throw an error in that case, though. What text output do you see when rendering an animation? |
|
That is quite strange. Apparently ffmpeg silently ignores SVGs if it wasn't compiled with --enable-librsvg. I'll have to add a check for this. |
Hmm it would seem there's also an https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/ffmpeg-full/default.nix |
Sorry, it turned out I was using an old version of reanimate, this is with the latest.
|
Will using either inkscape, rsvg or imagemagick (convert) work for you? |
Yes, I managed to get the drawBox example working using --raster convert. So far so good. I'm having trouble with the blender examples though as below: Maybe I'll open another issue for this.
|
I pushed a fix for the issue with 'renameFile'. Let me know if it works for you. |
I'm having trouble testing this because haskell.nix apparently doesn't like brining stack extra-deps into the shell, but I'll get back to you. |
Yes, thank you very much this seems to work. |
I have one last problem in that exporting
|
Spoke too soon, one more issue. This doesn't seem to be able to run headless in CI, here: https://gitlab.com/shakebook-site/shakebook-site.gitlab.io/-/jobs/484192100 Edit: Looks like this is because eevee can't run without an active opengl context, switching to cycles will run headless but is much slower. |
With a threadripper 1950x, it might be doable in a reasonable amount of time. Use the --compile flag to render concurrently using all available cores. Without that flag, it'll only use a single core. |
What's your usecase, btw? Why are you rendering blender graphics in a headless environment? |
Ah great, I'll try that. This is my use case, see the docs page and gitlab for the general idea. :) Would be nice to get gif output working at least. |
Ah running --compile doesn't play well inside the nix shell apparently.
|
Ah, right, it tries to use 'stack' to compile itself. You can do it manually, though. Compile tut_glue_blender and execute it manually with the same 'render --preset quick --raster convert --format mp4' arguments. |
Ah ok, that speeds it up a little bit with cycles. Is there a way to enable the GPU? How do I tell if it's using the GPU |
There is a way to let cycles use the GPU but I'm not sure how. If you can't use Eevee then it might not be possible to access the GPU. If you can figure out how to do it using the Blender GUI then converting it to a script is easy. Oh, I forgot to say that you should run |
Everything seems to be resolved. Closing issue. |
@locallycompact I'm also trying to get up and running with nix. I couldn't find your fork, could you share your nix setup? |
See #140 ^^ |
@commandodev I have reanimate in a shell over at https://gitlab.com/shakebook-site/shakebook-site.gitlab.io |
Hi, I'm trying to get reanimate working under a nix shell, running the following command just seems to produce a blank mp4 file
runhaskell doc_drawBox.hs render --format mp4
My check looks like
The text was updated successfully, but these errors were encountered: