From 98ccc0b3e9bd22acaff57071df20bdd146b36f1c Mon Sep 17 00:00:00 2001 From: DanGLES3 <32078304+DanGLES3@users.noreply.github.com> Date: Tue, 29 Nov 2022 16:11:22 -0300 Subject: [PATCH] Fix audio encoding Without this argument the resulting video file will have a longer duration than normal and will present noticeable audio pops every 3-7 seconds, it may be needed to apply this to the archive command as well --- crunchy-cli-core/src/cli/download.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crunchy-cli-core/src/cli/download.rs b/crunchy-cli-core/src/cli/download.rs index 7f9e3ec..91ecbf0 100644 --- a/crunchy-cli-core/src/cli/download.rs +++ b/crunchy-cli-core/src/cli/download.rs @@ -243,6 +243,7 @@ async fn download_ffmpeg( .args(["-f", "mpegts", "-i", "pipe:"]) .args(["-safe", "0"]) .args(["-c", "copy"]) + .args(["-bsf:a", "aac_adtstoasc"]) .arg(target.to_str().unwrap()) .spawn()?;