Skip to content
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

animation fails to create a movie with 'ffmpeg_file' backend #2482

Closed
vlsd opened this issue Oct 1, 2013 · 6 comments
Closed

animation fails to create a movie with 'ffmpeg_file' backend #2482

vlsd opened this issue Oct 1, 2013 · 6 comments

Comments

@vlsd
Copy link
Contributor

vlsd commented Oct 1, 2013

I am having trouble saving my animations using ffmpeg 2.0.1
The temp files get created, but the call to ffmpeg fails with the following error:

Option vframes (set the number of video frames to record) cannot be applied to input file _tmp%07d.png -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
Error parsing options for input file _tmp%07d.png.
Error opening input files: Invalid argument

I am assuming the way in which ffmpeg takes arguments has changed between versions?

vlsd added a commit to vlsd/matplotlib that referenced this issue Oct 2, 2013
vlsd added a commit to vlsd/matplotlib that referenced this issue Oct 2, 2013
@WeatherGod
Copy link
Member

I am curious why ffmpeg thought the file name is "_tmp%07d.png". Maybe the movie had zero frames and that string didn't get formatted?

@vlsd
Copy link
Contributor Author

vlsd commented Oct 2, 2013

ffmpeg is not complaining about the file name, it's complaining that I am trying to use an output flag (vframes can only be applied to output files) to an input file. Prior to version 2.0 it did not check if this was the case, or maybe just threw a warning, but now it fails.

@WeatherGod
Copy link
Member

I realize that. I am just curious as to how ffmpeg even got a name with a
format specifier in it. This means there is a code path such that the
format string doesn't get formatted. This could point to a slightly
different issue.

@vlsd
Copy link
Contributor Author

vlsd commented Oct 2, 2013

ffmpeg expects the format string in there and does the expansion internally. It's a feature so that when you call it from command line you don't have to build a list of files first.

@WeatherGod
Copy link
Member

Ah, ok. That makes sense.

vlsd added a commit to vlsd/matplotlib that referenced this issue Oct 3, 2013
vlsd added a commit to vlsd/matplotlib that referenced this issue Oct 3, 2013
vlsd added a commit to vlsd/matplotlib that referenced this issue Nov 25, 2013
tacaswell added a commit that referenced this issue Nov 25, 2013
Fixes issue #2482 and adds note in matplotlibrc.template
@tacaswell
Copy link
Member

This was fixed in #2615

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants