perf(video): 优化视频处理性能监控和音频播放
- 添加视频处理性能计时和统计功能 - 实现帧处理时间监控和慢帧警告 - 添加音频文件静音修剪功能 - 优化Windows平台音频播放实现 - 调整默认日志输出频率减少冗余信息 - 修复MediaPipe GPU委托在Windows上的兼容性问题
This commit is contained in:
+6
-1
@@ -16,7 +16,9 @@ class ServerConfig:
|
||||
class VideoConfig:
|
||||
"""视频帧处理配置"""
|
||||
process_every_n_frames: int = 2
|
||||
log_every_n_frames: int = 2
|
||||
log_every_n_frames: int = 30
|
||||
perf_log_every_n_frames: int = 30
|
||||
slow_frame_ms: float = 100.0
|
||||
|
||||
|
||||
@dataclass
|
||||
@@ -49,6 +51,9 @@ class AudioConfig:
|
||||
rep_announcer_volume: float = 1.0
|
||||
rep_max_count: int = 200
|
||||
rep_audio_dir: str = ""
|
||||
trim_leading_silence: bool = True
|
||||
trim_silence_threshold: int = 500
|
||||
trim_silence_padding_ms: int = 20
|
||||
|
||||
@property
|
||||
def resolved_audio_dir(self) -> Path:
|
||||
|
||||
Reference in New Issue
Block a user