mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-17 22:00:00 +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) {
|
||||
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));
|
||||
|
|
Loading…
Reference in a new issue