fix: file_uuid format + ffprobe path
**Fixes**: 1. file_uuid: Use standard format with hyphens (consistent with other 11 places) - Changed from simple().to_string() to to_string() - Format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 2. ffprobe: Use FFPROBE_PATH environment variable - Fallback to 'ffprobe' in PATH - Follows project convention (DATABASE_URL, AUDIT_ENCRYPTION_KEY) - Solves non-interactive PATH issue **Rationale**: - Both are one-line changes - Reduces packaging cycles (avoiding 4th binary sync issue) - Critical for data consistency and deployment automation
This commit is contained in:
@@ -34,7 +34,10 @@ pub struct FormatInfo {
|
||||
}
|
||||
|
||||
pub fn probe_video(video_path: &str) -> Result<ProbeResult> {
|
||||
let output = Command::new("ffprobe")
|
||||
// Use FFPROBE_PATH environment variable, fallback to "ffprobe"
|
||||
let ffprobe_path = std::env::var("FFPROBE_PATH").unwrap_or_else(|_| "ffprobe".to_string());
|
||||
|
||||
let output = Command::new(&ffprobe_path)
|
||||
.args([
|
||||
"-v",
|
||||
"quiet",
|
||||
|
||||
Reference in New Issue
Block a user