|
|
@ -444,6 +444,10 @@ namespace Jellyfin.Api.Helpers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var audioCodec = state.ActualOutputAudioCodec;
|
|
|
|
var audioCodec = state.ActualOutputAudioCodec;
|
|
|
|
var videoCodec = state.ActualOutputVideoCodec;
|
|
|
|
var videoCodec = state.ActualOutputVideoCodec;
|
|
|
|
|
|
|
|
var hardwareAccelerationTypeString = _serverConfigurationManager.GetEncodingOptions().HardwareAccelerationType;
|
|
|
|
|
|
|
|
HardwareEncodingType? hardwareAccelerationType = string.IsNullOrEmpty(hardwareAccelerationTypeString)
|
|
|
|
|
|
|
|
? null
|
|
|
|
|
|
|
|
: (HardwareEncodingType)Enum.Parse(typeof(HardwareEncodingType), hardwareAccelerationTypeString, true);
|
|
|
|
|
|
|
|
|
|
|
|
_sessionManager.ReportTranscodingInfo(deviceId, new TranscodingInfo
|
|
|
|
_sessionManager.ReportTranscodingInfo(deviceId, new TranscodingInfo
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -458,6 +462,7 @@ namespace Jellyfin.Api.Helpers
|
|
|
|
AudioChannels = state.OutputAudioChannels,
|
|
|
|
AudioChannels = state.OutputAudioChannels,
|
|
|
|
IsAudioDirect = EncodingHelper.IsCopyCodec(state.OutputAudioCodec),
|
|
|
|
IsAudioDirect = EncodingHelper.IsCopyCodec(state.OutputAudioCodec),
|
|
|
|
IsVideoDirect = EncodingHelper.IsCopyCodec(state.OutputVideoCodec),
|
|
|
|
IsVideoDirect = EncodingHelper.IsCopyCodec(state.OutputVideoCodec),
|
|
|
|
|
|
|
|
HardwareAccelerationType = hardwareAccelerationType,
|
|
|
|
TranscodeReasons = state.TranscodeReasons
|
|
|
|
TranscodeReasons = state.TranscodeReasons
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|