dchatel / vid-faceswap

32 stars 3 forks source link

MoviePy error: FFMPEG encountered Permission denied #8

Open SandUhrGucker opened 1 year ago

SandUhrGucker commented 1 year ago

Hi,

seems to be a great extention, thank you for sharing!

Sadly after propper installation like described in Readme, I always run in Permission denied errors when it wants to create a video.

I'm running: Win10 Python 3.10.6 SD/Automatic1111 Version: v1.5.2 moviepy-1.0.3 imageio-ffmpeg-0.4.2

My guess would be the "write to temp-folder" method in moviepy was modified.

Could you please suggest Module-Versions you use?

Regards Rene


BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\routes.py", line 422, in run_predict output = await app.get_blocks().process_api( File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1323, in process_api result = await self.call_function( File "C:\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 1051, in call_function prediction = await anyio.to_thread.run_sync( File "C:\stable-diffusion-webui\venv\lib\site-packages\anyio\to_thread.py", line 33, in run_sync return await get_asynclib().run_sync_in_worker_thread( File "C:\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 877, in run_sync_in_worker_thread return await future File "C:\stable-diffusion-webui\venv\lib\site-packages\anyio_backends_asyncio.py", line 807, in run result = context.run(func, args) File "C:\stable-diffusion-webui\extensions\vid-faceswap\scripts\vid_faceswap.py", line 158, in process_video video_writer(video_file, swapped_frames, fps, audio) File "C:\stable-diffusion-webui\extensions\vid-faceswap\scripts\video.py", line 47, in video_writer clip.write_videofile(file, audio_codec='aac', fps=clip.fps) File "", line 2, in write_videofile File "C:\stable-diffusion-webui\venv\lib\site-packages\moviepy\decorators.py", line 54, in requires_duration return f(clip, a, k) File "", line 2, in write_videofile File "C:\stable-diffusion-webui\venv\lib\site-packages\moviepy\decorators.py", line 137, in use_clip_fps_by_default return f(clip, *new_a, *new_kw) File "", line 2, in write_videofile File "C:\stable-diffusion-webui\venv\lib\site-packages\moviepy\decorators.py", line 22, in convert_masks_to_RGB return f(clip, a, k) File "C:\stable-diffusion-webui\venv\lib\site-packages\moviepy\video\VideoClip.py", line 319, in write_videofile ffmpeg_write_video(self, filename, fps, codec, File "C:\stable-diffusion-webui\venv\lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 223, in ffmpeg_write_video writer.write_frame(frame) File "C:\stable-diffusion-webui\venv\lib\site-packages\moviepy\video\io\ffmpeg_writer.py", line 177, in write_frame raise IOError(error) OSError: [Errno 32] Broken pipe

MoviePy error: FFMPEG encountered the following error while writing file /20230926112719130348 fuuuck11313139.mp4:

b'/20230926112719130348 fuuuck11313139.mp4: Permission denied\r\n'