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
This commit is contained in:
DanGLES3 2022-11-29 16:11:22 -03:00 committed by GitHub
parent 99002e606f
commit 98ccc0b3e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()?;