Skip to content

Commit 8e517d8

Browse files
authored
Merge pull request #8743 from ElieGouzien/fix-anim-avconv
Fix 'animation' unable to detect AVConv.
2 parents d526105 + e99096c commit 8e517d8

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

doc/users/whats_new/fix_avconv.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
AVConv writer is back
2+
---------------------
3+
Correct a bug that prevented detection of AVconv for matplotlib.animation.

lib/matplotlib/animation.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ def output_args(self):
616616
def _handle_subprocess(cls, process):
617617
_, err = process.communicate()
618618
# Ubuntu 12.04 ships a broken ffmpeg binary which we shouldn't use
619+
# NOTE : when removed, remove the same method in AVConvBase.
619620
if 'Libav' in err.decode():
620621
return False
621622
return True
@@ -674,6 +675,11 @@ class AVConvBase(FFMpegBase):
674675
exec_key = 'animation.avconv_path'
675676
args_key = 'animation.avconv_args'
676677

678+
# NOTE : should be removed when the same method is removed in FFMpegBase.
679+
@classmethod
680+
def _handle_subprocess(cls, process):
681+
return MovieWriter._handle_subprocess(process)
682+
677683

678684
# Combine AVConv options with pipe-based writing
679685
@writers.register('avconv')

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy