Add opus support to EnsureAudioStream

This commit is contained in:
Andrew Kennedy 2023-11-13 02:07:53 -08:00 committed by GitHub
parent 0fab78dde4
commit d4702ef1cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,