This error occurs because no video or audio file was selected before starting a translation task. In pyVideoTrans, the source file is a mandatory input for the 视频翻译 (Video Translation) workflow, and the software validates this before executing.
Solutions depend on how you are running the software:
1. If using the GUI (sp.py):
- On the main interface, the first row requires selecting a source file. Click the "选择音频或视频" (Select Audio or Video) button.
- Choose a supported format file:
.mp4, .mkv, .avi, .mov, .wav, .mp3, etc. - After the file appears in the list, click "开始执行" (Start Execution).
2. If using the CLI (cli.py):
3. If using WebUI (webui.py):
- Select/upload a video file in the WebUI interface before submitting the task.
Additional checks:
- Verify the file is not corrupted and is in a supported format.
- If you are certain you selected a file but still see this error, confirm the file path contains no special characters or extremely long directory names, then try again.
请查阅相关文档: