Creating Videos with Stellarium #3638
Replies: 5 comments 8 replies
-
Perfect! Would you write a chapter for Stellarium User Guide about using your script/tool with examples and information where it can be obtained, like the Scripting chapter? I think it may be very good addition to the Guide and I guess it should be put immediately after Scripting chapter. |
Beta Was this translation helpful? Give feedback.
-
Very nice indeed! I usually just capture a running script with whatever screen grabber is available, but this has guaranteed speed. Maybe you can even remove the skyfield dependency here (but thanks for pointing me to it): You can find the setting time of the sun simply by Now the next challenge will be a purely python solution that even avoids the temporary script, controlling Stellarium via RemoteControl interface. And capturing scripts with sound output. |
Beta Was this translation helpful? Give feedback.
-
Yes I can write such a chapter in the documentation. There is however one addition I''d like to make in the script. I'd like to be able to create videos in portrait orientation. (see Issue 10 of stellarium-to-video). Right now I could submit a config.ini via the command line to force stellarium to run in a window that has portrait mode orientation. However Stellarium will not let me create a window that exceeds the size of the screen. So any video in portrait mode would be limited to 1080 pixels in height on a Full-HD screen. I can manually drag the window to any size at runtime but I cannot do this via the config file. There are a few ways around that:
Maybe i can implement this myself. Would you be willing to merge a PR that either allows stellarium to create windows that exceed the screen dimension or add a class to allow stellarium scripts to alter the state of stellariums main window? |
Beta Was this translation helpful? Give feedback.
-
I tried setting up a window size of 1080x1920 in the "config.ini". However on startup the window will be clipped to the screen dimensions and I end up with appears to be a 1080x1080 window. This seems to be enforced by the Window Manager for events that come via X11/EWMH. Most likely Stellarium cannot do anything to prevent that because it is bound to the rules of the window manager. I found a way around it that at least works for GNOME but it is quite dirty and involves faking Atl+F8 keyboard events to move the window partially outside the screen which disables the window manager restrictions for resizing. It appears that you can manually resize a window to a dimension larger then the screen but you cannot do it programmatically via EWMH events at least not without reconfiguring the window manager. With this hack i can fully automatically create videos in full hd portrait orientation or 4K videos on a Full-HD screen: dance.mp4 |
Beta Was this translation helpful? Give feedback.
-
@gzotti Thank you for pointint this out. Setting the screenshot size directly would be so much easier than what I'm doing right now and it would work on all platforms. Can i set those parameters in the config.ini or from a stellarium script? |
Beta Was this translation helpful? Give feedback.
-
I have recently updated a python based script utility that allows to create videos with Stellarium. The new version runs on Windows and Linux and is capable of using custom script templates.
stellarium-to-video at GitHub
You can now use custom script templates and set the observer location to different planets. Creating a video can be done with a single command.
Example 1: Planetary alignment from 1961
dance.mp4
Example 2: Analemma
analemma.mp4
Beta Was this translation helpful? Give feedback.
All reactions