Prechádzať zdrojové kódy

Merge pull request #9029 from DavidFair/Support_dts_transcoding

Fixes https://github.com/jellyfin/jellyfin/issues/8804
Bond-009 2 rokov pred
rodič
commit
0325770bdb

+ 1 - 0
CONTRIBUTORS.md

@@ -27,6 +27,7 @@
  - [cvium](https://github.com/cvium)
  - [cvium](https://github.com/cvium)
  - [dannymichel](https://github.com/dannymichel)
  - [dannymichel](https://github.com/dannymichel)
  - [DaveChild](https://github.com/DaveChild)
  - [DaveChild](https://github.com/DaveChild)
+ - [DavidFair](https://github.com/DavidFair)
  - [Delgan](https://github.com/Delgan)
  - [Delgan](https://github.com/Delgan)
  - [dcrdev](https://github.com/dcrdev)
  - [dcrdev](https://github.com/dcrdev)
  - [dhartung](https://github.com/dhartung)
  - [dhartung](https://github.com/dhartung)

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

@@ -1704,11 +1704,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";
             }
             }