From d4702ef1cf2e0018610075e50b133ca20549472a Mon Sep 17 00:00:00 2001 From: Andrew Kennedy Date: Mon, 13 Nov 2023 02:07:53 -0800 Subject: [PATCH] Add opus support to EnsureAudioStream --- .../ffmpegCommandEnsureAudioStream/1.0.0/index.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.ts b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.ts index 1c833b5..e707af2 100644 --- a/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.ts +++ b/FlowPluginsTs/CommunityFlowPlugins/ffmpegCommand/ffmpegCommandEnsureAudioStream/1.0.0/index.ts @@ -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,