mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Small formatting change
This commit is contained in:
parent
65828e0e36
commit
c591954fc3
1 changed files with 2 additions and 3 deletions
|
@ -200,14 +200,13 @@ class SceneFileWriter(object):
|
||||||
self.temp_partial_movie_file_path = temp_file_path
|
self.temp_partial_movie_file_path = temp_file_path
|
||||||
|
|
||||||
fps = self.scene.camera.frame_rate
|
fps = self.scene.camera.frame_rate
|
||||||
height = self.scene.camera.get_pixel_height()
|
width, height = self.scene.camera.get_pixel_shape()
|
||||||
width = self.scene.camera.get_pixel_width()
|
|
||||||
|
|
||||||
command = [
|
command = [
|
||||||
FFMPEG_BIN,
|
FFMPEG_BIN,
|
||||||
'-y', # overwrite output file if it exists
|
'-y', # overwrite output file if it exists
|
||||||
'-f', 'rawvideo',
|
'-f', 'rawvideo',
|
||||||
'-s', '%dx%d' % (width, height), # size of one frame
|
'-s', f'{width}x{height}', # size of one frame
|
||||||
'-pix_fmt', 'rgba',
|
'-pix_fmt', 'rgba',
|
||||||
'-r', str(fps), # frames per second
|
'-r', str(fps), # frames per second
|
||||||
'-i', '-', # The imput comes from a pipe
|
'-i', '-', # The imput comes from a pipe
|
||||||
|
|
Loading…
Add table
Reference in a new issue