From c591954fc3b30d4eba80b3882c4318cc20779a9d Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 13 Feb 2020 10:41:55 -0800 Subject: [PATCH] Small formatting change --- manimlib/scene/scene_file_writer.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/manimlib/scene/scene_file_writer.py b/manimlib/scene/scene_file_writer.py index e1bf8581..e110ad4b 100644 --- a/manimlib/scene/scene_file_writer.py +++ b/manimlib/scene/scene_file_writer.py @@ -200,14 +200,13 @@ class SceneFileWriter(object): self.temp_partial_movie_file_path = temp_file_path fps = self.scene.camera.frame_rate - height = self.scene.camera.get_pixel_height() - width = self.scene.camera.get_pixel_width() + width, height = self.scene.camera.get_pixel_shape() command = [ FFMPEG_BIN, '-y', # overwrite output file if it exists '-f', 'rawvideo', - '-s', '%dx%d' % (width, height), # size of one frame + '-s', f'{width}x{height}', # size of one frame '-pix_fmt', 'rgba', '-r', str(fps), # frames per second '-i', '-', # The imput comes from a pipe