Add movie commentary pipeline with script normalization#185
Open
chichu5582 wants to merge 85 commits intolinyqh:mainfrom
Open
Add movie commentary pipeline with script normalization#185chichu5582 wants to merge 85 commits intolinyqh:mainfrom
chichu5582 wants to merge 85 commits intolinyqh:mainfrom
Conversation
- 在 generate_short_summary.py 中添加 temperature 参数,用于控制生成文案的随机性- 修改 prompt.py 中的段落数要求,改为与字幕长度成正比 - 在 short_drama_explanation.py 中添加日志输出,记录使用的模型和温度
- 在 Windows 系统上增加显卡信息检测,避免使用不兼容的硬件加速 - 添加强制使用软件编码的选项,提升兼容性 - 增强错误处理机制,确保在硬件加速失败时能够回退到软件编码 - 更新日志信息,提供更清晰的处理反馈
引入AudioVolumeDefaults类集中管理音量配置,确保全局一致性 修复原声音量默认值为0.7以解决短剧解说模式问题 添加音量验证和详细日志便于调试
添加subtitle_enabled参数控制字幕处理逻辑,当禁用时跳过字幕处理 修复字幕文件不存在时的日志级别为warning
添加智能硬件加速检测功能,支持多平台和渐进式降级 优化编码器选择逻辑,根据硬件类型自动选择最优编码器 增加测试视频生成和清理功能,用于硬件加速兼容性测试 支持强制软件编码模式,提供更可靠的备选方案
修复历史遗留 bug
新增安全编码器配置和FFmpeg命令构建函数,支持硬件加速类型的动态选择。改进裁剪过程中的错误处理,记录失败片段并提供回退编码方案,确保视频裁剪的可靠性和兼容性。
更新编码器配置,优先使用纯NVENC编码器以避免滤镜链错误,确保视频裁剪和合并过程中的兼容性和性能。改进错误处理机制,智能分析FFmpeg错误类型并选择合适的回退方案,提升整体稳定性和用户体验。
更新AudioVolumeDefaults类,提升原声音量至1.2以平衡TTS音量,并允许最大音量达到2.0。新增智能音量调整功能,自动分析和调整音频轨道音量,确保音量在合理范围内。优化任务处理逻辑,结合用户设置和推荐音量配置,提升音频合成效果和用户体验。
删除不再使用的脚本文件(check_gpu_cuda_cudnn.bat, changelog.py, main.py, release-notes.md, video_pipeline.py) 将项目版本从0.6.8更新至0.7.0,并同步更新config.example.toml中的版本号
修复amix导致的音量稀释问题,为每个音频添加音量补偿 保持原声片段音量为1.0不变,确保与原视频一致 仅在需要时调整原声音量,避免不必要的修改
清理未使用的控制器、测试文件和模型定义 移除Dockerfile中未使用的8080端口暴露 删除requirements.txt中的注释依赖
处理空字幕文件情况并改进错误处理 确保合并失败时有默认返回值 添加字幕文件有效性检查函数
重构Docker相关配置,包括: - 更新.dockerignore文件,增加更多忽略规则 - 优化requirements.txt依赖管理 - 新增Makefile提供常用命令 - 重构docker-compose.yml配置 - 增强docker-entrypoint.sh功能 - 改进Dockerfile多阶段构建 - 新增docker-deploy.sh一键部署脚本
防止被骗
更新防止被骗提示
更新许可证
更新许可证
新增腾讯云 TTS 服务
新增大模型代理,新增腾讯tts,优化 gemini 请求
修复试听 tts bug
Author
|
是的 |
Author
|
收到 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 类型
请选择一个适当的标签(必选其一):
描述
相关 Issue
更改内容
测试
截图(如果适用)
检查清单
补充说明