This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user