Nix gave no errors, but MoviePy did
Here is my code:
from moviepy.video.io.ffmpeg_tools import ffmpeg_extract_subclip
from moviepy.editor import *
from vars import sound_files, comments
ffmpeg_extract_subclip("MC.mp4", 10, 70, targetname="cut.mp4")
clip = VideoFileClip("cut.mp4")
clips = [clip]
# Generate a text clip
txt_clip = TextClip("GeeksforGeeks", fontsize = 75, color = 'black').set_pos('center').set_duration(10)
clips.append(txt_clip)
txt_clip0 = TextClip("test", fontsize = 75, color = 'black').set_pos('center').set_duration(10)
clips.append(txt_clip0)
# Overlay the text clip on the first video clip
video = CompositeVideoClip(clips)
video.write_videofile("edit.mp4")
What says it is not installed? Nix usually only installs the cli tool, so you need to configure it specially to use it in code, but you can usually just use it normally on the command line.