8000 Animation subprocess bug by tonysyu · Pull Request #989 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Animation subprocess bug #989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 20, 2012
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix subprocess bug when saving animations.
Ffmpeg prints a lot of info to stderr. For longer animations, this logging fills up the (very-small) buffer for subprocess.PIPE and subprocess just hangs (no error). Suppress logging in ffmpeg to prevent this issue.
  • Loading branch information
tonysyu committed Jul 7, 2012
commit 66b14f189413309fa468882f72f420d52c8f1026
8 changes: 5 additions & 3 deletions lib/matplotlib/animation.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,12 @@ def output_args(self):
class FFMpegWriter(MovieWriter, FFMpegBase):
def _args(self):
# Returns the command line parameters for subprocess to use
# ffmpeg to create a movie using a pipe
# ffmpeg to create a movie using a pipe.
# Logging is quieted because subprocess.PIPE has limited buffer size.
return [self.bin_path(), '-f', 'rawvideo', '-vcodec', 'rawvideo',
'-s', '%dx%d' % self.frame_size, '-pix_fmt', self.frame_format,
'-r', str(self.fps), '-i', 'pipe:'] + self.output_args
'-s', '%dx%d' % self.frame_size, '-pix_fmt', self.frame_format,
'-r', str(self.fps), '-loglevel', 'quiet',
'-i', 'pipe:'] + self.output_args


#Combine FFMpeg options with temp file-based writing
Expand Down
0