Thanks to visit codestin.com Credit goes to github.com
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.
2 parents a33bf58 + 5999a27 commit 05015ccCopy full SHA for 05015cc
lib/matplotlib/animation.py
@@ -405,6 +405,12 @@ def output_args(self):
405
# The %dk adds 'k' as a suffix so that ffmpeg treats our bitrate as in
406
# kbps
407
args = ['-vcodec', self.codec]
408
+ # For h264, the default format is yuv444p, which is not compatible
409
+ # with quicktime (and others). Specifying yuv420p fixes playback on
410
+ # iOS,as well as HTML5 video in firefox and safari (on both Win and
411
+ # OSX). Also fixes internet explorer. This is as of 2015/10/29.
412
+ if self.codec == 'h264' and '-pix_fmt' not in self.extra_args:
413
+ args.extend(['-pix_fmt', 'yuv420p'])
414
if self.bitrate > 0:
415
args.extend(['-b', '%dk' % self.bitrate])
416
if self.extra_args:
0 commit comments