Browse Source

fix subtitle stream selection (#735)

pull/737/head
Jason Dove 4 years ago committed by GitHub
parent
commit
0ddbb898d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 2
      ErsatzTV.Core/FFmpeg/FFmpegStreamSelector.cs

2
CHANGELOG.md

@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). @@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- Fix subtitles edge case with NVENC
- Only select picture subtitles (text subtitles are not yet supported)
- Supported picture subtitles are `hdmv_pgs_subtitle` and `dvd_subtitle`
## [0.5.0-beta] - 2022-04-13
### Fixed

2
ErsatzTV.Core/FFmpeg/FFmpegStreamSelector.cs

@ -99,7 +99,7 @@ public class FFmpegStreamSelector : IFFmpegStreamSelector @@ -99,7 +99,7 @@ public class FFmpegStreamSelector : IFFmpegStreamSelector
var subtitleStreams = version.Streams
.Filter(s => s.MediaStreamKind == MediaStreamKind.Subtitle)
// .Filter(s => s.Codec is "hdmv_pgs_subtitle" or "dvd_subtitle")
.Filter(s => s.Codec is "hdmv_pgs_subtitle" or "dvd_subtitle")
.ToList();
string language = (channel.PreferredSubtitleLanguageCode ?? string.Empty).ToLowerInvariant();

Loading…
Cancel
Save