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

Skip to content

Commit 9c4e686

Browse files
authored
Merge pull request #16408 from anntzer/unavconv
Deprecate avconv animation writers.
2 parents c198e65 + bb7609c commit 9c4e686

File tree

5 files changed

+14
-6
lines changed

5 files changed

+14
-6
lines changed

doc/api/next_api_changes/deprecations.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,14 @@ variables is deprecated. Additional fonts may be registered using
173173
``matplotlib.compat``
174174
~~~~~~~~~~~~~~~~~~~~~
175175
This module is deprecated.
176+
177+
AVConv animation writer deprecated
178+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
179+
The ``AVConvBase``, ``AVConvWriter`` and ``AVConvFileWriter`` classes, and the
180+
associated ``animation.avconv_path`` and ``animation.avconv_args`` rcParams are
181+
deprecated.
182+
183+
Debian 8 (2015, EOL 06/2020) and Ubuntu 14.04 (EOL 04/2019) were the
184+
last versions of Debian and Ubuntu to ship avconv. It remains possible
185+
to force the use of avconv by using the ffmpeg-based writers with
186+
:rc:`animation.ffmpeg_path` set to "avconv".

lib/matplotlib/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,8 @@ def gen_candidates():
609609
# listed in the rcParams (not included in _all_deprecated).
610610
# Values are tuples of (version,)
611611
_deprecated_remain_as_none = {
612+
'animation.avconv_path': ('3.3',),
613+
'animation.avconv_args': ('3.3',),
612614
}
613615

614616

lib/matplotlib/animation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,7 @@ def _args(self):
644644

645645

646646
# Base class of avconv information. AVConv has identical arguments to FFMpeg.
647+
@cbook.deprecated('3.3')
647648
class AVConvBase(FFMpegBase):
648649
"""
649650
Mixin class for avconv output.

lib/matplotlib/mpl-data/stylelib/classic.mplstyle

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,6 @@ animation.frame_format: png # Controls frame format used by temp files
478478
animation.ffmpeg_path: ffmpeg # Path to ffmpeg binary. Without full path
479479
# $PATH is searched
480480
animation.ffmpeg_args: # Additional arguments to pass to ffmpeg
481-
animation.avconv_path: avconv # Path to avconv binary. Without full path
482-
# $PATH is searched
483-
animation.avconv_args: # Additional arguments to pass to avconv
484481
animation.convert_path: convert # Path to ImageMagick's convert binary.
485482
# On Windows use the full path since convert
486483
# is also the name of a system tool.

matplotlibrc.template

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,6 @@
744744
#animation.ffmpeg_path : ffmpeg ## Path to ffmpeg binary. Without full path
745745
## $PATH is searched
746746
#animation.ffmpeg_args : ## Additional arguments to pass to ffmpeg
747-
#animation.avconv_path : avconv ## Path to avconv binary. Without full path
748-
## $PATH is searched
749-
#animation.avconv_args : ## Additional arguments to pass to avconv
750747
#animation.convert_path : convert ## Path to ImageMagick's convert binary.
751748
## On Windows use the full path since convert
752749
## is also the name of a system tool.

0 commit comments

Comments
 (0)