mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 17:55:55 -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',
|
'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…
Add table
Add a link
Reference in a new issue