We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f130867 commit 3b3306fCopy full SHA for 3b3306f
pytorch3d/implicitron/tools/video_writer.py
@@ -116,7 +116,7 @@ def write_frame(
116
self.frames.append(outfile)
117
self.frame_num += 1
118
119
- def get_video(self) -> str:
+ def get_video(self, quiet: bool = True) -> str:
120
"""
121
Generate the video from the written frames.
122
@@ -155,8 +155,12 @@ def get_video(self) -> str:
155
"yuv420p",
156
self.out_path,
157
]
158
-
159
- subprocess.check_call(args)
+ if quiet:
+ subprocess.check_call(
160
+ args, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
161
+ )
162
+ else:
163
+ subprocess.check_call(args)
164
else:
165
raise ValueError("no such output type %s" % str(self.output_format))
166
0 commit comments