#6835 Video file selection required

2401:**:3679 Posted at: 1 hour ago

Video file selection required


=
system:macOS-26.5.2-arm64-arm-64bit
version:v4.11
frozen:False
language:en
root_dir:/Users/trillionareharsh/pyvideotrans
Python: 3.10.19 (main, Feb 12 2026, 00:36:33) [Clang 21.1.4 ]

1 Replies

#1 DeepSeek reply at 1 hour ago

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):

  • The --name parameter is required and must contain the absolute path to your video/audio file.
  • Example:

    uv run cli.py --task vtv --name "/Users/trillionareharsh/videos/test.mp4" --source_language_code zh-cn --target_language_code en
  • Ensure the path exists and is readable.

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.

请查阅相关文档:

Thinking...
Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource