MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _args

Method _args

lib/matplotlib/animation.py:591–603  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

589 .. _their notes on frame rates: https://trac.ffmpeg.org/wiki/Slideshow#Framerates
590 """
591 def _args(self):
592 # Returns the command line parameters for subprocess to use
593 # ffmpeg to create a movie using a pipe.
594 args = [self.bin_path(), '-f', 'rawvideo', '-vcodec', 'rawvideo',
595 '-s', '%dx%d' % self.frame_size, '-pix_fmt', self.frame_format,
596 '-framerate', str(self.fps)]
597 # Logging is quieted because subprocess.PIPE has limited buffer size.
598 # If you have a lot of frames in your animation and set logging to
599 # DEBUG, you will have a buffer overrun.
600 if _log.getEffectiveLevel() > logging.DEBUG:
601 args += ['-loglevel', 'error']
602 args += ['-i', 'pipe:'] + self.output_args
603 return args
604
605
606# Combine FFMpeg options with temp file-based writing

Callers

nothing calls this directly

Calls 1

bin_pathMethod · 0.45

Tested by

no test coverage detected