Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OSError: [WinError 6] 句柄无效。 #545

Open
qqqxc opened this issue Dec 6, 2024 · 1 comment
Open

OSError: [WinError 6] 句柄无效。 #545

qqqxc opened this issue Dec 6, 2024 · 1 comment

Comments

@qqqxc
Copy link

qqqxc commented Dec 6, 2024

在生成视频的最后一步报错了,报错信息如下
Exception ignored in: <function FFMPEG_VideoReader.del at 0x000002B23DBF6680>
Traceback (most recent call last):
File "D:\anaconda\envs\MoneyPrinterTurbo\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 199, in del
self.close()
File "D:\anaconda\envs\MoneyPrinterTurbo\lib\site-packages\moviepy\video\io\ffmpeg_reader.py", line 190, in close
self.proc.terminate()
File "D:\anaconda\envs\MoneyPrinterTurbo\lib\subprocess.py", line 1589, in terminate
_winapi.TerminateProcess(self._handle, 1)
OSError: [WinError 6] 句柄无效。
从我的浏览器中返回的信息如下,我想请问这是遇到了什么问题,我需要重新装一个ffmpeg的库吗
File "D:\anaconda\envs\MoneyPrinterTurbo\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 584, in _run_script
exec(code, module.dict)
File "D:\badminton_get\try_video\MoneyPrinterTurbo\webui\Main.py", line 788, in
result = tm.start(task_id=task_id, params=params)
File "D:\badminton_get\try_video\MoneyPrinterTurbo\app\services\task.py", line 299, in start
final_video_paths, combined_video_paths = generate_final_videos(
File "D:\badminton_get\try_video\MoneyPrinterTurbo\app\services\task.py", line 192, in generate_final_videos
video.generate_video(
File "D:\badminton_get\try_video\MoneyPrinterTurbo\app\services\video.py", line 276, in generate_video
sub = SubtitlesClip(subtitles=subtitle_path, encoding="utf-8")

@yyhhyyyyyy
Copy link
Collaborator

Which version are you using?
If it's the latest version, have you recreated a virtual environment and reinstalled the dependencies?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants