首次提交

This commit is contained in:
2026-09-28 16:09:31 +08:00
commit 4a6839319a
71 changed files with 12144 additions and 0 deletions

113
config/config.json Normal file
View File

@@ -0,0 +1,113 @@
{
"tencentcloud": {
"ocr": {
"secret_id": "",
"secret_key": "",
"max_attempts": 4,
"timeout": 30,
"dispatch_log_every": 1000,
"endpoints": [
]
},
"cos": {
"secret_id": "",
"secret_key": "",
"region": "",
"bucket": ""
}
},
"audio": {
"model_size": "small",
"device": "cpu",
"compute_type": "float16",
"device_index": "auto",
"cpu_threads": 2
},
"splitframe": {
"interval_seconds": 0.33,
"ffmpeg_threads": 3,
"use_gpu": true,
"gpu_skip_codecs": [
"av1"
],
"gpu_reserve_last_for_whisper": false,
"gpu_skip_indices": [],
"gpu_auto_select": true,
"gpu_busy_mem_mb": 4096,
"crop_bottom_ratio": null,
"download": true,
"root_path": "./video",
"upload_path": "",
"delete_video": true,
"coscli_path": "./coscli-linux-amd64",
"cosconfig_path": ".cos.yaml",
"ffmpeg_timeout": 3600
},
"subtitle": {
"min_confidence": 50,
"similarity_threshold": 0.7,
"ocr_workers": 20,
"require_chinese": true,
"redundant_bands": 12,
"redundant_merge_ratio": 0.97,
"no_composite": false,
"min_duration_seconds": 0,
"merge_workers": 4,
"cv_detect": true,
"cv_use_region": false,
"max_tiles_per_composite": 24,
"ocr_max_image_side": 4000,
"filter_static": true,
"static_frac": 0.25,
"filter_lowconf": true,
"lowconf_thr": 80,
"lowconf_filter_frac": 0.6,
"lowconf_min_det": 200,
"strip_static_prefix": false,
"filter_watermark_pos": true,
"wm_dominant_frac": 0.25,
"wm_min_count": 20,
"split_far_boxes": true,
"max_duration_seconds": 0,
"long_video_list": "./超长待重跑.txt",
"ocr_no_drop": true,
"ocr_max_passes": 5,
"ocr_retry_sleep": 2,
"ocr_fail_list": "./OCR失败待重跑.txt",
"max_global_ocr": 0,
"no_subtitle_reasons": [
"字幕太少",
"冗余文字过多",
"冗余文字太多",
"无字幕区域",
"非字幕内容",
"置信度太低",
"未检测",
"特殊字体",
"视频过短",
"视频过长"
]
},
"dispatch": {
"enabled": true,
"source": "cos",
"run_long_video": false,
"auto_fallback_long_video": false,
"global_dedup_on_startup": false,
"machine_id": "",
"jobs_root": "",
"shard_size": 2000,
"keep_alive": true,
"idle_poll_seconds": 60,
"claim_shuffle": true,
"claim_match": "",
"heartbeat_seconds": 300,
"daily_backup_path": "",
"monitor_root": "",
"long_list_backup_path": "",
"long_list_clear_after_upload": true,
"long_list_min_batch": 1000,
"daily_backup_hour": 10,
"stop_flag_key": ""
}
}