|
|
@ -204,7 +204,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -219,7 +219,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions,
|
|
|
|
[FromQuery] bool enableAdaptiveBitrateStreaming = true)
|
|
|
|
[FromQuery] bool enableAdaptiveBitrateStreaming = true)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -256,7 +256,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -271,7 +271,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions,
|
|
|
|
StreamOptions = streamOptions,
|
|
|
|
EnableAdaptiveBitrateStreaming = enableAdaptiveBitrateStreaming
|
|
|
|
EnableAdaptiveBitrateStreaming = enableAdaptiveBitrateStreaming
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -371,7 +371,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -386,7 +386,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions,
|
|
|
|
[FromQuery] bool enableAdaptiveBitrateStreaming = true)
|
|
|
|
[FromQuery] bool enableAdaptiveBitrateStreaming = true)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -423,7 +423,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -438,7 +438,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions,
|
|
|
|
StreamOptions = streamOptions,
|
|
|
|
EnableAdaptiveBitrateStreaming = enableAdaptiveBitrateStreaming
|
|
|
|
EnableAdaptiveBitrateStreaming = enableAdaptiveBitrateStreaming
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -534,7 +534,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -549,7 +549,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var cancellationTokenSource = new CancellationTokenSource();
|
|
|
|
var cancellationTokenSource = new CancellationTokenSource();
|
|
|
@ -586,7 +586,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -601,7 +601,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -699,7 +699,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -714,7 +714,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var cancellationTokenSource = new CancellationTokenSource();
|
|
|
|
var cancellationTokenSource = new CancellationTokenSource();
|
|
|
@ -751,7 +751,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -766,7 +766,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -869,7 +869,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -884,7 +884,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var streamingRequest = new VideoRequestDto
|
|
|
|
var streamingRequest = new VideoRequestDto
|
|
|
@ -921,7 +921,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -936,7 +936,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
@ -1041,7 +1041,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? height,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? videoBitRate,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] int? subtitleStreamIndex,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod subtitleMethod,
|
|
|
|
[FromQuery] SubtitleDeliveryMethod? subtitleMethod,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxRefFrames,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] int? maxVideoBitDepth,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
|
[FromQuery] bool? requireAvc,
|
|
|
@ -1056,7 +1056,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] string? transcodeReasons,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? audioStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] int? videoStreamIndex,
|
|
|
|
[FromQuery] EncodingContext context,
|
|
|
|
[FromQuery] EncodingContext? context,
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
[FromQuery] Dictionary<string, string> streamOptions)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var streamingRequest = new StreamingRequestDto
|
|
|
|
var streamingRequest = new StreamingRequestDto
|
|
|
@ -1093,7 +1093,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
Height = height,
|
|
|
|
Height = height,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
VideoBitRate = videoBitRate,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleStreamIndex = subtitleStreamIndex,
|
|
|
|
SubtitleMethod = subtitleMethod,
|
|
|
|
SubtitleMethod = subtitleMethod ?? SubtitleDeliveryMethod.Encode,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxRefFrames = maxRefFrames,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
MaxVideoBitDepth = maxVideoBitDepth,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
|
RequireAvc = requireAvc ?? true,
|
|
|
@ -1108,7 +1108,7 @@ namespace Jellyfin.Api.Controllers
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
TranscodeReasons = transcodeReasons,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
AudioStreamIndex = audioStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
VideoStreamIndex = videoStreamIndex,
|
|
|
|
Context = context,
|
|
|
|
Context = context ?? EncodingContext.Streaming,
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
StreamOptions = streamOptions
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|