| 314 | self._run() |
| 315 | |
| 316 | def _run(self): |
| 317 | # Uses subprocess to call the program for assembling frames into a |
| 318 | # movie file. *args* returns the sequence of command line arguments |
| 319 | # from a few configuration options. |
| 320 | command = self._args() |
| 321 | _log.info('MovieWriter._run: running command: %s', |
| 322 | cbook._pformat_subprocess(command)) |
| 323 | PIPE = subprocess.PIPE |
| 324 | self._proc = subprocess.Popen( |
| 325 | command, stdin=PIPE, stdout=PIPE, stderr=PIPE, |
| 326 | creationflags=subprocess_creation_flags) |
| 327 | |
| 328 | def finish(self): |
| 329 | """Finish any processing for writing the movie.""" |