Heyy guys, I just used MoviePy for the first time and at the beginning it worked totally fine. But then after the third clip (sec 34) I observed a weird disruption. I have no words for it but please take a look at it and the code below. Each of the clips is flawless as itself. What could be the reason for it? Thanks in advance! https://www.dropbox.com/s/v7aur2h6nej751p/my_tiktok_compilation.mp4?dl=0
from moviepy.editor import VideoFileClip, concatenate_videoclips
import os, os.path
## Cutting the Clips ##
all_clips = []
# folder path
dir_path = r'./clips'
count = 0
# Iterate directory
for path in os.listdir(dir_path):
# check if current path is a file
if os.path.isfile(os.path.join(dir_path, path)):
count += 1
clip = VideoFileClip(f"./clips/{path}")
#clip.set_position("center") # automatically centered
all_clips.append(clip)
print('File count:', count)
final_clip = concatenate_videoclips(all_clips)
final_clip.write_videofile("my_tiktok_compilation.mp4")