mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-16 11:55:21 +00:00
api/stream/remux: convert audio to aac to increase compatibility
only applies to hls exceptions
This commit is contained in:
parent
ccdcd4cb09
commit
f3521da9c1
|
@ -158,15 +158,18 @@ const remux = (streamInfo, res) => {
|
||||||
|
|
||||||
args.push(
|
args.push(
|
||||||
'-i', streamInfo.urls,
|
'-i', streamInfo.urls,
|
||||||
'-c', 'copy'
|
'-c:v', 'copy',
|
||||||
)
|
)
|
||||||
|
|
||||||
if (streamInfo.type === "mute") {
|
if (streamInfo.type === "mute") {
|
||||||
args.push('-an')
|
args.push('-an');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hlsExceptions.includes(streamInfo.service)) {
|
if (hlsExceptions.includes(streamInfo.service)) {
|
||||||
args.push('-bsf:a', 'aac_adtstoasc')
|
if (streamInfo.type !== "mute") {
|
||||||
|
args.push('-c:a', 'aac')
|
||||||
|
}
|
||||||
|
args.push('-bsf:a', 'aac_adtstoasc');
|
||||||
}
|
}
|
||||||
|
|
||||||
let format = streamInfo.filename.split('.')[streamInfo.filename.split('.').length - 1];
|
let format = streamInfo.filename.split('.')[streamInfo.filename.split('.').length - 1];
|
||||||
|
|
Loading…
Reference in a new issue