question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using Pyav for Handling Ffmpeg

See original GitHub issue

Currently, AFAIK, Manim calls Ffmpeg using subprocess, which is very slow. In a plan to making manim more faster we can use a Python Ffmpeg wraper, like Pyav which is written in C and is a lot faster than directly calling using subprocess and also more Pythonic. I think doing this would just need to edit a file scene_writer.py. Also, this would mean that we wouldn’t need to ask users to install Ffmpeg as it would be included in PyAv.

Refs

Pyav Documentation: https://pyav.org/docs/stable/index.html Pyav Project Source: https://github.com/PyAV-Org/PyAV

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:3
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
leotrscommented, Sep 14, 2020

Interesting suggestion - I’m generally in favor of this, though I would hesitate to make the change entirely without first having a more robust test suite.

Also, instead of replacing the current file writer to use PyAV, we could implement a new one, FileWriterAV that uses this but keep using the ffmpeg one as default until FileWriterAV is stable.

0reactions
kolibril13commented, Jan 24, 2021

Any updates here?

Read more comments on GitHub >

github_iconTop Results From Across the Web

PyAV for video processing - jdhao's digital space
The PyAV is a more performant package providing ffmpeg library bindings. To install PyAV, run the following command: pip install av. Simple use...
Read more >
PyAV 9.0.3.dev0 documentation
PyAV is a Pythonic binding for FFmpeg. We aim to provide all of the power and control of the underlying library, but manage...
Read more >
PyAV-Org/User-Help - Gitter
I've gotten a video file produced by a long running FFMPEG process that is segmenting the stream. When I've come to read it,...
Read more >
imageio.plugins.pyav — imageio 2.22.4 documentation
To use this plugin you need to have PyAV installed: pip install av. This plugin wraps pyAV, a pythonic binding for the FFMPEG...
Read more >
av - PyPI
Pythonic bindings for FFmpeg's libraries. ... If you want to use your existing FFmpeg, the source version of PyAV is on PyPI too:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found