-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed as not planned
Labels
New featurestatus: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.Issues closed by the "Stale" Github Action. Please comment on any you think should still be open.status: inactiveMarked by the “Stale” Github ActionMarked by the “Stale” Github Actionthird-party integrationtopic: animation
Milestone

Description
When using ffmpeg to record an .mp4 movie of a matplotlib animation with something like
anm.save('movie.mp4', writer='ffmpeg', extra_args=['-threads', 'n'])
where anm and n are the animation object and the number of threads, respectively, it seems that the global interpreter lock prevents from correctly distributing the task of encoding among available cpu cores.
Of course, one can avoid this by first breaking the animation into n chunks and encoding each using ffmpeg with, for example, Python's multiprocessing library, and then stitching the resulting 'n' movies into a single one.
Would the above be the best solution, or should perhaps matplotlib try to handle this internally?
Metadata
Metadata
Assignees
Labels
New featurestatus: closed as inactiveIssues closed by the "Stale" Github Action. Please comment on any you think should still be open.Issues closed by the "Stale" Github Action. Please comment on any you think should still be open.status: inactiveMarked by the “Stale” Github ActionMarked by the “Stale” Github Actionthird-party integrationtopic: animation