mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 07:29:04 -07:00
Merge pull request #540 from andrew-kennedy/patch-2
Add opus support to EnsureAudioStream
This commit is contained in:
commit
d808b58b74
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue