Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Making it possible to use writer.setup kwargs from animation.save#11863

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed

Conversation

fredrik-1
Copy link
Contributor

This pr makes it possible to reach the additional kwargs in a writers setup method fromAnimation.save.

With this pr is it for example possible to write:

anim.save('anim.mp4', writer='ffmpeg_file', frame_prefix='_temporary_file', clear_temp=False)

Copy link
Contributor

@dopplershiftdopplershift left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

👍 on the principle, just some doc wording changes.

@@ -1060,6 +1060,9 @@ class to use, such as 'ffmpeg'. If ``None``, defaults to
on to the `savefig` command which is called repeatedly to
save the individual frames.

**kwargs :
Additional kwargs sendt to the writer's setup method.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

"sendt" -> "to pass" ?

"writer's setup" ->writer.setup()?

@fredrik-1
Copy link
ContributorAuthor

Made the changes and also made it possible to not explicitly usedpi when usingwriter.saving.

@joh
Copy link
Contributor

joh commentedJan 2, 2020

Any progress on this? The inability to changeframe_prefix fromsave is causing problems when running multiple processes each callingsave. A process will then overwrite another process' temporary frame :(

Maybe I should submit a separate bug report about this particular issue..?

@anntzer
Copy link
Contributor

Really animation should write its tmpfiles to a tmpdir, see e.g.#3536#11860, if you want to push either through...

@jklymak
Copy link
Member

I think this was closed by#16082, but feel free to request a re-open.

@QuLogic
Copy link
Member

I don't think this was actually closed by#16082. As noted in that PR, "the user can simply pass a non-Noneframe_prefix to write temporary frames wherever they want and keep them there." but there is no way to passframe_prefix without this PR, asframe_prefix is an argument toWriter.setup, which is called byAnimation.save, and not the user.

Unfortunately, I can't reopen this PR, and it probably needs a rebase, so I'll just open a new one.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@dopplershiftdopplershiftdopplershift requested changes

Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

7 participants
@fredrik-1@joh@anntzer@jklymak@QuLogic@dopplershift@dstansby

[8]ページ先頭

©2009-2025 Movatter.jp