swapped video and audio channels in live rendered videos

This commit is contained in:
wukko 2022-11-05 13:09:04 +06:00
parent 519e1cfd7f
commit 34b3c11bd5

View file

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