mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 01:18:27 +00:00
api/ffmpeg: map video and audio in remux() with one main input
cuz otherwise if a video has subtitles, then only subtitles get mapped to the output file
This commit is contained in:
parent
4f4478a21d
commit
d3793c7a54
@ -118,6 +118,8 @@ const remux = async (streamInfo, res) => {
|
|||||||
'-c:v', 'copy',
|
'-c:v', 'copy',
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
args.push('-map', '0:v:0');
|
||||||
|
args.push('-map', '0:a:0');
|
||||||
args.push('-c:v', 'copy');
|
args.push('-c:v', 'copy');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user