Files
mixvideo-v2/cargos/tvai-v2/models/ahq-12.json
imeepos 704272001f 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硬件加速

 优势:
- 无外部依赖,部署简单
- 启动速度快,内存占用小
- 向后兼容,不影响现有代码
- 完整中文注释,提升可读性
2025-08-18 13:01:03 +08:00

538 lines
15 KiB
JSON

{
"backends": {
"coreml": {
"model": "v3s",
"parallel": 1,
"scales": {
"1": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fnet-fp16-[H]x[W]-[S]x-ml.tz",
"gnet-fp16-[H]x[W]-[S]x-ml.tz"
],
"outputs": [
"fnet/output",
"generator/output"
]
},
"2": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fnet-fp16-[H]x[W]-[S]x-ml.tz",
"gnet-fp16-[H]x[W]-[S]x-ml.tz"
],
"outputs": [
"fnet/output",
"generator/output"
]
},
"4": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fnet-fp16-[H]x[W]-[S]x-ml.tz",
"gnet-fp16-[H]x[W]-[S]x-ml.tz"
],
"outputs": [
"fnet/output",
"generator/output"
]
}
}
},
"onnx": {
"model": "v3",
"parallel": 1,
"scales": {
"1": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp32-[H]x[W]-[S]x-ox.tz"
],
"outputs": [
"generator/output"
]
},
"2": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp32-[H]x[W]-[S]x-ox.tz"
],
"outputs": [
"generator/output"
]
},
"4": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp32-[H]x[W]-[S]x-ox.tz"
],
"outputs": [
"generator/output"
]
}
}
},
"onnx16": {
"model": "v3",
"parallel": 1,
"scales": {
"1": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp16-[H]x[W]-[S]x-ox.tz"
],
"outputs": [
"generator/output"
]
},
"2": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp16-[H]x[W]-[S]x-ox.tz"
],
"outputs": [
"generator/output"
]
},
"4": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp16-[H]x[W]-[S]x-ox.tz"
],
"outputs": [
"generator/output"
]
}
}
},
"openvino": {
"model": "v3",
"parallel": 0,
"scales": {
"1": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp16-[H]x[W]-[S]x-ox.tz"
],
"outputs": [
"generator/output"
]
},
"2": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp16-[H]x[W]-[S]x-ox.tz"
],
"outputs": [
"generator/output"
]
},
"4": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp16-[H]x[W]-[S]x-ox.tz"
],
"outputs": [
"generator/output"
]
}
}
},
"tensorrt": {
"capabilities": [
1200,
809,
806,
705
],
"model": "v3",
"parallel": 1,
"scales": {
"1": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp32-[H]x[W]-[S]x-rt[C]-[R]-rt.tz"
],
"outputs": [
"generator/output"
]
},
"2": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp32-[H]x[W]-[S]x-rt[C]-[R]-rt.tz"
],
"outputs": [
"generator/output"
]
},
"4": {
"blocks": [
288,
288,
352,
256,
480,
384,
384,
480,
384,
576,
416,
576,
576,
448,
672,
384,
672,
576
],
"nets": [
"fgnet-fp32-[H]x[W]-[S]x-rt[C]-[R]-rt.tz"
],
"outputs": [
"generator/output"
]
}
}
}
},
"enabled": 1,
"gui": {
"afterImg": "/tldb/images/model-thumbnails/AHQ_Enhanced.png",
"beforeImg": "/tldb/images/model-thumbnails/AHQ_Original.png",
"desc": "放大或锐化高质量输入视频,减少运动闪烁。",
"displayPri": 22,
"hiddenKeywords": [
"HQ"
],
"maxScale": 6,
"minScale": 0.25,
"modelPickerParams": {
"vidArtifactType": [
"Compression",
"Blurry",
"None"
],
"vidQuality": [
2
],
"vidType": [
"P",
"CG"
]
},
"name": "Artemis - 高质量",
"searchableKeywords": [
"Artemis",
"高质量输入"
],
"showScale": 1
},
"plugin" : {
"displayName" : "Artemis",
"videoQuality": [2]
},
"inputs": {
"fnetInput": "fnet/input",
"gnetInput": "generator/input",
"input": "fgwnet/input",
"previousInput": "pre_inputs",
"previousOutput": "pre_outputs"
},
"extraParameters" : [
{
"default": 0,
"max": 0.1,
"min": 0,
"name": "Add Noise",
"guiName": "添加噪声"
},
{
"default": 0.2,
"max": 1,
"min": 0,
"name": "Recover Details",
"guiName": "恢复细节"
}
],
"interlacedFrames": 0,
"jsonVersion": "1.0.0",
"keepColor": 1,
"key": "CHJPPIOMOMCPNLKEOLFNAPEBPGDDEIGBOOIDFPNMKAMDOEEFMIJJOOEFMEGNMAJJGIGJEPNJKCLDBKJIONNHGKDLPMAOGCHBGFBIHKGHACOBNLOBBONCFFCLBLDIAJNJCDBGFGABNBPJFEFONMKGPEPLBPPKEEGPDEPGOMGEMHBINMAACMKGGPOMAFFJFIDOCGKNALLLBHOIBCGMEJAGGJJGIIALINECNBBBGIHJLBMBPAFBHNIHIEEDEBLLDNDHCDNBDGONGANOOAJGCHIEBOOBIGNMJLOIKDIBLCBEFEDJKKBBKLHOCFPGJBCNBOIM",
"minAppVersion": "1.5.0",
"modelType": 1,
"noiseLevel": 0.4,
"postflight": 0,
"preflight": 5,
"shortName": "ahq",
"displayName": "高质量",
"version": "12"
}