feat: Rule 3 moment chunks — 10s windows with 1-2 key frames
- Add ChunkType::Moment to types.rs - Add moment_interval to FileProfile (configurable, default 10s) - Create rule3_moment.rs: reads trace_profile.json, groups by time window, selects 1-2 diverse key frames using Jaccard similarity on VLM text - Embed moment chunks into Qdrant using trace VLM embeddings - Wire into worker: triggers after VLM completes, blocks job completion - Add moment_chunks progress stage (weight: 0.01)
This commit is contained in:
@@ -45,6 +45,8 @@ pub struct FileProfile {
|
||||
pub proxy_path: Option<String>, // 720p proxy path for 1080p+ videos
|
||||
pub audio_track: Option<String>, // audio track classification: no_audio/silent_audio/music_only/speech_only/speech_with_music
|
||||
pub face_filter: Option<FaceFilterSettings>,
|
||||
#[serde(default)]
|
||||
pub moment_interval: Option<f64>, // seconds per moment window, default 10.0
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
@@ -149,6 +151,7 @@ impl FileProfile {
|
||||
proxy_path: None,
|
||||
audio_track: None,
|
||||
face_filter: None,
|
||||
moment_interval: None,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -188,6 +191,7 @@ impl FileProfile {
|
||||
proxy_path: None,
|
||||
audio_track: None,
|
||||
face_filter: None,
|
||||
moment_interval: None,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -317,6 +321,7 @@ impl FileProfile {
|
||||
proxy_path: None,
|
||||
audio_track: None,
|
||||
face_filter: None,
|
||||
moment_interval: None,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user