mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-13 12:49:29 +00:00
don't use hardware encoding with folder rips
This commit is contained in:
parent
94582d1ed9
commit
efebac4d6b
2 changed files with 33 additions and 11 deletions
|
|
@ -366,6 +366,14 @@ namespace MediaBrowser.MediaEncoding.Encoder
|
|||
return null;
|
||||
}
|
||||
|
||||
// Only use alternative encoders for video files.
|
||||
// When using concat with folder rips, if the mfx session fails to initialize, ffmpeg will be stuck retrying and will not exit gracefully
|
||||
// Since transcoding of folder rips is expiremental anyway, it's not worth adding additional variables such as this.
|
||||
if (state.VideoType != VideoType.VideoFile)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
if (state.VideoStream != null && !string.IsNullOrWhiteSpace(state.VideoStream.Codec))
|
||||
{
|
||||
if (string.Equals(GetEncodingOptions().HardwareAccelerationType, "qsv", StringComparison.OrdinalIgnoreCase))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue