2025-08-20 11:39:34 +08:00

54 lines
1.7 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# VideoLingo Batch Mode
[English](./README.md) | [简体中文](./README.zh.md)
在使用批处理模式前,请确保你已经使用过 Streamlit 模式并正确设置了 `config.yaml` 中的参数。
## 使用方法
### 1. 准备视频文件
- 将要处理的视频文件放入 `input` 文件夹
- YouTube 链接可在下一步填写
### 2. 配置任务
编辑 `tasks_setting.xlsx` 文件:
| 字段 | 说明 | 可选值 |
|------|------|--------|
| Video File | 视频文件名(无需 `input/` 前缀)或 YouTube 链接 | - |
| Source Language | 源语言 | 'en', 'zh', ... 或留空使用默认设置 |
| Target Language | 翻译语言 | 使用自然语言描述,或留空使用默认设置 |
| Dubbing | 是否配音 | 0 或留空不配音1配音 |
示例:
| Video File | Source Language | Target Language | Dubbing |
|------------|-----------------|-----------------|---------|
| https://www.youtube.com/xxx | | German | |
| Kungfu Panda.mp4 | | | 1 |
### 3. 运行批处理
1. 双击运行 `OneKeyBatch.bat`
2. 输出文件将保存在 `output` 文件夹
3. 任务状态可在 `tasks_setting.xlsx``Status` 列查看
> 注意在运行时保持 `tasks_setting.xlsx` 关闭,否则会因占用无法写入而中断。
## 注意事项
### 中断处理
如果中途关闭命令行,`config.yaml` 中的语言设置可能会改变。重试前请检查设置。
### 错误处理
- 处理失败的文件会被移至 `output/ERROR` 文件夹
- 错误信息记录在 `tasks_setting.xlsx``Status`
- 如需重试:
1.`ERROR` 下的单个视频文件夹移至根目录
2. 重命名为 `output`
3. 使用 Streamlit 模式重新执行