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

Loading…
Cancel
Save