Replies: 1 comment
-
Please report this as a proper issue instead of using GitHub's Discussions feature, thank you. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I can't render 4k size video or clip. Technically 1441p to 2160p height of video/clip. I am getting the below error.
###The error start###
Moviepy - Building video 4k-2160.mp4.
MoviePy - Writing audio in 4k-2160TEMP_MPY_wvf_snd.mp3
MoviePy - Done.
Moviepy - Writing video 4k-2160.mp4
t: 7%|███▋ | 52/752 [00:12<04:32, 2.56it/s, now=None]Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/moviepy/video/io/ffmpeg_writer.py", line 136, in write_frame
self.proc.stdin.write(img_array.tobytes())
BrokenPipeError: [Errno 32] Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/hhrrdrdh/Desktop/index.py", line 28, in
final.write_videofile(outputfile)
File "", line 2, in write_videofile
File "/usr/local/lib/python3.9/dist-packages/moviepy/decorators.py", line 54, in requires_duration
return f(clip, *a, **k)
File "", line 2, in write_videofile
File "/usr/local/lib/python3.9/dist-packages/moviepy/decorators.py", line 135, in use_clip_fps_by_default
return f(clip, *new_a, **new_kw)
File "", line 2, in write_videofile
File "/usr/local/lib/python3.9/dist-packages/moviepy/decorators.py", line 22, in convert_masks_to_RGB
return f(clip, *a, **k)
File "/usr/local/lib/python3.9/dist-packages/moviepy/video/VideoClip.py", line 300, in write_videofile
ffmpeg_write_video(self, filename, fps, codec,
File "/usr/local/lib/python3.9/dist-packages/moviepy/video/io/ffmpeg_writer.py", line 228, in ffmpeg_write_video
writer.write_frame(frame)
File "/usr/local/lib/python3.9/dist-packages/moviepy/video/io/ffmpeg_writer.py", line 180, in write_frame
raise IOError(error)
OSError: [Errno 32] Broken pipe
MoviePy error: FFMPEG encountered the following error while writing file 4k-2160.mp4:
b''
###The error end###
###My System###
CPU: 1core
RAM: 3GB
Disk: 100GB
OS: Linux/Debian
FFmpeg: 7:4.3.5-0+deb11u1
Python3: 3.9.2-3
Also, i tried to edit moviepy > config_defaults.py like this but got the error when rendering 4k video.
FFMPEG_BINARY = os.getenv('FFMPEG_BINARY', '/usr/bin/ffmpeg')
IMAGEMAGICK_BINARY = os.getenv('IMAGEMAGICK_BINARY', '/usr/bin/convert')
When rendering below 4k video, it works fine.
Beta Was this translation helpful? Give feedback.
All reactions