beltoforion / stellarium-to-video

Making videos of the night sky with Stellarium
http://beltoforion.de/en/stellarium_video
BSD 2-Clause "Simplified" License
26 stars 10 forks source link

same execute command but have different generated video result #24

Closed sugizo closed 8 months ago

sugizo commented 8 months ago

env wsl debian (windows subsidiary linux)

prerequisites

sudo apt update
sudo apt install -y python3-skyfield python3-isodate python3-geopy stellarium ffmpeg

execute

python3 /mnt/c/stellarium-to-video/stellarium-to-video.py \
-ts P1Y -dt P2D -o /mnt/c/Users/sugizo/Downloads/output.mp4 \
-t /mnt/c/stellarium-to-video/script/suntrack.ssc \
-d 2024-06-20T12:00:00+01:00 \
-l Freiberg -c Analemma

result

https://github.com/beltoforion/stellarium-to-video/assets/2418295/ee14c9d0-51b5-4272-9a94-ebf87845ee17

expected result video generated same like on github repo analemma (output.mp4) have sun orbit trail

best regards

sugizo commented 8 months ago

trying to execute command taken from this github to get portrait or vertical video

python3 /mnt/c/stellarium-to-video/stellarium-to-video.py \
-ts P6M -dt P1D -o "/mnt/c/Users/sugizo/Downloads/vertical.mp4" \
-t /mnt/c/stellarium-to-video/script/planet_track.ssc \
-sz 1080x1920 \
-v 180,30,70 \
-d 1961-10-08T12:00:00+01:00 \
-l Freiberg -c "Dance of Planets"

result

https://github.com/beltoforion/stellarium-to-video/assets/2418295/ea3779ee-a19d-47f1-847e-185d0e83f34a

expected result video generated same like on github repo portrait (vertical.mp4)

the video already tested upload to youtube, but it won't goes to short video youtube (although the duration is 7 secs) the video goes to normal video (landscape, horizontal)

best regards

beltoforion commented 8 months ago

Same as #21; You cannot mix a linux environment with a windows version of stellarium which happens when you use WSL.

sugizo commented 8 months ago

think you got it wrong, no stellarium windows version installed on windows

there only stellarium that is installed on wsl debian (installed from debian repo via apt install -y stellarium)

the case is not just like that, i've report two different ssc which is take from example on github,

1st case. the Analemma output is no sun trail 2nd case, the dance planets is correct (have planets trail), but the desire portrait vertical output is not achieved

if you think it's on wsl side problem, then the output on 2nd case, the dance planet don't have planet trail (is still make sense)

beltoforion commented 8 months ago

Whatever stellarium version wsl installs will most certainly not run under gnome in wsl. This means "-wsz" is off the table. "-wsz" only works on windows natively or on linux with gnome. It is using a hack to change the windows size of stellarium whilst bypassing a window manager limitation that prevents me from making the stellarium window larger than the screen. I have no intention of providing a similar hack for every conceivable os/window manager combination.

Lifting this limitation requires stellarium to be able to write screenshots larger than the screen which is technically already possible but cannot be set up via its scripting API or its ini file. So this script cannot use this feature. Use the script natively on windows with powershell and a windows version of stellarium or use it natively on Linux with gnome.

beltoforion commented 8 months ago

Closing this here;I have filed this as #26; There is a chance that there is a workaround