0

When I execute the following code the pygame window opens and displays the first frame of my video and then I get this error message: ValueError: Array depth must match number of mixer channels. Is there a mistake in the code? Or is something wrong with the .mp4 file?

import pygame
import moviepy.editor
import os

pygame.init()
video = moviepy.editor.VideoFileClip(os.path.join('files', 'video.mp4'))
video.preview()
pygame.quit()
  • *Or is something wrong with the .mp4 file?* --> maybe try another file, or a another music with a `moviepy`-supported extension? – D_00 May 22 '22 at 07:54
  • I tried it with another file, the first one had no sound. But with the exactly same thing happened with the new file that had sound. – Lauchrinx007 May 28 '22 at 11:48

0 Answers0