marcomusy / vedo

A python module for scientific analysis of 3D data based on VTK and Numpy
https://vedo.embl.es
MIT License
2.04k stars 265 forks source link

quality and resolution of the video #1168

Open YongcaiHuang opened 2 months ago

YongcaiHuang commented 2 months ago

in the example of saving video, there is the settings.screenshot_scale to control the resolution or quality of the video. However, in recent version of vedo, there is no screenshot_scale property. how can we control the quality now? Also, is there any plan to update the example documentation?

# settings.screeshot_scale = 2  # to get higher resolution
marcomusy commented 2 months ago

You should be able to do it with

plotter.screenshot("filneame.png", scale=2)

Also, is there any plan to update the example documentation?

Documentation should be already up to date in https://vedo.embl.es/autodocs/content/vedo/vedo.html Do you see anything that is out of date?

YongcaiHuang commented 2 months ago

thanks for your reply.

I have tried plotter.screenshot(). It can indeed increase the quality of the screenshot picture, but how can we apply this to the video?

Also, is there any plan to update the example documentation?

sorry for the misleading, I mean the out-dated code in the example

# settings.screeshot_scale = 2  # to get higher resolution
marcomusy commented 2 months ago

Thanks for pointing to the problem I just pushed a fix for it:

video = Video(..., scale=2)