moviepy
pytube
moviepy | pytube | |
---|---|---|
45 | 24 | |
11,801 | 10,304 | |
- | 1.3% | |
2.8 | 2.4 | |
8 days ago | 13 days ago | |
Python | Python | |
MIT License | The Unlicense |
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.
pytube
-
Here's one way to deal with youtube blocking browsers which have ad blockers, i am not saying this is the best solution, since ublock and privacy possum aren't helping me rn
Then in the virtual environment pip install pytube, this is the documentation if you are interested.
-
hey i have a problem with the pytube 15.0.0 library need help to solve it here is the error message:
This is a known issue, likely started by something on YouTube's end.
-
YouTube Downloader
Pytube was used for YouTube video download logic.
- [Youtube Dl] Des alternatives à YT-DLP pour les scripts Python?
-
pytube VS youtube-dl - a user suggested alternative
2 projects | 3 Apr 2023
- pytube3 doesn't work suddenly
-
Is there a way to download a list of YouTube videos based on a list of artists/songs in text format.
$ python3 Python 3.10.6 (main, Nov 14 2022, 16:10:14) [GCC 11.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from pytube import Search >>> s = Search('once in a lifetime talking heads'); >>> print('https://youtu.be/%s' % s.results[0].video_id) Unexpected renderer encountered. Renderer name: dict_keys(['reelShelfRenderer']) Search term: once in a lifetime talking heads Please open an issue at https://github.com/pytube/pytube/issues and provide this log output. https://youtu.be/5IsSpAOD6K8
-
I Built an AI Search Engine that can find exact timestamps for anything on Youtube using OpenAI Whisper
If a transcript doesn’t exist, download the audio of the video as an mp3 file with Pytube and use our first ML model, OpenAI Whisper to transcribe
-
Making YouTube Mentions Tracker in Python
After all the parsing is done, we need to download videos from returned URLs using pytube. Here we only download audio with filter(only_audio=True) option as this is what we only need for transcript and defining output_path to create videos/ path with filename that was done at the parsing stage, i.e absolute filename.
-
Automatically Transcribe YouTube Videos with OpenAI Whisper
pip install git+https://github.com/openai/whisper.git pip install git+https://github.com/pytube/pytube.git pip install pandas
What are some alternatives?
ffmpeg-python - Python bindings for FFmpeg - with complex filtering support
pytchat - library for youtube chat.
vidgear - A High-performance cross-platform Video Processing Python framework powerpacked with unique trailblazing features :fire:
youtube-search-python - 🔎 Search for YouTube videos, channels & playlists. Get 🎞 video & 📑 playlist info using link. Get search suggestions. WITHOUT YouTube Data API v3.
scikit-video - Video processing routines for SciPy
Twitch-Python - Object-oriented Twitch API for Python developers
SaveTube - Youtube-dl GUI Wrapper
yugiohcards - A Python API wrapper for YGOProDeck.
PyAV - Pythonic bindings for FFmpeg's libraries.
metoffer - A simple Python wrapper for the API provided by the British Met Office known as DataPoint with additional tools for handling the returned data.
FFmpeg - Mirror of https://git.ffmpeg.org/ffmpeg.git
linqit - Extend python lists operations using .NET's LINQ syntax for clean and fast coding.