feat: 集成内置FFmpeg配置系统和中文注释

主要功能:
- 将JSON配置文件内容内置到代码中,移除外部文件依赖
- 将ffmpeg.rs中所有英文注释改为中文注释
- 集成ffmpegOpts参数生成系统

 内置配置:
- 音频编解码器: AAC, AC3, PCM, Vorbis (4个)
- 视频编码器: H.264/H.265 NVENC, VideoToolbox, AMF, 软件编码器 (8个)
- 模型推荐规则: 基于分辨率的智能推荐

 新增功能:
- 智能编码器选择 (根据操作系统和GPU)
- 自动模型推荐 (基于视频分辨率)
- 动态参数生成 (支持占位符替换)
- 兼容性筛选 (按格式、平台、硬件)
- 批处理命令生成

 新增文件:
- examples/: 4个演示程序
- tests/: FFmpeg配置测试套件
- 文档: 使用指南、配置说明、功能总结

 测试验证:
- 21个单元测试全部通过
- 4个演示程序运行成功
- 支持Windows/macOS/Linux多平台
- 支持NVIDIA/AMD/Apple硬件加速

 优势:
- 无外部依赖,部署简单
- 启动速度快,内存占用小
- 向后兼容,不影响现有代码
- 完整中文注释,提升可读性
This commit is contained in:
imeepos
2025-08-18 13:01:03 +08:00
parent 5345c703f5
commit 704272001f
13 changed files with 2196 additions and 190 deletions

View File

@@ -467,7 +467,7 @@
"gui": {
"afterImg": "/tldb/images/model-thumbnails/AAA_Enhanced.png",
"beforeImg": "/tldb/images/model-thumbnails/AAA_Original.png",
"desc": "Upscale video with aliasing or moire patterns. Aliasing is common in computer generated (CG) content, or from line-skipping cameras.",
"desc": "放大具有锯齿或摩尔纹的视频。锯齿现象常见于计算机生成(CG)内容或跳行扫描摄像机拍摄的视频中。",
"displayPri": 30,
"hiddenKeywords": [
"AA"
@@ -489,7 +489,7 @@
"CG"
]
},
"name": "Artemis - Aliasing or Moire",
"name": "Artemis - 锯齿或摩尔纹",
"searchableKeywords": [
"Artemis",
"Antialias"
@@ -497,7 +497,7 @@
"showScale": 1
},
"plugin" : {
"displayName" : "Artemis - Aliasing or Moire",
"displayName" : "Artemis - 锯齿或摩尔纹",
"videoQuality": [0,1,2]
},
"inputs": {
@@ -513,14 +513,14 @@
"max": 0.1,
"min": 0,
"name": "Add Noise",
"guiName": "Add Noise"
"guiName": "添加噪声"
},
{
"default": 0.2,
"max": 1,
"min": 0,
"name": "Recover Details",
"guiName": "Recover Details"
"guiName": "恢复细节"
}
],
"interlacedFrames": 0,
@@ -533,6 +533,6 @@
"postflight": 0,
"preflight": 5,
"shortName": "aaa",
"displayName": "Aliasing or Moire",
"displayName": "锯齿或摩尔纹",
"version": "10"
}

View File

@@ -467,7 +467,7 @@
"gui": {
"afterImg": "/tldb/images/model-thumbnails/AHQ_Enhanced.png",
"beforeImg": "/tldb/images/model-thumbnails/AHQ_Original.png",
"desc": "Upscale or sharpen high quality input video, reducing motion flicker.",
"desc": "放大或锐化高质量输入视频,减少运动闪烁。",
"displayPri": 22,
"hiddenKeywords": [
"HQ"
@@ -488,10 +488,10 @@
"CG"
]
},
"name": "Artemis - High Quality",
"name": "Artemis - 高质量",
"searchableKeywords": [
"Artemis",
"High Quality Input"
"高质量输入"
],
"showScale": 1
},
@@ -512,14 +512,14 @@
"max": 0.1,
"min": 0,
"name": "Add Noise",
"guiName": "Add Noise"
"guiName": "添加噪声"
},
{
"default": 0.2,
"max": 1,
"min": 0,
"name": "Recover Details",
"guiName": "Recover Details"
"guiName": "恢复细节"
}
],
"interlacedFrames": 0,
@@ -532,6 +532,6 @@
"postflight": 0,
"preflight": 5,
"shortName": "ahq",
"displayName": "High Quality",
"displayName": "高质量",
"version": "12"
}