-
Notifications
You must be signed in to change notification settings - Fork 255
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
Saving simulation video #210
Comments
Thanks for your feedback, btw what is your operative system?
No!
not necessary,
no, that actually saves a static 3D scene in various formats (
in principle makeVideo.py is already doing this kind of job. Another possibility is for you to save single frames and then merge them with online tools like https://ezgif.com/ |
Thanks for your answers!
And I just discovered a strange thing: if I convert my .mp4 video to .gif (using an online converter), everything works and I am able to open it. But I still cannot open the .mp4 file with any of my video viewers. |
No If you can't open the file on windows it's probably because of a missing video codec. |
My fault, sorry. Thanks for the advice! Regarding the 'makeVideo.py' file: in its original form, it doesn't work:
If instead of
But if I set With For the By the way, .mp4 file is still broken for me (didn't find the way to fix the codecs issue, Hope this small bug report will be helpful for you in some way. I have many other issues with vedo (drag&drop on vedo.bat always gives ..could not load file(s),; often could not run vedo in Jupiter Notebook; ...) but I guess some of them are due to the fact that I might have installed something wrong :) |
hi @maxvov thanks for reporting these issues! i'll have a look to fix them for the next release (~1 week). |
Hi @maxvov
I don't know whether you managed to resolve this in the end (at least just the ffmpeg part). If not, I offer a possible solution; I had a lot of problems similar to this with ffmpeg and the solution was to change the colour format of the output. You can do this by passing the option
In (practical) vedo terms, you need to have a recent version of vedo installed. Then, you can (re)define the
(Be aware that this is overwriting a property set by vedo, so maybe it will change in future...) I hope that's of some help! |
Thanks Antoni, this is quite a useful piece of information! |
Hi @marcomusy,
First of all, thanks for the great user-friendly software! However, I have an issue regarding video exporting.
I'm doing a little simulation and want to save a video (mp4/gif/whatever) to my computer. While the program is running,
vp.show
works as expected, but the final file (.mp4) is broken. Now I have the following code:In the examples given, I did not find a complete way to save the video from the simulation. Do I need to create a .ply/.x3d/.npz/.stl file first and then create a movie (using
vp.load(...)
->video = Video(...)
as in makeVideo.py) using it? Or is there a way to do this without an intermediate file? Should I setoffscreen=True
to thevp.show
function, or it is not necessary? Do I also need to useexportWindow
for video saving?It would be great if you could provide a general way to save a video of the simulation running (for example, aspring.py). I think this will help many who are facing a similar problem. Or show me please where I can find information about this if I missed it :)
Thanks a lot!
The text was updated successfully, but these errors were encountered: