moviepy
manim
moviepy | manim | |
---|---|---|
45 | 144 | |
11,867 | 58,400 | |
- | - | |
2.8 | 8.6 | |
14 days ago | 18 days ago | |
Python | Python | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
moviepy
-
Show HN: Revideo – Create Videos with Code
Hey HN! We’re building Revideo (https://github.com/redotvideo/revideo), an open source toolkit that lets you programmatically create and export videos with the animation library Motion Canvas (https://github.com/motion-canvas/motion-canvas). This is useful whenever you want to build apps that automate certain video tasks, which is increasingly possible using AI tools - for instance, one of our first users is building an app that turns code documentation into video tutorials.
Revideo extends Motion Canvas with features that are essential for creating video, such as the ability to export audio tracks, a nodejs package for headless, parameterized & much faster rendering, and audio components that make audio editing and syncing easier. While Motion Canvas aims to be a standalone editor [1], we want to build a set of libraries that lets developers integrate video editing functionality into their apps. Our goal is to provide an open-source alternative to Remotion (https://github.com/remotion-dev/remotion).
At the start of this year, we explored a bunch of product ideas in the space of AI-based video creation. For example, we’ve built apps that automatically create educational short videos and have experimented with automatically A/B testing and personalizing video ads.
While building these products, we were frustrated with the video editing frameworks we used: Moviepy (https://github.com/Zulko/moviepy), which we relied on initially, doesn’t offer a way to preview your videos, so we’d often have to wait minutes for a video to render to test our code changes. Remotion (https://github.com/remotion-dev/remotion), which we switched to later, is really good, but we didn’t want to rely on it as it is not open source (source-available only). That’s why we decided to build Revideo.
We’d already been following Motion Canvas for some time and really liked using it, so we thought that extending it would get us to something useful much faster than building an animation library from scratch. Initially, we tried to build our features as Motion Canvas plugins, but this did not provide enough flexibility to achieve the desired functionality. Additionally, video-specific features (such as audio support) were generally considered out of scope by the Motion Canvas maintainers, which is why we ultimately ended up creating a fork. We’re unsure if this is the right way to go in the long term, and would prefer to find a way to build Revideo without diverging from Motion Canvas too much - if you have suggestions on how to solve this, we’d love your input.
Compared to Remotion, which builds on top of React, Motion Canvas uses the HTML Canvas API and makes you define animation flows with generator functions. Its API is more “procedural”, as it makes you define the things that happen in your animation as a sequence of yields, whereas Remotion gives you a frame number and lets you declare how your video should look like at that frame.
Our current focus is improving the open source project. In the long term, we want to make money by building a rendering service for developers building apps with Revideo. Such a service would offer a pretty similar deployment experience to Vercel, but instead of web apps, we let developers deploy Revideo projects and expose a rendering endpoint for them. Letting us manage the infrastructure will allow us to offer much faster rendering, as we can massively parallelize rendering jobs on our servers (e.g. spinning up 100 headless browsers that render 100 frames each to render a video with 10,000 frames).
We’d love to hear your feedback and suggestions! You can find our repo at https://github.com/redotvideo/revideo, We’ve also released an example video editing app at https://github.com/redotvideo/revideo-saas-template. Thank you!
[1] “Motion Canvas is not a normal npm package. It's a standalone tool that happens to be distributed via npm.” - https://github.com/orgs/motion-canvas/discussions/1015
-
Video Generation with Python
Python has become a popular programming language for different applications, including data science, artificial intelligence, and web development. But, did you know creating and rendering fully customized videos with Python is also possible? At Stack Builders, we have successfully used Python libraries such as MoviePy, SciPy, and ImageMagick to generate videos with animations, text, and images. In this article, we will look closer at how Python can be used for video generation and explore some of the powerful libraries and tools that make it possible.
-
VideoClip.set_layer functionality not working
VideoClip.set_layer functionality was added in https://github.com/Zulko/moviepy/pull/1176 but when I try to use it I get this error:
- Is there any Python library that can programmatically add text to videos with effects?
-
YouTube Downloader
Moviepy was used to connect video and audio track.
- Video Editor
-
Generate all possible combinations of a set of videos
I'm pretty sure Moviepy can do something like this.
-
bug in 'cutout' transformation
For those of you who will try to figure this out, I have a couple notes. First, this doesn’t appear to be the only bug in cutout. If one tries to cut out X length of video, then the new rendered video will have X length of audio removed from the end. In other words, if I remove 3 seconds of film somewhere in the media, the resulting movie will have 3 seconds of silence at the end, although the video at the end is still intact. Thankfully, this can be fixed by going into the moviepy library, into “decorators”, and on line 43 under “def apply_to_audio(f, clip, *a, **k):”, change it from “newclip.audio = f(newclip.audio, *a, **k)” to “newclip.audio = f(clip.audio, *a, **k)”. By the way, I didn’t come up with this fix, these guys did.
-
lord-of-the-clips (lotc): CLI app to download, trim/clip, and merge videos. Supports lots of sites. Downloads/trims at multiple points. Merges multiple clips.
This app leverages these powerful libraries: - yt-dlp: video downloader - moviepy: video trimmer/merger - click: CLI app creator - rich / rich-click: CLI app styler
-
How to extract an audio file from a video with Python
The pip will be used to install and use Moviepy.
manim
-
3Blue1Brown: Visualizing Attention, a Transformer's Heart
That is definitely one of the things he does better than most. He actually wrote a custom library for math animations: https://github.com/3b1b/manim
-
Where Is Noether's Principle in Machine Learning?
Not quite what you're looking for, but worth pointing out that Grant Sanderson of 3Blue1Brown has published the "framework" he uses for his math videos on GitHub.
https://github.com/3b1b/manim
-
3Blue1Brown Calculus Blog Series
3b1b uses a python library for creating those videos.
https://github.com/3b1b/manim
-
Animating High School Maths Curriculum
Manim, 3b1b's animation library is open source: https://github.com/3b1b/manim
-
Why do people think animation involves a ton of coding?
Coming to motion design, this rumour takes of due to the fact that there are programming libraries like Manim and Motion-Canvas which are actually used to generate animations from code. You can search 3Blue1Brown channel on youtube.
- Connaissez-vous des petits youtubeurs dans le style de Micode?
-
Stickman fucks around with math and finds out
It kinda looks like this: https://github.com/3b1b/manim, but that would be a crazy usage of it. Wondering if they’re compositing Manim with a more traditional animation suite.
-
Online classes in china 🔥
Probably used this for the animation: https://github.com/3b1b/manim
- Material python
-
What language for creating mathematical modeling program?
3blue1brown has had success with (their tool) manim, which uses Python.
What are some alternatives?
ffmpeg-python - Python bindings for FFmpeg - with complex filtering support
geogebra - GeoGebra apps (mirror)
vidgear - A High-performance cross-platform Video Processing Python framework powerpacked with unique trailblazing features :fire:
reanimate - Haskell library for building declarative animations based on SVG graphics
scikit-video - Video processing routines for SciPy
Tools-to-Design-or-Visualize-Architecture-of-Neural-Network - Tools to Design or Visualize Architecture of Neural Network
SaveTube - Youtube-dl GUI Wrapper
matplotplusplus - Matplot++: A C++ Graphics Library for Data Visualization 📊🗾
PyAV - Pythonic bindings for FFmpeg's libraries.
NumPy - The fundamental package for scientific computing with Python.
FFmpeg - Mirror of https://git.ffmpeg.org/ffmpeg.git
jupyter-manim - manim cell magic for IPython/Jupyter to show the output video