fix: trace video normal mode — remove -an to preserve audio

This commit is contained in:
Accusys
2026-05-14 18:38:11 +08:00
parent 54763ea88d
commit 93d87f0582

View File

@@ -328,7 +328,7 @@ async fn trace_video(
let tmp_str = tmp.to_str().unwrap_or("").to_string();
let result = ffmpeg_cmd()
.args(["-ss", &seek.to_string(), "-i", &video_path, "-t", &duration.to_string(),
"-c", "copy", "-an", "-y", &tmp_str])
"-c", "copy", "-y", &tmp_str])
.output()
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
if !result.status.success() {