fix: video can carry audio
CD — Kai-Sa-Cam Deployment / deploy (push) Successful in 11s

This commit is contained in:
2026-10-26 01:39:31 +01:00
parent c1047892ae
commit 4f3586170a
+10 -2
View File
@@ -108,7 +108,6 @@ router.post("/start", async (_req: Request, res: Response) => {
const partPath = join(MEDIA_DIR, generateFilename("part"));
// Video only: the RTSP stream carries no audio.
const args = [
"-hide_banner",
"-loglevel",
@@ -123,6 +122,10 @@ router.post("/start", async (_req: Request, res: Response) => {
"make_zero",
"-i",
GO2RTC_RTSP_URL,
"-map",
"0:v:0",
"-map",
"0:a:0?",
"-c:v",
"libx264",
"-preset",
@@ -135,7 +138,12 @@ router.post("/start", async (_req: Request, res: Response) => {
"yuv420p",
"-g",
"30",
"-an",
"-c:a",
"aac",
"-b:a",
"96k",
"-af",
"aresample=async=1",
"-f",
"mp4",
"-movflags",