fix: trace video normal mode — remove -an to preserve audio
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user