0

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")

I have tried to change the output format with libvpx-vp9 but it doesn't seems to work either

Doğan
  • 1
  • 1

0 Answers0