feat: asrx recovery + pipeline fixes + face trace improvements

- ASR-ASRX unified processor (asr_asrx → asrx), output .asrx.json
- ffmpeg -vsync → -fps_mode (swift_ocr, swift_hand, swift_pose, frame_cache)
- ffprobe absolute path for probe
- PYTHONPATH + PATH added to executor subprocesses
- cut processor path fix (cut/cut_processor.py)
- scene_vlm fallback when blur_scores empty + ffmpeg absolute path
- rust_store_traced_faces generates key_face.jpg with --video-path
- face group representative trace picks highest best_confidence
- Studio: move FS doesn't remove from unassigned, always reload after move
- Studio: confirmMoveFaceToNewGroup simplified to just rename
- Studio: scene_vlm added to processors list
- Studio: scene_vlm shows (0) when ready but no scenes
- admin_config asr_config block added
This commit is contained in:
Accusys
2026-11-06 10:00:24 +08:00
parent e56e2892d0
commit c6cbb5d1fb
139 changed files with 27117 additions and 151 deletions
+56
View File
@@ -1098,6 +1098,62 @@ impl ProcessorPool {
total_faces: 0,
})
}
ProcessorType::AsrAsrx => {
let asr_asrx_result = processor::process_asr_asrx(
video_path,
output_path.to_str().unwrap(),
uuid,
)
.await?;
// Convert to AsrResult for storage
let asr_segments: Vec<processor::AsrSegment> = asr_asrx_result
.segments
.iter()
.map(|s| processor::AsrSegment {
start_time: s.start,
end_time: s.end,
start_frame: None,
end_frame: None,
text: s.text.clone(),
confidence: 1.0,
})
.collect();
let mut asr_result = processor::AsrResult {
metadata: None,
status: None,
language: Some(asr_asrx_result.language.clone()),
language_probability: None,
segments: asr_segments,
segment_count: 0,
};
asr_result.compute_status();
let chunks_produced = asr_result.segments.len() as i32;
let lang = asr_result.language.clone();
tracing::info!(
"ASR_ASRX completed, language={}, {} segments for {}",
lang.as_deref().unwrap_or("unknown"),
chunks_produced,
job.uuid
);
if let Err(e) = Self::store_asr_chunks(db, &job.uuid, &asr_result).await {
tracing::error!("Failed to store ASR_ASRX chunks for {}: {}", job.uuid, e);
}
Ok(ProcessorOutput {
data: serde_json::Value::Null,
chunks_produced,
frames_processed: total_frames,
total_frames,
retry_count: 0,
pid: 0,
asr_status: asr_result.status.clone(),
segment_count: asr_result.segment_count,
face_status: None,
total_faces: 0,
})
}
ProcessorType::Asrx => {
let mut result =
processor::process_asrx(video_path, output_path.to_str().unwrap(), uuid)