MoviePy error: FFMPEG encountered the following error while writing file assets; OSError: [Errno 32] Broken pipe
Run bash build.sh then bash run.sh
If you try to download a Reddit thread with a / slash in the title it errors
t: 0%| | 2/1640 [00:00<06:35, 4.14it/s, now=None]Traceback (most recent call last): File "/usr/local/lib/python3.8/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 "main.py", line 100, in
>final_video = make_final_video(number_of_comments) File "/app/video_creation/final_video.py", line 84, in make_final_video final.write_videofile(filename, fps=30, audio_codec="aac", audio_bitrate="192k") File " ", line 2, in write_videofile File "/usr/local/lib/python3.8/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.8/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.8/dist-packages/moviepy/decorators.py", line 22, in convert_masks_to_RGB return f(clip, *a, **k) File "/usr/local/lib/python3.8/dist-packages/moviepy/video/VideoClip.py", line 300, in write_videofile ffmpeg_write_video(self, filename, fps, codec, File "/usr/local/lib/python3.8/dist-packages/moviepy/video/io/ffmpeg_writer.py", line 228, in ffmpeg_write_video writer.write_frame(frame) File "/usr/local/lib/python3.8/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 assets/Tattoo artists of Reddit, what was the weirdest / most disturbing tattoo a customer wanted.mp4:
b'assets/Tattoo artists of Reddit, what was the weirdest / most disturbing tattoo a customer wanted.mp4: No such file or directory\n'
I tried to add / in the regex inline 83 of final_video.py of the master branch. Ran git pull today to ensure it's updated. but for whatever reason that didn't work
trying to download this thread: https://www.reddit.com/r/AskReddit/comments/bi5jy3/tattoo_artists_of_reddit_what_was_the_weirdest/?utm_source=share&utm_medium=web2x&context=3
using python3.8.9; all dependencies installed
Mac OS, M1, arm64
$PATH is set to /usr/bin/python3, not using homebrew nor miniforge
all dependencies are installed (with pip3)
same issue here on DEB10 BUSTER
#332 is your answer!
is this solved yet?
#332 is your answer!
doesn't work for some reason, end up getting a POSTPROCESSING error; tried deleting Docker container + image and building fresh, won't work
URL: https://www.youtube.com/watch?v=iAVbLq1C6RA ╭────────────────────────────────────────────────────────────────────────────────────────────────────╮ │ We need to download the background video. This may be fairly large but it's only done once per │ │ background. │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ Downloading the background video... please be patient. [youtube] iAVbLq1C6RA: Downloading webpage [youtube] iAVbLq1C6RA: Downloading android player API JSON [info] iAVbLq1C6RA: Downloading 1 format(s): 313+251 [download] Resuming download at byte 83955529 [download] Destination: assets/mp4/iAVbLq1C6RA.f313.webm [download] 100% of 788.80MiB in 00:49 [download] Destination: assets/mp4/iAVbLq1C6RA.f251.webm [download] 100% of 4.26MiB in 00:00 [Merger] Merging formats into "assets/mp4/iAVbLq1C6RA.mp4" ERROR: Postprocessing: Stream #1:0 -> #0:1 (copy) Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 3204, in process_info replace_info_dict(self.post_process(dl_filename, info_dict, files_to_move)) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 3374, in post_process info = self.run_all_pps('post_process', info, additional_pps=info.get('__postprocessors')) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 3361, in run_all_pps info = self.run_pp(pp, info) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 3340, in run_pp files_to_delete, infodict = pp.run(infodict) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/postprocessor/common.py", line 25, in run ret = func(self, info, *args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/postprocessor/common.py", line 129, in wrapper return func(self, info) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/postprocessor/ffmpeg.py", line 827, in run self.run_ffmpeg_multiple_files(info['__files_to_merge'], temp_filename, args) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/postprocessor/ffmpeg.py", line 282, in run_ffmpeg_multiple_files return self.real_run_ffmpeg( File "/usr/local/lib/python3.8/dist-packages/yt_dlp/postprocessor/ffmpeg.py", line 321, in real_run_ffmpeg raise FFmpegPostProcessorError(stderr.split('\n')[-1]) yt_dlp.postprocessor.ffmpeg.FFmpegPostProcessorError: Stream #1:0 -> #0:1 (copy)
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "main.py", line 111, in
vidpath = download_background(length) File "/app/video_creation/background.py", line 52, in download_background ydl.download(vidurl) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 3254, in download self.__download_wrapper(self.extract_info)( File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 3230, in wrapper res = func(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 1386, in extract_info return self.__extract_info(url, self.get_info_extractor(ie_key), download, extra_info, process) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 1395, in wrapper return func(self, *args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 1479, in __extract_info return self.process_ie_result(ie_result, download, extra_info) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 1535, in process_ie_result ie_result = self.process_video_result(ie_result, download=download) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 2640, in process_video_result self.process_info(new_info) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 3206, in process_info self.report_error('Postprocessing: %s' % str(err)) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 936, in report_error self.trouble(f'{self._format_err("ERROR:", self.Styles.ERROR)} {message}', *args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/yt_dlp/YoutubeDL.py", line 879, in trouble raise DownloadError(message, exc_info)
yt_dlp.utils.DownloadError: ERROR: Postprocessing: Stream #1:0 -> #0:1 (copy)
Ohh... you are using docker. Can you try a local install? I want to check if it's a docker error or a moviepy error.
Ohh... you are using docker. Can you try a local install? I want to check if it's a docker error or a moviepy error.
local installs a big hell no 🤣 ; arm64 chips suck for tons of the peer-deps
what is the current solution if there is one?
This issue is stale because it has been open 7 days with no activity. Remove stale label or comment, or this will be closed in 10 days.
stale