Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f74976

Browse files
committed
Defaults: change animation codec to h264
1 parent b229f99 commit 1f74976

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

doc/users/whats_new.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,11 @@ Support for HiDPI (Retina) displays in the NbAgg and WebAgg backends
216216
The NbAgg and WebAgg backends will now use the full resolution of your
217217
high-pixel-density display.
218218

219+
Change in the default animation codec
220+
-------------------------------------
221+
222+
The default animation codec has been changed from ``mpeg4`` to ``h264``,
223+
which is more efficient. It can be set via the ``animation.codec`` rcParam.
219224

220225

221226
Previous Whats New

lib/matplotlib/rcsetup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1324,7 +1324,7 @@ def validate_animation_writer_path(p):
13241324
# Animation settings
13251325
'animation.html': ['none', validate_movie_html_fmt],
13261326
'animation.writer': ['ffmpeg', validate_movie_writer],
1327-
'animation.codec': ['mpeg4', six.text_type],
1327+
'animation.codec': ['h264', six.text_type],
13281328
'animation.bitrate': [-1, validate_int],
13291329
# Controls image format when frames are written to disk
13301330
'animation.frame_format': ['png', validate_movie_frame_fmt],

matplotlibrc.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@ backend : $TEMPLATE_BACKEND
597597
# the IPython notebook. 'html5' uses
598598
# HTML5 video tag.
599599
#animation.writer : ffmpeg # MovieWriter 'backend' to use
600-
#animation.codec : mpeg4 # Codec to use for writing movie
600+
#animation.codec : h264 # Codec to use for writing movie
601601
#animation.bitrate: -1 # Controls size/quality tradeoff for movie.
602602
# -1 implies let utility auto-determine
603603
#animation.frame_format: 'png' # Controls frame format used by temp files

0 commit comments

Comments
 (0)