-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat(lib): add basic VideoMobject class #3496
base: main
Are you sure you want to change the base?
Conversation
Hello, I actually implemented this for a personal need, but I guess other people could enjoy such feature, as in ManimCommunity#760. The current implementation is very minimalist, and may be improved, or tested / better documented. If OpenCV is added as a dependency, then we could also directly load videos from video files, which could be a nice feature.
for more information, see https://pre-commit.ci
@@ -37,6 +37,7 @@ | |||
from .animation.transform_matching_parts import * | |||
from .animation.updaters.mobject_update_utils import * | |||
from .animation.updaters.update import * | |||
from .animation.video import * |
Check notice
Code scanning / CodeQL
'import *' may pollute namespace Note
manim.animation.video
Thanks for the proposal, this looks like a good idea -- and we do get requests for this reasonably often indeed. I'd be somewhat unhappy with adding OpenCV as a new dependency (we're currently rather trying to reduce dependencies), and OpenCV is not a particularly lightweight one either. However, it should be possible to achieve similar things with the |
Something like that https://github.com/kkroening/ffmpeg-python/blob/master/examples/ffmpeg-numpy.ipynb? it seems quite easy to load all frames into one large array |
Instead of the ffmpeg python bindings it is possible that we finally tackle #442 and include |
Oh! That's a super nice feature if we support |
@behackl looks like the I don't know how to interpret (from their READMDE):
|
Haha, fun to see that you ran into the exact same question as I did. :-) From my current understanding: yes, they provide wheels which include a statically linked version of I have planned to investigate in more detail over the coming days, perhaps we are in luck. |
Let’s see how much it can improve the speed, the thing I am the most interested in! |
Related PR: #3501 |
Hello, I actually implemented this for a personal need, but I guess other people could enjoy such feature, as in #760.
The current implementation is very minimalist, and may be improved, or tested / better documented.
If OpenCV is added as a dependency, then we could also directly load videos from video files, which could be a nice feature.