-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
How can add my logo to right top of entire mp4 video using moviepy ? #127
Comments
Like this: import moviepy.editor as mp
video = mp.VideoFileClip("video.mp4")
logo = (mp.ImageClip("logo.png")
.set_duration(video.duration)
.resize(height=50) # if you need to resize...
.margin(right=8, top=8, opacity=0) # (optional) logo-border padding
.set_pos(("right","top")))
final = mp.CompositeVideoClip([video, logo])
final.write_videofile("test.mp4") Note that you can tweak the quality in write_videofile with for instance |
awesome!!! perfect !!! |
Cool. Have fun with moviepy and please report any bug you could find. |
sure. |
final.subclip(1000,1010).write_videofile("test.mp4") -----> from this (1000,1010) means what? can you give me share sample? |
its not working? "duration (%.02f)." % self.duration) |
forget about the ((1000,1010)) it was just a way to cut the clip between seconds 1000 and 1010. I removed it from the example. |
Hi there chunk: 0%| | 0/352 [00:00<?, ?it/s, now=None] chunk: 29%|██▊ | 101/352 [00:19<00:15, 15.93it/s, now=None] File "C:\Python\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration Help! |
@premj90 revert to an earlier version of moviepy |
How to set the |
Hi
How can add my logo (or text) to right top of entire mp4 video using moviepy ?
The text was updated successfully, but these errors were encountered: