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 tmp_str = tmp.to_str().unwrap_or("").to_string();
|
||||||
let result = ffmpeg_cmd()
|
let result = ffmpeg_cmd()
|
||||||
.args(["-ss", &seek.to_string(), "-i", &video_path, "-t", &duration.to_string(),
|
.args(["-ss", &seek.to_string(), "-i", &video_path, "-t", &duration.to_string(),
|
||||||
"-c", "copy", "-an", "-y", &tmp_str])
|
"-c", "copy", "-y", &tmp_str])
|
||||||
.output()
|
.output()
|
||||||
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
|
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)?;
|
||||||
if !result.status.success() {
|
if !result.status.success() {
|
||||||
|
|||||||
Reference in New Issue
Block a user