Commit graph

49 commits

Author SHA1 Message Date
Grant Sanderson
f741217c34 Make sure keyboard interrupted renders don't overwrite pre-existing video files 2022-05-11 12:48:08 -07:00
Grant Sanderson
c4d452248a Move mirror output path logic to config.py 2022-05-04 21:21:49 -07:00
Grant Sanderson
2ba9243067 Merge branch 'master' of github.com:3b1b/manim into video-work 2022-04-23 09:03:53 -07:00
Grant Sanderson
5927f6a1cd Default to "" for scene_file_writer output dir 2022-04-22 08:14:29 -07:00
Grant Sanderson
78a7078772 Move saved mobject directory logic to scene_file_writer.py 2022-04-21 15:02:11 -07:00
Grant Sanderson
d24b8ff48f
Merge branch 'master' into master 2022-04-20 22:40:11 -07:00
Grant Sanderson
eae7dbbe6e Change default transparent background codec to be prores 2022-04-20 21:51:36 -07:00
Grant Sanderson
a3579eab41 Have SceneFileWriter handle a location for saved mobjects 2022-04-20 21:51:18 -07:00
YishiMichael
9ef9961d0e
Sort imports 2022-04-12 19:19:59 +08:00
TonyCrane
4fbe948b63
style: insert an empty line after import 2022-02-16 21:08:25 +08:00
TonyCrane
be5de32d70
chore: add type hints to manimlib.scene 2022-02-14 21:22:18 +08:00
Grant Sanderson
5aa8d15d85 Use FFMPEG_BIN instead of "ffmpeg" for sound incorporation 2021-12-21 10:58:58 -08:00
Grant Sanderson
f8e6e7df3c Update progress display for full scene render 2021-12-07 10:06:48 -08:00
Grant Sanderson
9dd1f47dab Create single progress display for full scene render
When a scene is written to file, it will now do a preliminary run of a copy of the scene with skip_animations turned on to count the total frames, which has the added benefit of catching runtime errors early, and allowing an quicker preview of the last frame to be sure everything will render as expected.

The Progress display bars for individual animations are replaced with a more global progress display bar showing the full render time for the scene.

This has the downside that all the non-rendering computations in a scene are run twice, so any scene with slow computations unrelated to rendering will take longer. But those are rarer, so the benefits seem worth it.
2021-11-30 11:41:33 -08:00
Michael W
0e574882b3
Refactor #1637 (#1650)
* Refactor #1637

* Refactor #1637

* Refactor #1637

* Refactor #1637

* Refactor #1637

* Refactor #1637

* Update config.py

Co-authored-by: 鹤翔万里 <tonycrane@foxmail.com>
2021-10-16 13:04:52 +08:00
TonyCrane
7425057d9f use rich to log 2021-10-07 17:37:10 +08:00
slowy07
1e621e8278 fix: fix typo spelling grammar 2021-08-07 22:25:26 +07:00
Grant Sanderson
a58772db87 Fix writing to gifs 2021-01-23 16:08:39 -08:00
Grant Sanderson
0ac155d150 Making writing to partial movies optional, and set the default to be False. 2021-01-23 11:02:22 -08:00
Grant Sanderson
592432611b Remove all configuration from constants.py, and clean up the many files affected by this move 2021-01-02 20:47:51 -08:00
Grant Sanderson
81f6063736 Change string format style 2020-06-18 16:26:04 -07:00
Grant Sanderson
145c6a7e78 Remove already commented out alternate pix_fmt 2020-06-13 15:22:44 -07:00
Grant Sanderson
0b8cb3b6e1 Leaving a note for the better color-preserving encoding 2020-04-12 09:53:14 -07:00
Grant Sanderson
c591954fc3 Small formatting change 2020-02-13 10:41:55 -08:00
Grant Sanderson
2cf21fd0ad Add file opening operations to SceneFileWriter 2020-02-11 19:50:36 -08:00
Grant Sanderson
8488b9053d Removed live_streaming conditions, as those don't work anyway and will be replaced in functionality soon. Also have the ffmpeg pipe take in raw bytes directly, rather than going through the intermediary of a numpy array 2020-02-04 15:26:09 -08:00
Grant Sanderson
1279f040da Temporarily adding input_file_path to SceneFileWrite config. Not sure why this isn't there already, or if there are problems with setting a default, but it fixed a weird bug that had arisen 2020-01-11 17:14:02 -08:00
Devin Neal
bcb8824e2c
Merge pull request #698 from Elteoremadebeethoven/master_3b1b
Solve issue add sound in Windows 10
2019-11-06 16:21:58 -08:00
Grant Sanderson
c79474a57c Small changes to the ffmpeg args when writing video files 2019-10-28 14:40:46 -07:00
Alexander Vázquez
32abbb9371
Change way to remove sound_file_path 2019-08-20 01:34:13 -05:00
Grant Sanderson
61bb4944fa Remove borken save_as_gif lines 2019-07-24 20:36:44 -07:00
Devin Neal
3ec231f0ca add video_output_dir flag 2019-06-21 22:52:16 -07:00
Grant Sanderson
2ccf83c0aa Change output folder heirarchy back to grouping files of similar types, rather grouping them as parts of the same scene 2019-06-13 16:15:02 -07:00
Devin Neal
f81c275631 make media, tex, and video directories configurable via flags 2019-06-04 20:51:18 -07:00
Devin Neal
caa4577cd1 reorganize media file tree 2019-06-03 23:41:05 -07:00
Charly
c42ae8a55b add option -i to save as gif (#529)
* add option -i to save as gif

* re-add -c command

* No longer needs to save mp4 first
2019-06-02 12:13:22 -07:00
Grant Sanderson
6e6dd260da Merge branch 'master' of github.com:3b1b/manim into diffyq 2019-05-24 15:06:59 -07:00
Grant Sanderson
bf8f517b49 Changed SceneFileWriter.get_default_file_name 2019-05-24 15:05:20 -07:00
Devin Neal
19a98ea6bd fix mishandled relative paths 2019-05-01 01:16:56 -07:00
Grant Sanderson
bbf7cac78c Small renaming save_image -> save_final_image, which is more honest 2019-03-16 22:11:19 -07:00
Rodrigo Castellon
55c442f8fd Fixed temp_file_path to be more specific in adding the "_temp." string to file name (#458)
fixed for paths with periods in it
2019-02-26 16:52:30 -08:00
Grant Sanderson
47555652e8 Fixed no animations bug 2019-02-04 14:15:41 -08:00
Grant Sanderson
7a5c419297 Changed what the gain argument of Scene.play means to instead actually apply gain to the passed in sound, not the background 2019-01-29 23:52:56 -08:00
Grant Sanderson
eb355fc7a1 Added gain to Scene.add_sound 2019-01-28 10:22:08 -08:00
Grant Sanderson
900e6ac837 Use frame_rate, instead of frame_duration, and make that part of the camera rather than the scene 2019-01-25 10:13:17 -08:00
Grant Sanderson
eca8d77f83 Small bug fix for starting_animation_number 2019-01-24 22:32:43 -08:00
Grant Sanderson
14cd017cc4 partial_movie_directory -> partial_movie_files 2019-01-24 22:26:18 -08:00
Grant Sanderson
e5e1fa908b Finished SceneFileWriter refactor 2019-01-24 22:24:01 -08:00
Grant Sanderson
8ae0556394 First pass at SceneFileWriter refactor 2019-01-24 21:47:40 -08:00