瀏覽代碼

Add dts to list of audio codecs which require strict -2

Adds dts to the list of audio codecs where ffmpeg will throw asking us
to opt into experimental support. This is seen when the original content
is based on dts and we don't acopy using ffmpeg.
David Fairbrother 2 年之前
父節點
當前提交
76e3da6a40
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      Jellyfin.Api/Controllers/DynamicHlsController.cs

+ 3 - 2
Jellyfin.Api/Controllers/DynamicHlsController.cs

@@ -1712,11 +1712,12 @@ namespace Jellyfin.Api.Controllers
                 return audioTranscodeParams;
                 return audioTranscodeParams;
             }
             }
 
 
-            // flac and opus are experimental in mp4 muxer
+            // dts, flac and opus are experimental in mp4 muxer
             var strictArgs = string.Empty;
             var strictArgs = string.Empty;
 
 
             if (string.Equals(state.ActualOutputAudioCodec, "flac", StringComparison.OrdinalIgnoreCase)
             if (string.Equals(state.ActualOutputAudioCodec, "flac", StringComparison.OrdinalIgnoreCase)
-                || string.Equals(state.ActualOutputAudioCodec, "opus", StringComparison.OrdinalIgnoreCase))
+                || string.Equals(state.ActualOutputAudioCodec, "opus", StringComparison.OrdinalIgnoreCase)
+                || string.Equals(state.ActualOutputAudioCodec, "dts", StringComparison.OrdinalIgnoreCase))
             {
             {
                 strictArgs = " -strict -2";
                 strictArgs = " -strict -2";
             }
             }