0

During write_videofile i get Errno32 inside Errno32

def creating_video(files, title):
    fragments = []
    for file in files:
        print(file)
        clip = VideoFileClip(file).subclip()
        fragments.append(clip)
    video = moviepy.editor.concatenate_videoclips(fragments)
    video.write_videofile(f"{title}.mp4")
    return None


video_fragments = preparing_videos(title)
creating_video(video_fragments[0], video_fragments[1])

files is list containing paths to mp4 files making up final video

Current FFMPEG version - 5.1.2

Current MoviePy version - 1.0.3

I added FFMPEG to Path instead of using ImageIO-FFMPEG bundled with moviepy. Checked different versions of FFMPEG Checked app at linux system which generated .mp3 and mp.4 files but at the end after merging them the final file was broken. Tried installing moviepy with pipx On windows app doesnt even render chunks error:

chunk:   0%|          | 0/11098 [00:00<?, ?it/s, now=None]Traceback (most recent call last):
    self.proc.stdin.write(frames_array.tobytes())
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

OSError: [Errno 32] Broken pipe

MoviePy error: FFMPEG encountered the following error while writing file titleTEMP_MPY_wvf_snd.mp3:
b'titleTEMP_MPY_wvf_snd.mp3: Invalid argument\r\n'
Krest
  • 1

0 Answers0