-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Simplified folder Structure #132
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
Conversation
manim/scene/scene_file_writer.py
Outdated
"images", | ||
module_directory, | ||
)) | ||
if self.save_last_frame: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still need to check for self.save_pngs
here, no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, you are right!
movie_dir = guarantee_existence(os.path.join( | ||
dirs.VIDEO_DIR | ||
)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is my understanding from #66 that we are still going to have subdirectories for different resolutions. CC @eulertour
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion subdirectories for different resolutions are not that beneficial, because with them it is not anymore easy to switch between videos when working with the explorer.
Further, it is very easy to obtain the video result on very quickly: right-click on the file, and then on "show information", or you can get a feeling of the resolution when looking on the size the video file has. Also, any video-editing software is showing the clip resolution.
So I would definitely prefer the simpler version, where videos are easy to access.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't prefer being forced to run with the simple structure. Making it optional would be okay, forcing it on everyone, not so much.
added self.save_pngs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm against enforcing a simple folder structure on anyone as I prefer having them sorted by resolution. Furthermore dropping the folder structure and not even adding it to the name means that different resolutions overwrite one another.
Different resolutions overwriting each other is for me a convenient feature because I normally don't need the low-resolution video anymore when I have the high-resolution one. But that might be personal taste, and I am in to make the simple folder structure an option.
|
This would make for a good addition to the config file after #98 is merged. |
The way we are trying to do things here is by first reaching a consensus with at least a few of the core devs before implementing anything. As per the lengthy discussion over at #66, we had already agreed to a particular structure. In the future, I would appreciate it if you searched the issues for ongoing (or past/closed) discussion before submitting a PR that would change the consensus.
I personally do not use any of (i) "the explorer", (ii) the mouse/pointer (so I can't right click - in fact I don't even know what you mean by "show information"... is this system dependent?), or (iii) video editing software, and, further, (iv) I do not know how to tell the resolution by looking at the file size. We should try to develop manim with as wide an audience as possible.
As you can see in #66, I personally agree with this statement, but there are other very strong arguments to not have your suggested folder structure the default.
I think this is the best way to go here. Once more, as you can see here, it had been already proposed to do this optionally through the future I say all of this with the best intentions possible, and mainly because I see a lot of duplicated discussion/work here that has already occurred elsewhere. |
probably should make a new PR after #98 is merged in order to not have to deal with merge conflict stuff |
@kolibril13 now that #98 has been merged, if you are still willing, please implement this simplified folder structure as optional, and by making use of the new config system. I'm closing this one. |
In regard of #66 this pull request removes the nested folder stucture in the output.
Tested with:
When the argument
--video_dir ~/Downloads/ "
is defined.