diff options
| author | Logan Douglas <42654828+JadedRain@users.noreply.github.com> | 2025-11-05 13:06:57 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-05 13:06:57 -0700 |
| commit | 1adf441f1ca9d61c3d6c63df0ea87a870e03632f (patch) | |
| tree | 6406843a15c2eb3a315e07754fc493b300cbbe70 /Jellyfin.Api/Controllers/DynamicHlsController.cs | |
| parent | 490bf347cbdf8ec458996d09ba40651eb647b7b9 (diff) | |
| parent | 96d72788a1b596578d26841a91d24262723b1df1 (diff) | |
Merge branch 'jellyfin:master' into master
Diffstat (limited to 'Jellyfin.Api/Controllers/DynamicHlsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/DynamicHlsController.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/DynamicHlsController.cs b/Jellyfin.Api/Controllers/DynamicHlsController.cs index 2614fe9956..fe6f855b5e 100644 --- a/Jellyfin.Api/Controllers/DynamicHlsController.cs +++ b/Jellyfin.Api/Controllers/DynamicHlsController.cs @@ -1625,8 +1625,11 @@ public class DynamicHlsController : BaseJellyfinApiController var useLegacySegmentOption = _mediaEncoder.EncoderVersion < _minFFmpegHlsSegmentOptions; - // fMP4 needs this flag to write the audio packet DTS/PTS including the initial delay into MOOF::TRAF::TFDT - hlsArguments += $" {(useLegacySegmentOption ? "-hls_ts_options" : "-hls_segment_options")} movflags=+frag_discont"; + if (state.VideoStream is not null && state.IsOutputVideo) + { + // fMP4 needs this flag to write the audio packet DTS/PTS including the initial delay into MOOF::TRAF::TFDT + hlsArguments += $" {(useLegacySegmentOption ? "-hls_ts_options" : "-hls_segment_options")} movflags=+frag_discont"; + } segmentFormat = "fmp4" + outputFmp4HeaderArg; } |
