Small formatting change

This commit is contained in:
Grant Sanderson 2020-02-13 10:41:55 -08:00
parent 65828e0e36
commit c591954fc3

View file

@ -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