mirror of
https://github.com/3b1b/manim.git
synced 2025-07-28 20:43:56 +08:00
Small changes to the ffmpeg args when writing video files
This commit is contained in:
@ -230,16 +230,16 @@ class SceneFileWriter(object):
|
|||||||
'-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
|
||||||
'-c:v', 'h264_nvenc',
|
|
||||||
'-an', # Tells FFMPEG not to expect any audio
|
'-an', # Tells FFMPEG not to expect any audio
|
||||||
'-loglevel', 'error',
|
'-loglevel', 'error',
|
||||||
]
|
]
|
||||||
|
# TODO, the test for a transparent background should not be based on
|
||||||
|
# the file extension.
|
||||||
if self.movie_file_extension == ".mov":
|
if self.movie_file_extension == ".mov":
|
||||||
# This is if the background of the exported video
|
# This is if the background of the exported
|
||||||
# should be transparent.
|
# video should be transparent.
|
||||||
command += [
|
command += [
|
||||||
'-vcodec', 'qtrle',
|
'-vcodec', 'qtrle',
|
||||||
# '-vcodec', 'png',
|
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
command += [
|
command += [
|
||||||
|
Reference in New Issue
Block a user