-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Defaults: change animation codec to h264 #7208
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
Conversation
|
This was discussed in http://matplotlib.1069221.n5.nabble.com/Matplotlib-devel-switch-default-to-h264-td47382.html. Looking back at that I see that I had forgotten the reason I didn't do it right away, which is that a check for an odd number of pixels is needed with h264 regardless of whether it is the default. |
|
What a mess! As far as I can see, mencoder doesn't handle h264 at all. It isn't among the listed labavcodecs in the current documentation, and those are the only ones available in my homebrew mencoder. @dopplershift, is there any reason to support mencoder at all? Does it have any advantages? Any platforms where it is readily available and neither ffmpeg nor avconv is? |
|
And it seemed so simple :) |
|
I think years ago mencoder might have had a comparable install base. Personally, I'm fine with ffmpeg only since that's the only one with conda-forge packages--though I'd like to hear some more voices on this. |
|
I am 👍 on this change. Maybe we should add a check in the save animation step to verify if the encoder / encoding combination is valid? Probably push this back down into the Writer classes with a I would just chop a pixel off bottom / right to patch up the even/odd issues. |
|
The docs build initially fails with this: Warning, treated as error: /home/travis/build/matplotlib/matplotlib/venv/lib/python2.7/site-packages/matplotlib-2.0.0b4+224.gaad576f-py2.7-linux-x86_64.egg/matplotlib/animation.py:docstring of matplotlib.animation.MencoderFileWriter:5: WARNING: Explicit markup ends without a blank line; unexpected unindent. It looks to me like it might be a problem related to this part of the if not old_doc:
# This is to prevent a spurious 'unexected unindent' warning from
# docutils when the original docstring was blank.
new_doc += r'\ 'I'm trying to work around it by adding docstrings. |
|
Trying again: I now think the problem is that the message argument to the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for cleaning up some of my mess @efiring
BUG: fix animation error introduced in #7208
No description provided.