mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Allow more file_writer configuration in default_config.yml
This commit is contained in:
parent
eda7f81fb9
commit
09bed1f8f4
2 changed files with 13 additions and 8 deletions
|
@ -402,7 +402,6 @@ def get_output_directory(args: Namespace, custom_config: dict) -> str:
|
||||||
def get_file_writer_config(args: Namespace, custom_config: dict) -> dict:
|
def get_file_writer_config(args: Namespace, custom_config: dict) -> dict:
|
||||||
result = {
|
result = {
|
||||||
"write_to_movie": not args.skip_animations and args.write_file,
|
"write_to_movie": not args.skip_animations and args.write_file,
|
||||||
"break_into_partial_movies": custom_config["break_into_partial_movies"],
|
|
||||||
"save_last_frame": args.skip_animations and args.write_file,
|
"save_last_frame": args.skip_animations and args.write_file,
|
||||||
"save_pngs": args.save_pngs,
|
"save_pngs": args.save_pngs,
|
||||||
# If -t is passed in (for transparent), this will be RGBA
|
# If -t is passed in (for transparent), this will be RGBA
|
||||||
|
@ -414,6 +413,7 @@ def get_file_writer_config(args: Namespace, custom_config: dict) -> dict:
|
||||||
"open_file_upon_completion": args.open,
|
"open_file_upon_completion": args.open,
|
||||||
"show_file_location_upon_completion": args.finder,
|
"show_file_location_upon_completion": args.finder,
|
||||||
"quiet": args.quiet,
|
"quiet": args.quiet,
|
||||||
|
**custom_config["file_writer_config"],
|
||||||
}
|
}
|
||||||
|
|
||||||
if args.vcodec:
|
if args.vcodec:
|
||||||
|
|
|
@ -28,13 +28,18 @@ style:
|
||||||
window_position: UR
|
window_position: UR
|
||||||
window_monitor: 0
|
window_monitor: 0
|
||||||
full_screen: False
|
full_screen: False
|
||||||
# If break_into_partial_movies is set to True, then many small
|
file_writer_config:
|
||||||
# files will be written corresponding to each Scene.play and
|
# If break_into_partial_movies is set to True, then many small
|
||||||
# Scene.wait call, and these files will then be combined
|
# files will be written corresponding to each Scene.play and
|
||||||
# to form the full scene. Sometimes video-editing is made
|
# Scene.wait call, and these files will then be combined
|
||||||
# easier when working with the broken up scene, which
|
# to form the full scene. Sometimes video-editing is made
|
||||||
# effectively has cuts at all the places you might want.
|
# easier when working with the broken up scene, which
|
||||||
break_into_partial_movies: False
|
# effectively has cuts at all the places you might want.
|
||||||
|
break_into_partial_movies: False
|
||||||
|
video_codec: "libx264"
|
||||||
|
pixel_format: "yuv420p"
|
||||||
|
saturation: 1.0
|
||||||
|
gamma: 1.0
|
||||||
camera_resolutions:
|
camera_resolutions:
|
||||||
low: "854x480"
|
low: "854x480"
|
||||||
med: "1280x720"
|
med: "1280x720"
|
||||||
|
|
Loading…
Add table
Reference in a new issue