You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
doanaktar opened this issue
Jul 10, 2023
· 4 comments
Labels
imagesRelated to ImageClip, or handling of images in general.questionQuestions regarding functionality, usagevideoRelated to VideoClip and related classes, or handling of video in general.
Hello, I have a video in .webm format with a transparent background(clip2) and a normal mp4 video(clip1). I want to overlay clip2 video on clip1 video, but when I do that, the transparent feature in the background of clip2 disappears and a red beam of light comes on.
Here is my code:
from moviepy.editor import VideoFileClip, CompositeVideoClip
clip1 = VideoFileClip("test.mp4")
clip2 = VideoFileClip("transparent.webm")
clip2 = clip2.resize(0.25)
video = CompositeVideoClip([clip1,
clip2.set_position(("right","bottom"))])
video.write_videofile("my_concatenation.mp4")
The text was updated successfully, but these errors were encountered:
keikoro
added
video
Related to VideoClip and related classes, or handling of video in general.
images
Related to ImageClip, or handling of images in general.
labels
Jul 11, 2023
If you install the Pull Request #2229 , or you wait until the approval and update of moviepy, you can set parameters decoder="libvpx-vp9" and has_mask=True in VideoFIleClip like this:
imagesRelated to ImageClip, or handling of images in general.questionQuestions regarding functionality, usagevideoRelated to VideoClip and related classes, or handling of video in general.
Hello, I have a video in .webm format with a transparent background(clip2) and a normal mp4 video(clip1). I want to overlay clip2 video on clip1 video, but when I do that, the transparent feature in the background of clip2 disappears and a red beam of light comes on.
Here is my code:
The text was updated successfully, but these errors were encountered: