From 34b3c11bd56c4809a1cfa56cd1dabc518b075551 Mon Sep 17 00:00:00 2001 From: wukko Date: Sat, 5 Nov 2022 13:09:04 +0600 Subject: [PATCH] swapped video and audio channels in live rendered videos --- src/modules/stream/types.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/stream/types.js b/src/modules/stream/types.js index a03741e2..fb155984 100644 --- a/src/modules/stream/types.js +++ b/src/modules/stream/types.js @@ -28,10 +28,10 @@ export function streamLiveRender(streamInfo, res) { if (streamInfo.urls.length === 2) { let format = streamInfo.filename.split('.')[streamInfo.filename.split('.').length - 1], args = [ '-loglevel', '-8', - '-i', streamInfo.urls[0], '-i', streamInfo.urls[1], - '-map', '0:v', - '-map', '1:a', + '-i', streamInfo.urls[0], + '-map', '0:a', + '-map', '1:v', ]; args = args.concat(ffmpegArgs[format]) if (streamInfo.time) args.push('-t', msToTime(streamInfo.time));