Add opus support to EnsureAudioStream

make-only-subtitle-default
Andrew Kennedy 2 years ago committed by GitHub
parent 0fab78dde4
commit d4702ef1cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,6 +31,7 @@ const details = (): IpluginDetails => ({
'eac3',
'dca',
'flac',
'libopus',
'mp2',
'libmp3lame',
'truehd',
@ -192,6 +193,10 @@ const plugin = (args: IpluginInputArgs): IpluginOutputArgs => {
audioCodec = 'mp3';
}
if (audioEncoder === 'libopus') {
audioCodec = 'opus';
}
const addedOrExists = attemptMakeStream({
args,
langTag,

Loading…
Cancel
Save