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:
wukko 2025-06-24 20:46:14 +06:00
parent 4f4478a21d
commit d3793c7a54
No known key found for this signature in database
GPG Key ID: 3E30B3F26C7B4AA2

View File

@ -118,6 +118,8 @@ const remux = async (streamInfo, res) => {
'-c:v', 'copy',
);
} else {
args.push('-map', '0:v:0');
args.push('-map', '0:a:0');
args.push('-c:v', 'copy');
}