mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-18 06:09:58 +00:00
swapped video and audio channels in live rendered videos
This commit is contained in:
parent
519e1cfd7f
commit
34b3c11bd5
1 changed files with 3 additions and 3 deletions
|
@ -28,10 +28,10 @@ export function streamLiveRender(streamInfo, res) {
|
||||||
if (streamInfo.urls.length === 2) {
|
if (streamInfo.urls.length === 2) {
|
||||||
let format = streamInfo.filename.split('.')[streamInfo.filename.split('.').length - 1], args = [
|
let format = streamInfo.filename.split('.')[streamInfo.filename.split('.').length - 1], args = [
|
||||||
'-loglevel', '-8',
|
'-loglevel', '-8',
|
||||||
'-i', streamInfo.urls[0],
|
|
||||||
'-i', streamInfo.urls[1],
|
'-i', streamInfo.urls[1],
|
||||||
'-map', '0:v',
|
'-i', streamInfo.urls[0],
|
||||||
'-map', '1:a',
|
'-map', '0:a',
|
||||||
|
'-map', '1:v',
|
||||||
];
|
];
|
||||||
args = args.concat(ffmpegArgs[format])
|
args = args.concat(ffmpegArgs[format])
|
||||||
if (streamInfo.time) args.push('-t', msToTime(streamInfo.time));
|
if (streamInfo.time) args.push('-t', msToTime(streamInfo.time));
|
||||||
|
|
Loading…
Reference in a new issue